mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-03-06 05:15:48 +03:00
paranoid cosmetics
This commit is contained in:
parent
b2b521fc8a
commit
253eafb643
|
@ -1541,6 +1541,7 @@ def extractErrorMessage(page):
|
|||
if isinstance(page, basestring):
|
||||
for regex in (r"<b>[^<]*(fatal|error|warning|exception)[^<]*</b>:?\s+(?P<result>.+?)<br\s*/?\s*>", r"<li>Error Type:<br>(?P<result>.+?)</li>"):
|
||||
match = re.search(regex, page, re.DOTALL | re.IGNORECASE)
|
||||
|
||||
if match:
|
||||
retVal = htmlunescape(match.group("result")).replace("<br>", "\n").strip()
|
||||
break
|
||||
|
|
|
@ -310,6 +310,7 @@ class Connect:
|
|||
|
||||
if conf.parseErrors:
|
||||
msg = extractErrorMessage(page)
|
||||
|
||||
if msg:
|
||||
logger.info("parsed error message: '%s'" % msg)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user