mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-14 15:14:31 +03:00
replace only first occurrence
This commit is contained in:
parent
bfc12e93c5
commit
c9c9c1fb2f
|
@ -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("; ", "")
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user