mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-03 11:45:46 +03:00
massive BUG FIX (if NULL is one of dumping values it will screw everything in corner cases because "SELECT 1 WHERE NULL IN (NULL)" and "SELECT 1 WHERE NULL NOT IN (NULL)" will always return nothing/nadda/zero/not even NULL)
This commit is contained in:
parent
9b1f2d82d0
commit
3ca5cddca7
|
@ -677,10 +677,10 @@ class Agent:
|
|||
if " WHERE " in limitedQuery:
|
||||
limitedQuery = "%s AND %s " % (limitedQuery, uniqueField)
|
||||
else:
|
||||
limitedQuery = "%s WHERE %s " % (limitedQuery, uniqueField)
|
||||
limitedQuery = "%s WHERE ISNULL(%s,' ') " % (limitedQuery, uniqueField)
|
||||
|
||||
limitedQuery += "NOT IN (%s" % (limitStr % num)
|
||||
limitedQuery += "%s %s ORDER BY %s) ORDER BY %s" % (uniqueField, fromFrom, uniqueField, uniqueField)
|
||||
limitedQuery += "ISNULL(%s,' ') %s ORDER BY %s) ORDER BY %s" % (uniqueField, fromFrom, uniqueField, uniqueField)
|
||||
else:
|
||||
if " WHERE " in limitedQuery:
|
||||
limitedQuery = "%s AND %s " % (limitedQuery, field)
|
||||
|
|
Loading…
Reference in New Issue
Block a user