Minor update

This commit is contained in:
Miroslav Stampar
2025-12-29 23:29:39 +01:00
parent 0a6b5fb747
commit f2560776e9
4 changed files with 9 additions and 8 deletions

View File

@@ -4542,7 +4542,7 @@ def randomizeParameterValue(value):
if original != candidate:
break
retVal = retVal.replace(original, candidate)
retVal = retVal.replace(original, candidate, 1)
if re.match(r"\A[^@]+@.+\.[a-z]+\Z", value):
parts = retVal.split('.')
@@ -5159,8 +5159,8 @@ def prioritySortColumns(columns):
Sorts given column names by length in ascending order while those containing
string 'id' go first
>>> prioritySortColumns(['password', 'userid', 'name'])
['userid', 'name', 'password']
>>> prioritySortColumns(['password', 'userid', 'name', 'id'])
['id', 'userid', 'name', 'password']
"""
def _(column):

View File

@@ -69,6 +69,7 @@ from lib.core.data import mergedOptions
from lib.core.data import queries
from lib.core.datatype import AttribDict
from lib.core.datatype import InjectionDict
from lib.core.datatype import LRUDict
from lib.core.datatype import OrderedSet
from lib.core.defaults import defaults
from lib.core.dicts import DBMS_DICT
@@ -2035,7 +2036,7 @@ def _setKnowledgeBaseAttributes(flushAll=True):
kb.cache = AttribDict()
kb.cache.addrinfo = {}
kb.cache.content = {}
kb.cache.content = LRUDict(capacity=16)
kb.cache.comparison = {}
kb.cache.encoding = {}
kb.cache.alphaBoundaries = None

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.28"
VERSION = "1.9.12.29"
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)