Skip to content

Commit ccc38ab

Browse files
committed
Dirty patch for #5488
1 parent 3e98fab commit ccc38ab

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/core/agent.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@ def payload(self, place=None, parameter=None, value=None, newValue=None, where=N
185185
newValue = newValue.replace(BOUNDARY_BACKSLASH_MARKER, '\\')
186186
newValue = self.adjustLateValues(newValue)
187187

188+
# NOTE: https://github.com/sqlmapproject/sqlmap/issues/5488
189+
if kb.customInjectionMark in origValue:
190+
payload = newValue.replace(origValue, "")
191+
newValue = origValue.replace(kb.customInjectionMark, payload)
192+
188193
# TODO: support for POST_HINT
189194
newValue = "%s%s%s" % (BOUNDED_BASE64_MARKER, newValue, BOUNDED_BASE64_MARKER)
190195

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.7.8.6"
23+
VERSION = "1.7.8.7"
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)

0 commit comments

Comments
 (0)