Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/core/common.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -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 "
Expand Down
3 changes: 2 additions & 1 deletion plugins/generic/filesystem.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -27,6 +27,7 @@
from lib.core.enums import PAYLOAD
from lib.core.exception import SqlmapUndefinedMethod
from lib.request import inject
from binascii import a2b_hex

class Filesystem:
"""
Expand DownExpand Up@@ -232,7 +233,7 @@ def readFile(self, remoteFiles):
fileContent = newFileContent

if fileContent is not None:
fileContent = decodeHexValue(fileContent)
fileContent = a2b_hex(fileContent)

if fileContent:
localFilePath = dataToOutFile(remoteFile, fileContent)
Expand Down