Skip to content

Commit a401698

Browse files
committed
Update filesystem.py
1 parent 989271e commit a401698

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/generic/filesystem.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
from lib.core.enums import PAYLOAD
2828
from lib.core.exception import SqlmapUndefinedMethod
2929
from lib.request import inject
30+
from binascii import a2b_hex
3031

3132
class Filesystem:
3233
"""
@@ -232,7 +233,7 @@ def readFile(self, remoteFiles):
232233
fileContent = newFileContent
233234

234235
if fileContent is not None:
235-
fileContent = decodeHexValue(fileContent)
236+
fileContent = a2b_hex(fileContent)
236237

237238
if fileContent:
238239
localFilePath = dataToOutFile(remoteFile, fileContent)

0 commit comments

Comments
 (0)