mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
update (--string and --regex should be done regardless of wasLastRequestError)
This commit is contained in:
@@ -22,10 +22,6 @@ def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
|
|||||||
if page is None and pageLength is None:
|
if page is None and pageLength is None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
# In case of an DBMS error page return None
|
|
||||||
if wasLastRequestError():
|
|
||||||
return None
|
|
||||||
|
|
||||||
regExpResults = None
|
regExpResults = None
|
||||||
|
|
||||||
if page:
|
if page:
|
||||||
@@ -57,6 +53,10 @@ def comparison(page, headers=None, getSeqMatcher=False, pageLength=None):
|
|||||||
if conf.regexp:
|
if conf.regexp:
|
||||||
return re.search(conf.regexp, page, re.I | re.M) is not None
|
return re.search(conf.regexp, page, re.I | re.M) is not None
|
||||||
|
|
||||||
|
# In case of an DBMS error page return None
|
||||||
|
if wasLastRequestError():
|
||||||
|
return None
|
||||||
|
|
||||||
# Dynamic content lines to be excluded before comparison
|
# Dynamic content lines to be excluded before comparison
|
||||||
if not kb.nullConnection and not conf.longestCommon:
|
if not kb.nullConnection and not conf.longestCommon:
|
||||||
for item in kb.dynamicMarkings:
|
for item in kb.dynamicMarkings:
|
||||||
|
|||||||
Reference in New Issue
Block a user