mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-08-03 20:00:10 +03:00
Merge a401698d74
into fdc8e664df
This commit is contained in:
commit
6842973b3e
|
@ -872,7 +872,7 @@ def dataToOutFile(filename, data):
|
||||||
retVal = os.path.join(conf.filePath, filePathToSafeString(filename))
|
retVal = os.path.join(conf.filePath, filePathToSafeString(filename))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with openFile(retVal, "wb") as f:
|
with open(retVal, "wb") as f:
|
||||||
f.write(data)
|
f.write(data)
|
||||||
except IOError, ex:
|
except IOError, ex:
|
||||||
errMsg = "something went wrong while trying to write "
|
errMsg = "something went wrong while trying to write "
|
||||||
|
|
|
@ -27,6 +27,7 @@ from lib.core.enums import EXPECTED
|
||||||
from lib.core.enums import PAYLOAD
|
from lib.core.enums import PAYLOAD
|
||||||
from lib.core.exception import SqlmapUndefinedMethod
|
from lib.core.exception import SqlmapUndefinedMethod
|
||||||
from lib.request import inject
|
from lib.request import inject
|
||||||
|
from binascii import a2b_hex
|
||||||
|
|
||||||
class Filesystem:
|
class Filesystem:
|
||||||
"""
|
"""
|
||||||
|
@ -232,7 +233,7 @@ class Filesystem:
|
||||||
fileContent = newFileContent
|
fileContent = newFileContent
|
||||||
|
|
||||||
if fileContent is not None:
|
if fileContent is not None:
|
||||||
fileContent = decodeHexValue(fileContent)
|
fileContent = a2b_hex(fileContent)
|
||||||
|
|
||||||
if fileContent:
|
if fileContent:
|
||||||
localFilePath = dataToOutFile(remoteFile, fileContent)
|
localFilePath = dataToOutFile(remoteFile, fileContent)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user