mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Fixing a problem with AV detection
This commit is contained in:
parent
b42a15d876
commit
87f8753483
|
@ -10,6 +10,7 @@ import re
|
|||
|
||||
from lib.core.agent import agent
|
||||
from lib.core.common import Backend
|
||||
from lib.core.common import decloakToTemp
|
||||
from lib.core.common import isStackingAvailable
|
||||
from lib.core.common import normalizePath
|
||||
from lib.core.common import ntToPosixSlashes
|
||||
|
@ -79,10 +80,12 @@ class Takeover(GenericTakeover):
|
|||
self.udfSharedLibName = "libs%s" % randomStr(lowercase=True)
|
||||
|
||||
if Backend.isOs(OS.WINDOWS):
|
||||
self.udfLocalFile = os.path.join(self.udfLocalFile, "mysql", "windows", "%d" % Backend.getArch(), "lib_mysqludf_sys.dll")
|
||||
_ = os.path.join(self.udfLocalFile, "mysql", "windows", "%d" % Backend.getArch(), "lib_mysqludf_sys.dll_")
|
||||
self.udfLocalFile = decloakToTemp(_)
|
||||
self.udfSharedLibExt = "dll"
|
||||
else:
|
||||
self.udfLocalFile = os.path.join(self.udfLocalFile, "mysql", "linux", "%d" % Backend.getArch(), "lib_mysqludf_sys.so")
|
||||
_ = os.path.join(self.udfLocalFile, "mysql", "linux", "%d" % Backend.getArch(), "lib_mysqludf_sys.so_")
|
||||
self.udfLocalFile = decloakToTemp(_)
|
||||
self.udfSharedLibExt = "so"
|
||||
|
||||
def udfCreateFromSharedLib(self, udf, inpRet):
|
||||
|
|
|
@ -8,6 +8,7 @@ See the file 'doc/COPYING' for copying permission
|
|||
import os
|
||||
|
||||
from lib.core.common import Backend
|
||||
from lib.core.common import decloakToTemp
|
||||
from lib.core.common import randomStr
|
||||
from lib.core.data import kb
|
||||
from lib.core.data import logger
|
||||
|
@ -60,10 +61,12 @@ class Takeover(GenericTakeover):
|
|||
raise SqlmapUnsupportedFeatureException(errMsg)
|
||||
|
||||
if Backend.isOs(OS.WINDOWS):
|
||||
self.udfLocalFile = os.path.join(self.udfLocalFile, "postgresql", "windows", "%d" % Backend.getArch(), majorVer, "lib_postgresqludf_sys.dll")
|
||||
_ = os.path.join(self.udfLocalFile, "postgresql", "windows", "%d" % Backend.getArch(), majorVer, "lib_postgresqludf_sys.dll_")
|
||||
self.udfLocalFile = decloakToTemp(_)
|
||||
self.udfSharedLibExt = "dll"
|
||||
else:
|
||||
self.udfLocalFile = os.path.join(self.udfLocalFile, "postgresql", "linux", "%d" % Backend.getArch(), majorVer, "lib_postgresqludf_sys.so")
|
||||
_ = os.path.join(self.udfLocalFile, "postgresql", "linux", "%d" % Backend.getArch(), majorVer, "lib_postgresqludf_sys.so_")
|
||||
self.udfLocalFile = decloakToTemp(_)
|
||||
self.udfSharedLibExt = "so"
|
||||
|
||||
def udfCreateFromSharedLib(self, udf, inpRet):
|
||||
|
|
Binary file not shown.
BIN
udf/mysql/linux/32/lib_mysqludf_sys.so_
Normal file
BIN
udf/mysql/linux/32/lib_mysqludf_sys.so_
Normal file
Binary file not shown.
Binary file not shown.
BIN
udf/mysql/linux/64/lib_mysqludf_sys.so_
Normal file
BIN
udf/mysql/linux/64/lib_mysqludf_sys.so_
Normal file
Binary file not shown.
Binary file not shown.
BIN
udf/mysql/windows/32/lib_mysqludf_sys.dll_
Normal file
BIN
udf/mysql/windows/32/lib_mysqludf_sys.dll_
Normal file
Binary file not shown.
Binary file not shown.
BIN
udf/mysql/windows/64/lib_mysqludf_sys.dll_
Normal file
BIN
udf/mysql/windows/64/lib_mysqludf_sys.dll_
Normal file
Binary file not shown.
Binary file not shown.
BIN
udf/postgresql/linux/32/8.2/lib_postgresqludf_sys.so_
Normal file
BIN
udf/postgresql/linux/32/8.2/lib_postgresqludf_sys.so_
Normal file
Binary file not shown.
Binary file not shown.
BIN
udf/postgresql/linux/32/8.3/lib_postgresqludf_sys.so_
Normal file
BIN
udf/postgresql/linux/32/8.3/lib_postgresqludf_sys.so_
Normal file
Binary file not shown.
Binary file not shown.
BIN
udf/postgresql/linux/32/8.4/lib_postgresqludf_sys.so_
Normal file
BIN
udf/postgresql/linux/32/8.4/lib_postgresqludf_sys.so_
Normal file
Binary file not shown.
Binary file not shown.
BIN
udf/postgresql/linux/32/9.0/lib_postgresqludf_sys.so_
Normal file
BIN
udf/postgresql/linux/32/9.0/lib_postgresqludf_sys.so_
Normal file
Binary file not shown.
Binary file not shown.
BIN
udf/postgresql/linux/32/9.1/lib_postgresqludf_sys.so_
Normal file
BIN
udf/postgresql/linux/32/9.1/lib_postgresqludf_sys.so_
Normal file
Binary file not shown.
Binary file not shown.
BIN
udf/postgresql/linux/64/8.2/lib_postgresqludf_sys.so_
Normal file
BIN
udf/postgresql/linux/64/8.2/lib_postgresqludf_sys.so_
Normal file
Binary file not shown.
Binary file not shown.
BIN
udf/postgresql/linux/64/8.3/lib_postgresqludf_sys.so_
Normal file
BIN
udf/postgresql/linux/64/8.3/lib_postgresqludf_sys.so_
Normal file
Binary file not shown.
Binary file not shown.
BIN
udf/postgresql/linux/64/8.4/lib_postgresqludf_sys.so_
Normal file
BIN
udf/postgresql/linux/64/8.4/lib_postgresqludf_sys.so_
Normal file
Binary file not shown.
Binary file not shown.
BIN
udf/postgresql/linux/64/9.0/lib_postgresqludf_sys.so_
Normal file
BIN
udf/postgresql/linux/64/9.0/lib_postgresqludf_sys.so_
Normal file
Binary file not shown.
Binary file not shown.
BIN
udf/postgresql/windows/32/8.2/lib_postgresqludf_sys.dll_
Normal file
BIN
udf/postgresql/windows/32/8.2/lib_postgresqludf_sys.dll_
Normal file
Binary file not shown.
Binary file not shown.
BIN
udf/postgresql/windows/32/8.3/lib_postgresqludf_sys.dll_
Normal file
BIN
udf/postgresql/windows/32/8.3/lib_postgresqludf_sys.dll_
Normal file
Binary file not shown.
Binary file not shown.
BIN
udf/postgresql/windows/32/8.4/lib_postgresqludf_sys.dll_
Normal file
BIN
udf/postgresql/windows/32/8.4/lib_postgresqludf_sys.dll_
Normal file
Binary file not shown.
Binary file not shown.
BIN
udf/postgresql/windows/32/9.0/lib_postgresqludf_sys.dll_
Normal file
BIN
udf/postgresql/windows/32/9.0/lib_postgresqludf_sys.dll_
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user