mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 04:31:30 +00:00
replace only first occurrence
This commit is contained in:
@@ -46,9 +46,9 @@ class Agent:
|
||||
|
||||
def payloadDirect(self, query):
|
||||
if query.startswith(" AND "):
|
||||
query = query.replace(" AND ", "SELECT ")
|
||||
query = query.replace(" AND ", "SELECT ", 1)
|
||||
elif query.startswith(" UNION ALL "):
|
||||
query = query.replace(" UNION ALL ", "")
|
||||
query = query.replace(" UNION ALL ", "", 1)
|
||||
elif query.startswith("; "):
|
||||
query = query.replace("; ", "")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user