Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd963a0

Browse files
committed
Fixes #4591
1 parent 0df2592 commit dd963a0

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.5.3.1"
21+
VERSION = "1.5.3.2"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/request/comparison.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,18 @@ def _comparison(page, headers, code, getRatioValue, pageLength):
154154
seqMatcher.set_seq1(seq1)
155155
seqMatcher.set_seq2(seq2)
156156

157-
key = (hash(seq1), hash(seq2))
157+
try:
158+
key = (hash(seq1), hash(seq2))
159+
except:
160+
key = None
158161

159162
if key in kb.cache.comparison:
160163
ratio = kb.cache.comparison[key]
161164
else:
162165
ratio = round(seqMatcher.quick_ratio() if not kb.heavilyDynamic else seqMatcher.ratio(), 3)
163166

164-
kb.cache.comparison[key] = ratio
167+
if key:
168+
kb.cache.comparison[key] = ratio
165169

166170
# If the url is stable and we did not set yet the match ratio and the
167171
# current injected value changes the url page content

0 commit comments

Comments
 (0)