Couple of bug fixes

This commit is contained in:
Miroslav Štampar 2026-06-11 16:17:56 +02:00
parent be216041e2
commit 85b8d36620
4 changed files with 7 additions and 7 deletions

View file

@ -20,7 +20,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.10.6.64"
VERSION = "1.10.6.65"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

View file

@ -616,7 +616,7 @@ def _finalize(retVal, results, processes, attack_info=None):
removals.add((user, hash_))
hashDBWrite(hash_, word)
for item in attack_info or []:
for item in list(attack_info or []):
if (item[0][0], item[0][1]) in removals:
attack_info.remove(item)
@ -1081,7 +1081,7 @@ def dictionaryAttack(attack_dict):
if item and hash_ not in keys:
resumed = hashDBRetrieve(hash_)
if not resumed:
if resumed is None:
attack_info.append(item)
user_hash.append(item[0])
else:

View file

@ -106,7 +106,7 @@ class HashDB(object):
if retVal is None:
retVal = self._read_cache.get(hash_)
if not retVal:
if retVal is None:
for _ in xrange(HASHDB_RETRIEVE_RETRIES):
try:
for row in self.cursor.execute("SELECT value FROM storage WHERE id=?", (hash_,)):