mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-02-04 12:36:36 +00:00
Minor update
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user