some fixes regarding --check-payload

This commit is contained in:
Miroslav Stampar
2010-10-29 11:00:23 +00:00
parent b3b2c3864a
commit f7d42af046
2 changed files with 4 additions and 7 deletions

View File

@@ -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))