mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-16 19:40:37 +03:00
major bug fix (haven't applied dynamic content removal to the original comparison (conf.seqMatcher.a) page)
This commit is contained in:
parent
ff310475c8
commit
b3ad63b71e
|
@ -223,6 +223,17 @@ def checkDynamicContent(firstPage, secondPage):
|
||||||
infoMsg = "dynamic content marked for removal (%d region%s)" % (len(kb.dynamicMarkings), 's' if len(kb.dynamicMarkings) > 1 else '')
|
infoMsg = "dynamic content marked for removal (%d region%s)" % (len(kb.dynamicMarkings), 's' if len(kb.dynamicMarkings) > 1 else '')
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
|
if conf.seqMatcher.a:
|
||||||
|
for item in kb.dynamicMarkings:
|
||||||
|
prefix, postfix = item
|
||||||
|
|
||||||
|
if prefix is None:
|
||||||
|
conf.seqMatcher.a = re.sub('(?s)^.+%s' % postfix, postfix, conf.seqMatcher.a)
|
||||||
|
elif postfix is None:
|
||||||
|
conf.seqMatcher.a = re.sub('(?s)%s.+$' % prefix, prefix, conf.seqMatcher.a)
|
||||||
|
else:
|
||||||
|
conf.seqMatcher.a = re.sub('(?s)%s.+%s' % (prefix, postfix), '%s%s' % (prefix, postfix), conf.seqMatcher.a)
|
||||||
|
|
||||||
def checkStability():
|
def checkStability():
|
||||||
"""
|
"""
|
||||||
This function checks if the URL content is stable requesting the
|
This function checks if the URL content is stable requesting the
|
||||||
|
|
Loading…
Reference in New Issue
Block a user