mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
update (generalizing ORDER BY approach)
This commit is contained in:
parent
1dd3fae930
commit
d77a5f5928
|
@ -59,8 +59,8 @@ def __findUnionCharCount(comment, place, parameter, value, prefix, suffix, where
|
|||
query = agent.prefixQuery("ORDER BY %d" % cols, prefix=prefix)
|
||||
query = agent.suffixQuery(query, suffix=suffix, comment=comment)
|
||||
payload = agent.payload(newValue=query, place=place, parameter=parameter, where=where)
|
||||
page, _ = Request.queryPage(payload, place=place, content=True, raise404=False)
|
||||
return not re.search(r"((warning|error)[^\n]*order)|(order by)", page or "", re.I)
|
||||
page, headers = Request.queryPage(payload, place=place, content=True, raise404=False)
|
||||
return not re.search(r"((warning|error)[^\n]*order)|(order by)", page or "", re.I) and comparison(page, headers)
|
||||
|
||||
if __orderByTest(1) and not __orderByTest(randomInt()):
|
||||
infoMsg = "ORDER BY technique seems to be usable. "
|
||||
|
|
Loading…
Reference in New Issue
Block a user