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

Skip to content

Commit a0b44da

Browse files
committed
Minor fix for --threads>1 --binary-fields
1 parent 3483fd4 commit a0b44da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/request/inject.py

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

88-
if field and conf.hexConvert:
88+
if field and conf.hexConvert or conf.binaryFields and field in conf.binaryFields.split(','):
8989
nulledCastedField = agent.nullAndCastField(field)
9090
injExpression = expression.replace(field, nulledCastedField, 1)
9191
else:

0 commit comments

Comments
 (0)