mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-28 20:43:49 +03:00
Removing problematic per-MySQL LIMIT prefix
This commit is contained in:
parent
568bd2da83
commit
6ae4590edc
|
@ -602,13 +602,7 @@ class Agent(object):
|
||||||
if query.startswith("SELECT "):
|
if query.startswith("SELECT "):
|
||||||
query = query[len("SELECT "):]
|
query = query[len("SELECT "):]
|
||||||
|
|
||||||
limitOriginal = ""
|
unionQuery = self.prefixQuery("UNION ALL SELECT ", prefix=prefix)
|
||||||
|
|
||||||
if where == PAYLOAD.WHERE.ORIGINAL:
|
|
||||||
if Backend.getIdentifiedDbms() in (DBMS.MYSQL, ):
|
|
||||||
limitOriginal = "%s " % (queries[Backend.getIdentifiedDbms()].limit.query % (0, kb.testMode))
|
|
||||||
|
|
||||||
unionQuery = self.prefixQuery("%sUNION ALL SELECT " % limitOriginal, prefix=prefix)
|
|
||||||
|
|
||||||
if limited:
|
if limited:
|
||||||
unionQuery += ','.join(char if _ != position else '(SELECT %s)' % query for _ in xrange(0, count))
|
unionQuery += ','.join(char if _ != position else '(SELECT %s)' % query for _ in xrange(0, count))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user