mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
some fixes regarding --check-payload
This commit is contained in:
parent
b3b2c3864a
commit
f7d42af046
|
@ -50,9 +50,6 @@ def checkPayload(payload):
|
|||
|
||||
if payload:
|
||||
for rule, desc in rules:
|
||||
try:
|
||||
regObj = getCompiledRegex(rule)
|
||||
if regObj.search(payload):
|
||||
logger.warn("highly probable IDS/IPS detection: '%s: %s'" % (desc, payload))
|
||||
except: # Some issues with some regex expressions in Python 2.5
|
||||
pass
|
||||
regObj = getCompiledRegex(rule)
|
||||
if regObj.search(payload):
|
||||
logger.warn("highly probable IDS/IPS detection: '%s: %s'" % (desc, payload))
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
</filter>
|
||||
<filter>
|
||||
<id>45</id>
|
||||
<rule><![CDATA[(?:union\s*(?:all|distinct|[(!@]*)?\s*[([]*\s*select)|(?:\w+\s+like\s+\")|(?:like\s*"\%)|(?:"\s*like\W*["\d])|(?:"\s*(?:n?and|x?or|not |\|\||\&\&)\s+[\s\w]+=\s*\w+\s*having)|(?:"\s*\*\s*\w+\W+")|(?:"\s*[^?\w\s=.,;)(]+\s*[(@"]*\s*\w+\W+\w)|(?:select\s*[\[\]()\s\w\.,-]+from)]]></rule>
|
||||
<rule><![CDATA[(?:union\s*(?:all|distinct|[(!@]+)?\s*[([]*\s*select)|(?:\w+\s+like\s+\")|(?:like\s*"\%)|(?:"\s*like\W*["\d])|(?:"\s*(?:n?and|x?or|not |\|\||\&\&)\s+[\s\w]+=\s*\w+\s*having)|(?:"\s*\*\s*\w+\W+")|(?:"\s*[^?\w\s=.,;)(]+\s*[(@"]*\s*\w+\W+\w)|(?:select\s*[\[\]()\s\w\.,-]+from)]]></rule>
|
||||
<description>Detects basic SQL authentication bypass attempts 2/3</description>
|
||||
<tags>
|
||||
<tag>sqli</tag>
|
||||
|
|
Loading…
Reference in New Issue
Block a user