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

Skip to content

Commit 7304971

Browse files
committed
Patch for ORDER BY test on MsSQL on cases with 'The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator'
1 parent 7c16bfe commit 7304971

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
@@ -53,7 +53,7 @@ def __orderByTest(cols):
5353
query = agent.suffixQuery(query, suffix=suffix, comment=comment)
5454
payload = agent.payload(newValue=query, place=place, parameter=parameter, where=where)
5555
page, headers = Request.queryPage(payload, place=place, content=True, raise404=False)
56-
return not re.search(r"(warning|error|order by|failed)", page or "", re.I) and comparison(page, headers)
56+
return not re.search(r"(warning|error|order by|failed)", page or "", re.I) and comparison(page, headers) or re.search(r"data types cannot be compared or sorted", page or "", re.I)
5757

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

0 commit comments

Comments
 (0)