Minor fixes

This commit is contained in:
Miroslav Stampar
2025-12-30 22:04:29 +01:00
parent 95bd377b26
commit 9da2bde989
3 changed files with 9 additions and 6 deletions

View File

@@ -87,7 +87,7 @@ class AttribDict(dict):
self.__dict__ = dict
def __deepcopy__(self, memo):
retVal = self.__class__()
retVal = self.__class__(keycheck=self.keycheck)
memo[id(self)] = retVal
for attr in dir(self):
@@ -157,8 +157,11 @@ class LRUDict(object):
self.cache[key] = value
return value
def get(self, key):
return self.__getitem__(key)
def get(self, key, default=None):
try:
return self.__getitem__(key)
except:
return default
def __setitem__(self, key, value):
with self.__lock:

View File

@@ -19,7 +19,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.9.12.42"
VERSION = "1.9.12.43"
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)