From 7fea8d608e4230e6def061cbef0b681f46cfefe5 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sat, 16 Jul 2016 22:42:15 +0200 Subject: [PATCH] Fixes #2028 --- lib/core/agent.py | 2 +- lib/core/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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")