From 78e398d9c4b4ba6dcc1afd0b1dd745cbf6b624a7 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 6 Sep 2016 15:03:17 +0200 Subject: [PATCH] Fixes #2136 --- lib/core/settings.py | 2 +- lib/request/basic.py | 6 +++++- txt/checksum.md5 | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 52ae44efe..fe0497208 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.9.7" +VERSION = "1.0.9.8" REVISION = getRevisionNumber() TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} diff --git a/lib/request/basic.py b/lib/request/basic.py index db9fa8e4a..44c3d3e92 100644 --- a/lib/request/basic.py +++ b/lib/request/basic.py @@ -351,7 +351,11 @@ def processResponse(page, responseHeaders): if PLACE.POST in conf.paramDict and name in conf.paramDict[PLACE.POST]: if conf.paramDict[PLACE.POST][name] in page: continue - conf.paramDict[PLACE.POST][name] = value + else: + msg = "do you want to automatically adjust the value of '%s'? [y/N]" % name + if readInput(msg, default='N').strip().upper() != 'Y': + continue + conf.paramDict[PLACE.POST][name] = value conf.parameters[PLACE.POST] = re.sub("(?i)(%s=)[^&]+" % name, r"\g<1>%s" % value, conf.parameters[PLACE.POST]) if not kb.captchaDetected and re.search(r"(?i)captcha", page or ""): diff --git a/txt/checksum.md5 b/txt/checksum.md5 index fc3eaa476..94c5c7d18 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -45,7 +45,7 @@ e60456db5380840a586654344003d4e6 lib/core/readlineng.py 5ef56abb8671c2ca6ceecb208258e360 lib/core/replication.py 99a2b496b9d5b546b335653ca801153f lib/core/revision.py 7c15dd2777af4dac2c89cab6df17462e lib/core/session.py -d12bfc3c177bd88dfeab5b4fc0f79571 lib/core/settings.py +90500687aaacde7d96897ff984e44e5f lib/core/settings.py 7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py 23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py 0bc2fae1dec18cdd11954b22358293f2 lib/core/target.py @@ -66,7 +66,7 @@ cc9c82cfffd8ee9b25ba3af6284f057e lib/parse/__init__.py af6b8e1c6eb074b56bbd9cd80aebcd97 lib/parse/payloads.py b40a4c5d91770d347df36d3065b63798 lib/parse/sitemap.py 9299f21804033f099681525bb9bf51c0 lib/request/basicauthhandler.py -a3e83cfe7e6825fb1b70951ad290d2ae lib/request/basic.py +81bf50cdc078e640e1f382b7eeeb70d8 lib/request/basic.py 97fb6323bfb5f941b27cbdb00f9078e1 lib/request/comparison.py 8bc040159a145a1dfdf8a3fe76a0adbc lib/request/connect.py 49b4c583af68689de5f9acb162de2939 lib/request/direct.py