Skip to content

Commit a246b8d

Browse files
committed
Fixes #5182
1 parent 70665c5 commit a246b8d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.6.9.1"
23+
VERSION = "1.6.9.2"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/core/target.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ def process(match, repl):
120120
while True:
121121
_ = re.search(r"\\g<([^>]+)>", retVal)
122122
if _:
123-
retVal = retVal.replace(_.group(0), match.group(int(_.group(1)) if _.group(1).isdigit() else _.group(1)))
123+
try:
124+
retVal = retVal.replace(_.group(0), match.group(int(_.group(1)) if _.group(1).isdigit() else _.group(1)))
125+
except IndexError:
126+
break
124127
else:
125128
break
126129
if kb.customInjectionMark in retVal:

0 commit comments

Comments
 (0)