Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fbde411

Browse files
committed
Minor update
1 parent 3487957 commit fbde411

6 files changed

Lines changed: 9 additions & 5 deletions

File tree

lib/core/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def nullAndCastField(self, field):
451451
else:
452452
nulledCastedField = rootQuery.isnull.query % nulledCastedField
453453

454-
kb.binaryField = conf.binaryFields and field in conf.binaryFields.split(',')
454+
kb.binaryField = conf.binaryFields and field in conf.binaryFields
455455
if conf.hexConvert or kb.binaryField:
456456
nulledCastedField = self.hexConvertField(nulledCastedField)
457457

lib/core/option.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,8 @@ class _(six.text_type):
17441744
conf.exclude = r"\A%s\Z" % '|'.join(re.escape(_) for _ in conf.exclude.split(','))
17451745

17461746
if conf.binaryFields:
1747-
conf.binaryFields = re.sub(r"\s*,\s*", ',', conf.binaryFields)
1747+
conf.binaryFields = conf.binaryFields.replace(" ", "")
1748+
conf.binaryFields = re.split(PARAMETER_SPLITTING_REGEX, conf.binaryFields)
17481749

17491750
if any((conf.proxy, conf.proxyFile, conf.tor)):
17501751
conf.disablePrecon = True

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.11.65"
21+
VERSION = "1.3.11.66"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/request/direct.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def direct(query, content=True):
4848
if not query.upper().startswith("SELECT "):
4949
query = "SELECT %s" % query
5050
if conf.binaryFields:
51-
for field in conf.binaryFields.split(','):
51+
for field in conf.binaryFields:
5252
field = field.strip()
5353
if re.search(r"\b%s\b" % re.escape(field), query):
5454
query = re.sub(r"\b%s\b" % re.escape(field), agent.hexConvertField(field), query)

lib/request/inject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def _goInference(payload, expression, charsetType=None, firstChar=None, lastChar
110110
if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL):
111111
expression += " AS %s" % randomStr(lowercase=True, seed=hash(expression))
112112

113-
if field and conf.hexConvert or conf.binaryFields and field in conf.binaryFields.split(','):
113+
if field and conf.hexConvert or conf.binaryFields and field in conf.binaryFields:
114114
nulledCastedField = agent.nullAndCastField(field)
115115
injExpression = expression.replace(field, nulledCastedField, 1)
116116
else:

lib/utils/hash.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,9 @@ def attackDumpedTable():
680680
if len(table[column]["values"]) <= i:
681681
continue
682682

683+
if conf.binaryFields and column in conf.binaryFields:
684+
continue
685+
683686
value = table[column]["values"][i]
684687

685688
if column in binary_fields and re.search(HASH_BINARY_COLUMNS_REGEX, column) is not None:

0 commit comments

Comments
 (0)