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

Skip to content

Commit 890bf70

Browse files
committed
Minor fixes to make --os-* switch work again against MySQL/Windows/ASP.NET (where stacked queries are supported)
1 parent 8cf5d26 commit 890bf70

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ def cleanQuery(query):
959959
sqlStatementEsc = sqlStatement.replace("(", "\\(")
960960
queryMatch = re.search("(%s)" % sqlStatementEsc, query, re.I)
961961

962-
if queryMatch:
962+
if queryMatch and "sys_exec" not in query:
963963
upperQuery = upperQuery.replace(queryMatch.group(1), sqlStatement.upper())
964964

965965
return upperQuery

xml/payloads.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1834,7 +1834,7 @@ Formats:
18341834
<vector>; IF(([INFERENCE]),SLEEP([SLEEPTIME]),[RANDNUM]);</vector>
18351835
<request>
18361836
<payload>; SELECT SLEEP([SLEEPTIME]);</payload>
1837-
<comment>#</comment>
1837+
<comment>--</comment>
18381838
</request>
18391839
<response>
18401840
<time>[SLEEPTIME]</time>
@@ -1855,7 +1855,7 @@ Formats:
18551855
<vector>; IF(([INFERENCE]),BENCHMARK([SLEEPTIME]000000,MD5('[RANDSTR]')),[RANDNUM]);</vector>
18561856
<request>
18571857
<payload>; SELECT BENCHMARK([SLEEPTIME]000000,MD5('[RANDSTR]'));</payload>
1858-
<comment>#</comment>
1858+
<comment>--</comment>
18591859
</request>
18601860
<response>
18611861
<time>[DELAYED]</time>

0 commit comments

Comments
 (0)