diff --git a/lib/core/agent.py b/lib/core/agent.py index dcecc8762..b2d879476 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -120,7 +120,7 @@ class Agent(object): elif place == PLACE.CUSTOM_HEADER: paramString = origValue origValue = origValue.split(CUSTOM_INJECTION_MARK_CHAR)[0] - origValue = origValue[origValue.index(',') + 1:] + origValue = origValue[origValue.find(',') + 1:] match = re.search(r"([^;]+)=(?P[^;]+);?\Z", origValue) if match: origValue = match.group("value") diff --git a/lib/core/settings.py b/lib/core/settings.py index c10f3c2d7..41113022f 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import OS from lib.core.revision import getRevisionNumber # sqlmap version (...) -VERSION = "1.0.7.26" +VERSION = "1.0.7.27" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")