mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 00:04:23 +03:00
Fixes #1760
This commit is contained in:
parent
e03b2df58f
commit
a4f21399e7
|
@ -128,6 +128,7 @@ from lib.core.settings import PARTIAL_VALUE_MARKER
|
||||||
from lib.core.settings import PAYLOAD_DELIMITER
|
from lib.core.settings import PAYLOAD_DELIMITER
|
||||||
from lib.core.settings import PLATFORM
|
from lib.core.settings import PLATFORM
|
||||||
from lib.core.settings import PRINTABLE_CHAR_REGEX
|
from lib.core.settings import PRINTABLE_CHAR_REGEX
|
||||||
|
from lib.core.settings import PUSH_VALUE_EXCEPTION_RETRY_COUNT
|
||||||
from lib.core.settings import PYVERSION
|
from lib.core.settings import PYVERSION
|
||||||
from lib.core.settings import REFERER_ALIASES
|
from lib.core.settings import REFERER_ALIASES
|
||||||
from lib.core.settings import REFLECTED_BORDER_REGEX
|
from lib.core.settings import REFLECTED_BORDER_REGEX
|
||||||
|
@ -2183,7 +2184,22 @@ def pushValue(value):
|
||||||
Push value to the stack (thread dependent)
|
Push value to the stack (thread dependent)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
_ = None
|
||||||
|
success = False
|
||||||
|
|
||||||
|
for i in xrange(PUSH_VALUE_EXCEPTION_RETRY_COUNT):
|
||||||
|
try:
|
||||||
getCurrentThreadData().valueStack.append(copy.deepcopy(value))
|
getCurrentThreadData().valueStack.append(copy.deepcopy(value))
|
||||||
|
success = True
|
||||||
|
break
|
||||||
|
except Exception, ex:
|
||||||
|
_ = ex
|
||||||
|
|
||||||
|
if not success:
|
||||||
|
getCurrentThreadData().valueStack.append(None)
|
||||||
|
|
||||||
|
if _:
|
||||||
|
raise _
|
||||||
|
|
||||||
def popValue():
|
def popValue():
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -20,7 +20,7 @@ from lib.core.enums import OS
|
||||||
from lib.core.revision import getRevisionNumber
|
from lib.core.revision import getRevisionNumber
|
||||||
|
|
||||||
# sqlmap version and site
|
# sqlmap version and site
|
||||||
VERSION = "1.0.0.21"
|
VERSION = "1.0.0.22"
|
||||||
REVISION = getRevisionNumber()
|
REVISION = getRevisionNumber()
|
||||||
STABLE = VERSION.count('.') <= 2
|
STABLE = VERSION.count('.') <= 2
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")
|
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")
|
||||||
|
@ -139,6 +139,9 @@ MAX_BUFFERED_PARTIAL_UNION_LENGTH = 1024
|
||||||
# Suffix used for naming meta databases in DBMS(es) without explicit database name
|
# Suffix used for naming meta databases in DBMS(es) without explicit database name
|
||||||
METADB_SUFFIX = "_masterdb"
|
METADB_SUFFIX = "_masterdb"
|
||||||
|
|
||||||
|
# Number of times to retry the pushValue during the exceptions (e.g. KeyboardInterrupt)
|
||||||
|
PUSH_VALUE_EXCEPTION_RETRY_COUNT = 3
|
||||||
|
|
||||||
# Minimum time response set needed for time-comparison based on standard deviation
|
# Minimum time response set needed for time-comparison based on standard deviation
|
||||||
MIN_TIME_RESPONSES = 30
|
MIN_TIME_RESPONSES = 30
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user