mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 16:24:25 +03:00
minor refactoring (now at the most basic level at least junky <script> and <style> tags are removed for the sake of better blind based detection)
This commit is contained in:
parent
78d696fd4f
commit
1aecbe6b08
|
@ -54,16 +54,13 @@ def comparison(page, getSeqMatcher=False, pageLength=None):
|
||||||
if not pageLength:
|
if not pageLength:
|
||||||
pageLength = len(page)
|
pageLength = len(page)
|
||||||
|
|
||||||
if conf.textOnly:
|
|
||||||
(seqMatcher.a, page) = map(getFilteredPageContent, (seqMatcher.a, page))
|
|
||||||
|
|
||||||
if kb.nullConnection and pageLength:
|
if kb.nullConnection and pageLength:
|
||||||
ratio = 1. * pageLength / len(seqMatcher.a)
|
ratio = 1. * pageLength / len(seqMatcher.a)
|
||||||
|
|
||||||
if ratio > 1.:
|
if ratio > 1.:
|
||||||
ratio = 1. / ratio
|
ratio = 1. / ratio
|
||||||
else:
|
else:
|
||||||
seqMatcher.set_seq2(page)
|
(seqMatcher.a, seqMatcher.b) = map(lambda x: getFilteredPageContent(x, conf.textOnly), (seqMatcher.a, page))
|
||||||
ratio = round(seqMatcher.quick_ratio(), 3)
|
ratio = round(seqMatcher.quick_ratio(), 3)
|
||||||
|
|
||||||
# If the url is stable and we did not set yet the match ratio and the
|
# If the url is stable and we did not set yet the match ratio and the
|
||||||
|
|
Loading…
Reference in New Issue
Block a user