This commit is contained in:
sqlmapper 2015-07-15 08:44:38 +00:00
commit 6842973b3e
2 changed files with 3 additions and 2 deletions

View File

@ -872,7 +872,7 @@ def dataToOutFile(filename, data):
retVal = os.path.join(conf.filePath, filePathToSafeString(filename))
try:
with openFile(retVal, "wb") as f:
with open(retVal, "wb") as f:
f.write(data)
except IOError, ex:
errMsg = "something went wrong while trying to write "

View File

@ -27,6 +27,7 @@ from lib.core.enums import EXPECTED
from lib.core.enums import PAYLOAD
from lib.core.exception import SqlmapUndefinedMethod
from lib.request import inject
from binascii import a2b_hex
class Filesystem:
"""
@ -232,7 +233,7 @@ class Filesystem:
fileContent = newFileContent
if fileContent is not None:
fileContent = decodeHexValue(fileContent)
fileContent = a2b_hex(fileContent)
if fileContent:
localFilePath = dataToOutFile(remoteFile, fileContent)