mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-07 17:02:39 +01:00
Minor bug fix to correctly unpack user's custom queries on Microsoft SQL Server
This commit is contained in:
parent
ad03684788
commit
dded57f1cd
1 changed files with 4 additions and 1 deletions
|
|
@ -476,7 +476,10 @@ class Agent:
|
|||
|
||||
if not limitedQuery.startswith("SELECT TOP ") and not limitedQuery.startswith("TOP "):
|
||||
limitedQuery = limitedQuery.replace("SELECT ", (limitStr % 1), 1)
|
||||
limitedQuery = "%s WHERE %s " % (limitedQuery, field)
|
||||
if " WHERE " in limitedQuery:
|
||||
limitedQuery = "%s AND %s " % (limitedQuery, field)
|
||||
else:
|
||||
limitedQuery = "%s WHERE %s " % (limitedQuery, field)
|
||||
limitedQuery += "NOT IN (%s" % (limitStr % num)
|
||||
limitedQuery += "%s %s)" % (field, fromFrom)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue