mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
Bug fix (proper path joining)
This commit is contained in:
parent
c33e493e0d
commit
65c3dfd651
|
@ -78,10 +78,10 @@ class Takeover(GenericTakeover):
|
||||||
self.udfSharedLibName = "libs%s" % randomStr(lowercase=True)
|
self.udfSharedLibName = "libs%s" % randomStr(lowercase=True)
|
||||||
|
|
||||||
if Backend.isOs(OS.WINDOWS):
|
if Backend.isOs(OS.WINDOWS):
|
||||||
self.udfLocalFile += "/mysql/windows/%d/lib_mysqludf_sys.dll" % Backend.getArch()
|
self.udfLocalFile = os.path.join(self.udfLocalFile, "mysql", "windows", "%d" % Backend.getArch(), "lib_mysqludf_sys.dll")
|
||||||
self.udfSharedLibExt = "dll"
|
self.udfSharedLibExt = "dll"
|
||||||
else:
|
else:
|
||||||
self.udfLocalFile += "/mysql/linux/%d/lib_mysqludf_sys.so" % Backend.getArch()
|
self.udfLocalFile = os.path.join(self.udfLocalFile, "mysql", "linux", "%d" % Backend.getArch(), "lib_mysqludf_sys.so")
|
||||||
self.udfSharedLibExt = "so"
|
self.udfSharedLibExt = "so"
|
||||||
|
|
||||||
def udfCreateFromSharedLib(self, udf, inpRet):
|
def udfCreateFromSharedLib(self, udf, inpRet):
|
||||||
|
|
|
@ -58,10 +58,10 @@ class Takeover(GenericTakeover):
|
||||||
raise SqlmapUnsupportedFeatureException(errMsg)
|
raise SqlmapUnsupportedFeatureException(errMsg)
|
||||||
|
|
||||||
if Backend.isOs(OS.WINDOWS):
|
if Backend.isOs(OS.WINDOWS):
|
||||||
self.udfLocalFile += "/postgresql/windows/%d/%s/lib_postgresqludf_sys.dll" % (Backend.getArch(), majorVer)
|
self.udfLocalFile = os.path.join(self.udfLocalFile, "postgresql", "windows", "%d" % Backend.getArch(), majorVer, "lib_postgresqludf_sys.dll")
|
||||||
self.udfSharedLibExt = "dll"
|
self.udfSharedLibExt = "dll"
|
||||||
else:
|
else:
|
||||||
self.udfLocalFile += "/postgresql/linux/%d/%s/lib_postgresqludf_sys.so" % (Backend.getArch(), majorVer)
|
self.udfLocalFile = os.path.join(self.udfLocalFile, "postgresql", "linux", "%d" % Backend.getArch(), majorVer, "lib_postgresqludf_sys.so")
|
||||||
self.udfSharedLibExt = "so"
|
self.udfSharedLibExt = "so"
|
||||||
|
|
||||||
def udfCreateFromSharedLib(self, udf, inpRet):
|
def udfCreateFromSharedLib(self, udf, inpRet):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user