Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d77a5f5

Browse files
committed
update (generalizing ORDER BY approach)
1 parent 1dd3fae commit d77a5f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/techniques/union/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def __orderByTest(cols):
5959
query = agent.prefixQuery("ORDER BY %d" % cols, prefix=prefix)
6060
query = agent.suffixQuery(query, suffix=suffix, comment=comment)
6161
payload = agent.payload(newValue=query, place=place, parameter=parameter, where=where)
62-
page, _ = Request.queryPage(payload, place=place, content=True, raise404=False)
63-
return not re.search(r"((warning|error)[^\n]*order)|(order by)", page or "", re.I)
62+
page, headers = Request.queryPage(payload, place=place, content=True, raise404=False)
63+
return not re.search(r"((warning|error)[^\n]*order)|(order by)", page or "", re.I) and comparison(page, headers)
6464

6565
if __orderByTest(1) and not __orderByTest(randomInt()):
6666
infoMsg = "ORDER BY technique seems to be usable. "

0 commit comments

Comments
 (0)