Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 091678b

Browse files
committed
Some fine tuning (#4505 - in case of --no-escape)
1 parent 0c3d8c9 commit 091678b

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/core/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.5.1.4"
21+
VERSION = "1.5.1.5"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
@@ -490,7 +490,7 @@
490490
REFLECTED_BORDER_REGEX = r"[^A-Za-z]+"
491491

492492
# Regular expression used for replacing non-alphanum characters
493-
REFLECTED_REPLACEMENT_REGEX = r"[^\n]{1,100}"
493+
REFLECTED_REPLACEMENT_REGEX = r"[^\n]{1,168}"
494494

495495
# Maximum time (in seconds) spent per reflective value(s) replacement
496496
REFLECTED_REPLACEMENT_TIMEOUT = 3

lib/techniques/union/use.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def _oneShotUnionUse(expression, unpack=True, limited=False):
9898

9999
if kb.jsonAggMode:
100100
if Backend.isDbms(DBMS.MSSQL):
101-
output = extractRegexResult(r"%s(?P<result>.*)%s" % (kb.chars.start, kb.chars.stop), page or "")
101+
output = extractRegexResult(r"%s(?P<result>.*)%s" % (kb.chars.start, kb.chars.stop), removeReflectiveValues(page or "", payload))
102102
if output:
103103
try:
104104
retVal = ""
@@ -110,11 +110,11 @@ def _oneShotUnionUse(expression, unpack=True, limited=False):
110110
else:
111111
retVal = getUnicode(retVal)
112112
elif Backend.isDbms(DBMS.PGSQL):
113-
output = extractRegexResult(r"(?P<result>%s.*%s)" % (kb.chars.start, kb.chars.stop), page or "")
113+
output = extractRegexResult(r"(?P<result>%s.*%s)" % (kb.chars.start, kb.chars.stop), removeReflectiveValues(page or "", payload))
114114
if output:
115115
retVal = output
116116
else:
117-
output = extractRegexResult(r"%s(?P<result>.*?)%s" % (kb.chars.start, kb.chars.stop), page or "")
117+
output = extractRegexResult(r"%s(?P<result>.*?)%s" % (kb.chars.start, kb.chars.stop), removeReflectiveValues(page or "", payload))
118118
if output:
119119
try:
120120
retVal = ""

0 commit comments

Comments
 (0)