mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-04-25 19:33:48 +03:00
Fixes #1745
This commit is contained in:
parent
242800c085
commit
0f6e529fb9
|
@ -3142,6 +3142,7 @@ def removeReflectiveValues(content, payload, suppressWarning=False):
|
||||||
|
|
||||||
retVal = content
|
retVal = content
|
||||||
|
|
||||||
|
try:
|
||||||
if all([content, payload]) and isinstance(content, unicode) and kb.reflectiveMechanism and not kb.heuristicMode:
|
if all([content, payload]) and isinstance(content, unicode) and kb.reflectiveMechanism and not kb.heuristicMode:
|
||||||
def _(value):
|
def _(value):
|
||||||
while 2 * REFLECTED_REPLACEMENT_REGEX in value:
|
while 2 * REFLECTED_REPLACEMENT_REGEX in value:
|
||||||
|
@ -3195,6 +3196,11 @@ def removeReflectiveValues(content, payload, suppressWarning=False):
|
||||||
if not suppressWarning:
|
if not suppressWarning:
|
||||||
debugMsg = "turning off reflection removal mechanism (for optimization purposes)"
|
debugMsg = "turning off reflection removal mechanism (for optimization purposes)"
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
except MemoryError:
|
||||||
|
kb.reflectiveMechanism = False
|
||||||
|
if not suppressWarning:
|
||||||
|
debugMsg = "turning off reflection removal mechanism (because of low memory issues)"
|
||||||
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
return retVal
|
return retVal
|
||||||
|
|
||||||
|
|
|
@ -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.12"
|
VERSION = "1.0.0.13"
|
||||||
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")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user