mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Patch related to the --hex and --technique=E (potential patch for #2837)
This commit is contained in:
parent
574074e171
commit
0b24a80387
4 changed files with 9 additions and 6 deletions
|
|
@ -76,7 +76,10 @@ def _oneShotErrorUse(expression, field=None, chunkTest=False):
|
|||
current = MAX_ERROR_CHUNK_LENGTH
|
||||
while current >= MIN_ERROR_CHUNK_LENGTH:
|
||||
testChar = str(current % 10)
|
||||
testQuery = "SELECT %s('%s',%d)" % ("REPEAT" if Backend.isDbms(DBMS.MYSQL) else "REPLICATE", testChar, current)
|
||||
|
||||
testQuery = "%s('%s',%d)" % ("REPEAT" if Backend.isDbms(DBMS.MYSQL) else "REPLICATE", testChar, current)
|
||||
testQuery = "SELECT %s" % (agent.hexConvertField(testQuery) if conf.hexConvert else testQuery)
|
||||
|
||||
result = unArrayizeValue(_oneShotErrorUse(testQuery, chunkTest=True))
|
||||
|
||||
if (result or "").startswith(testChar):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue