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

Skip to content

Commit 831f79b

Browse files
committed
minor generalization
1 parent c742254 commit 831f79b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/techniques/union/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __orderByTest(cols):
5252
query = agent.suffixQuery(query, suffix=suffix, comment=comment)
5353
payload = agent.payload(newValue=query, place=place, parameter=parameter, where=where)
5454
page, headers = Request.queryPage(payload, place=place, content=True, raise404=False)
55-
return not re.search(r"((warning|error)[^\n]*order)|(order by)", page or "", re.I) and comparison(page, headers)
55+
return not re.search(r"(warning|error|order by)", page or "", re.I) and comparison(page, headers)
5656

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

0 commit comments

Comments
 (0)