mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 13:14:13 +03:00
Fixes #3819
This commit is contained in:
parent
c3a95e81f5
commit
7d43429379
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
|||
from thirdparty.six import unichr as _unichr
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.3.7.19"
|
||||
VERSION = "1.3.7.20"
|
||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||
|
|
|
@ -21,6 +21,8 @@ from lib.core.common import isStackingAvailable
|
|||
from lib.core.common import isTechniqueAvailable
|
||||
from lib.core.common import readInput
|
||||
from lib.core.compat import xrange
|
||||
from lib.core.convert import encodeBase64
|
||||
from lib.core.convert import encodeHex
|
||||
from lib.core.convert import getText
|
||||
from lib.core.convert import getUnicode
|
||||
from lib.core.data import conf
|
||||
|
@ -134,8 +136,14 @@ class Filesystem(object):
|
|||
def fileContentEncode(self, content, encoding, single, chunkSize=256):
|
||||
retVal = []
|
||||
|
||||
if encoding:
|
||||
content = getText(codecs.encode(content, encoding)).replace("\n", "")
|
||||
if encoding == "hex":
|
||||
content = encodeHex(content)
|
||||
elif encoding == "base64":
|
||||
content = encodeBase64(content)
|
||||
else:
|
||||
content = codecs.encode(content, encoding)
|
||||
|
||||
content = getText(content).replace("\n", "")
|
||||
|
||||
if not single:
|
||||
if len(content) > chunkSize:
|
||||
|
|
Loading…
Reference in New Issue
Block a user