From 154ed2c4e257fdc8e628a86da65d6bc540cc4dc4 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 27 May 2016 13:33:14 +0200 Subject: [PATCH] Minor patch --- lib/core/settings.py | 2 +- lib/request/connect.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index ee517fa92..c4643b2ba 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.5.85" +VERSION = "1.0.5.86" REVISION = getRevisionNumber() STABLE = VERSION.count('.') <= 2 VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev") diff --git a/lib/request/connect.py b/lib/request/connect.py index 91be496bb..ffddc22ed 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -832,9 +832,13 @@ class Connect(object): if PLACE.GET in conf.parameters: get = conf.parameters[PLACE.GET] if place != PLACE.GET or not value else value + elif place == PLACE.GET: # Note: for (e.g.) checkWaf() when there are no GET parameters + get = value if PLACE.POST in conf.parameters: post = conf.parameters[PLACE.POST] if place != PLACE.POST or not value else value + elif place == PLACE.POST: + post = value if PLACE.CUSTOM_POST in conf.parameters: post = conf.parameters[PLACE.CUSTOM_POST].replace(CUSTOM_INJECTION_MARK_CHAR, "") if place != PLACE.CUSTOM_POST or not value else value