mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-24 00:19:02 +00:00
Minor update
This commit is contained in:
@@ -56,6 +56,12 @@ class BigArray(list):
|
||||
>>> _[20] = 0
|
||||
>>> _[99999]
|
||||
99999
|
||||
>>> _ += [0]
|
||||
>>> _[100000]
|
||||
0
|
||||
>>> _ = _ + [1]
|
||||
>>> _[-1]
|
||||
1
|
||||
"""
|
||||
|
||||
def __init__(self, items=None):
|
||||
@@ -69,6 +75,20 @@ class BigArray(list):
|
||||
for item in (items or []):
|
||||
self.append(item)
|
||||
|
||||
def __add__(self, value):
|
||||
retval = BigArray(self)
|
||||
|
||||
for _ in value:
|
||||
retval.append(_)
|
||||
|
||||
return retval
|
||||
|
||||
def __iadd__(self, value):
|
||||
for _ in value:
|
||||
self.append(_)
|
||||
|
||||
return self
|
||||
|
||||
def append(self, value):
|
||||
self.chunks[-1].append(value)
|
||||
|
||||
@@ -145,7 +165,7 @@ class BigArray(list):
|
||||
self.chunks, self.filenames = state
|
||||
|
||||
def __getitem__(self, y):
|
||||
if y < 0:
|
||||
while y < 0:
|
||||
y += len(self)
|
||||
|
||||
index = y // self.chunk_length
|
||||
|
||||
@@ -19,7 +19,7 @@ from lib.core.enums import OS
|
||||
from thirdparty.six import unichr as _unichr
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.5.5.4"
|
||||
VERSION = "1.5.5.5"
|
||||
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)
|
||||
@@ -106,7 +106,7 @@ FUZZ_UNION_ERROR_REGEX = r"(?i)data\s?type|comparable|compatible|conversion|conv
|
||||
FUZZ_UNION_MAX_COLUMNS = 10
|
||||
|
||||
# Regular expression used for recognition of generic maximum connection messages
|
||||
MAX_CONNECTIONS_REGEX = r"\bmax.+?\bconnection"
|
||||
MAX_CONNECTIONS_REGEX = r"\bmax.{1,100}\bconnection"
|
||||
|
||||
# Maximum consecutive connection errors before asking the user if he wants to continue
|
||||
MAX_CONSECUTIVE_CONNECTION_ERRORS = 15
|
||||
|
||||
Reference in New Issue
Block a user