mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-04 14:55:40 +00:00
Fixes #6017
This commit is contained in:
parent
5a097c74c0
commit
0b5eb377c0
4 changed files with 21 additions and 9 deletions
|
|
@ -176,16 +176,23 @@ def _comparison(page, headers, code, getRatioValue, pageLength):
|
|||
else:
|
||||
key = (hash(seq1), hash(seq2))
|
||||
|
||||
seqMatcher.set_seq1(seq1)
|
||||
seqMatcher.set_seq2(seq2)
|
||||
try:
|
||||
seqMatcher.set_seq1(seq1)
|
||||
seqMatcher.set_seq2(seq2)
|
||||
except:
|
||||
seqMatcher.set_seq1(repr(seq1))
|
||||
seqMatcher.set_seq2(repr(seq2))
|
||||
|
||||
if key in kb.cache.comparison:
|
||||
ratio = kb.cache.comparison[key]
|
||||
else:
|
||||
try:
|
||||
ratio = seqMatcher.quick_ratio() if not kb.heavilyDynamic else seqMatcher.ratio()
|
||||
except (TypeError, MemoryError):
|
||||
ratio = seqMatcher.ratio()
|
||||
try:
|
||||
ratio = seqMatcher.quick_ratio() if not kb.heavilyDynamic else seqMatcher.ratio()
|
||||
except (TypeError, MemoryError, SystemError):
|
||||
ratio = seqMatcher.ratio()
|
||||
except:
|
||||
ratio = 0.0
|
||||
|
||||
ratio = round(ratio, 3)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue