mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
code refactoring
This commit is contained in:
parent
04714374f9
commit
0fc7a8f9e8
3 changed files with 16 additions and 19 deletions
|
|
@ -1637,3 +1637,15 @@ def aliasToDbmsEnum(value):
|
|||
break
|
||||
return retVal
|
||||
|
||||
def removeDynamicContent(page):
|
||||
if page:
|
||||
for item in kb.dynamicMarkings:
|
||||
prefix, suffix = item
|
||||
if prefix is None:
|
||||
page = re.sub('(?s)^.+%s' % suffix, suffix, page)
|
||||
elif suffix is None:
|
||||
page = re.sub('(?s)%s.+$' % prefix, prefix, page)
|
||||
else:
|
||||
page = re.sub('(?s)%s.+%s' % (prefix, suffix), '%s%s' % (prefix, suffix), page)
|
||||
|
||||
return page
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue