mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-19 01:22:20 +03:00
Wrong limit number has been used (MySQL LIMIT/OFFSET starts with 0)
This commit is contained in:
parent
ebab05cf7c
commit
2c66ca39f1
|
@ -592,7 +592,7 @@ class Agent:
|
|||
limitOriginal = ""
|
||||
if where == PAYLOAD.WHERE.ORIGINAL:
|
||||
if Backend.getIdentifiedDbms() in (DBMS.MYSQL, ):
|
||||
limitOriginal = "%s " % (queries[Backend.getIdentifiedDbms()].limit.query % (1, 1))
|
||||
limitOriginal = "%s " % (queries[Backend.getIdentifiedDbms()].limit.query % (0, 1))
|
||||
|
||||
inbandQuery = self.prefixQuery("%sUNION ALL SELECT " % limitOriginal, prefix=prefix)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user