mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 21:21:33 +00:00
Minor update
This commit is contained in:
@@ -48,7 +48,7 @@ def direct(query, content=True):
|
||||
if not query.upper().startswith("SELECT "):
|
||||
query = "SELECT %s" % query
|
||||
if conf.binaryFields:
|
||||
for field in conf.binaryFields.split(','):
|
||||
for field in conf.binaryFields:
|
||||
field = field.strip()
|
||||
if re.search(r"\b%s\b" % re.escape(field), query):
|
||||
query = re.sub(r"\b%s\b" % re.escape(field), agent.hexConvertField(field), query)
|
||||
|
||||
@@ -110,7 +110,7 @@ def _goInference(payload, expression, charsetType=None, firstChar=None, lastChar
|
||||
if Backend.getIdentifiedDbms() in (DBMS.MYSQL, DBMS.PGSQL):
|
||||
expression += " AS %s" % randomStr(lowercase=True, seed=hash(expression))
|
||||
|
||||
if field and conf.hexConvert or conf.binaryFields and field in conf.binaryFields.split(','):
|
||||
if field and conf.hexConvert or conf.binaryFields and field in conf.binaryFields:
|
||||
nulledCastedField = agent.nullAndCastField(field)
|
||||
injExpression = expression.replace(field, nulledCastedField, 1)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user