mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 13:11:29 +00:00
Another fix related to the last commit
This commit is contained in:
@@ -44,10 +44,10 @@ class Agent(object):
|
|||||||
def payloadDirect(self, query):
|
def payloadDirect(self, query):
|
||||||
query = self.cleanupPayload(query)
|
query = self.cleanupPayload(query)
|
||||||
|
|
||||||
if query.startswith("AND "):
|
if query.upper().startswith("AND "):
|
||||||
query = query.replace("AND ", "SELECT ", 1)
|
query = re.sub(r"(?i)AND ", "SELECT ", query, 1)
|
||||||
elif query.startswith(" UNION ALL "):
|
elif query.upper().startswith(" UNION ALL "):
|
||||||
query = query.replace(" UNION ALL ", "", 1)
|
query = re.sub(r"(?i) UNION ALL ", "", query, 1)
|
||||||
elif query.startswith("; "):
|
elif query.startswith("; "):
|
||||||
query = query.replace("; ", "", 1)
|
query = query.replace("; ", "", 1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user