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

Skip to content

Commit e7aaea2

Browse files
committed
Update for an Issue #1826
1 parent 63d7cd6 commit e7aaea2

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/core/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def payload(self, place=None, parameter=None, value=None, newValue=None, where=N
168168
retVal = retVal.replace(CUSTOM_INJECTION_MARK_CHAR, "").replace(REPLACEMENT_MARKER, CUSTOM_INJECTION_MARK_CHAR)
169169
elif BOUNDED_INJECTION_MARKER in paramDict[parameter]:
170170
_ = "%s%s" % (origValue, BOUNDED_INJECTION_MARKER)
171-
retVal = "%s=%s" % (re.sub(r" \#\d\*\Z", "", parameter), paramString.replace(_, self.addPayloadDelimiters(newValue)))
171+
retVal = "%s=%s" % (re.sub(r" (\#\d\*|\(.+\))\Z", "", parameter), paramString.replace(_, self.addPayloadDelimiters(newValue)))
172172
elif place in (PLACE.USER_AGENT, PLACE.REFERER, PLACE.HOST):
173173
retVal = paramString.replace(origValue, self.addPayloadDelimiters(newValue))
174174
else:

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ def walk(head, current=None):
623623
current[key] = "%s%s" % (str(value).lower(), BOUNDED_INJECTION_MARKER)
624624
else:
625625
current[key] = "%s%s" % (value, BOUNDED_INJECTION_MARKER)
626-
candidates["%s #%d%s" % (parameter, len(candidates) + 1, CUSTOM_INJECTION_MARK_CHAR)] = json.dumps(deserialized)
626+
candidates["%s (%s)" % (parameter, key)] = json.dumps(deserialized)
627627
current[key] = original
628628

629629
deserialized = json.loads(testableParameters[parameter])

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.5.35"
22+
VERSION = "1.0.5.36"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

0 commit comments

Comments
 (0)