From 6ba46bf7cf774151076d0c6f7ce9c08f3cbc1976 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 8 Aug 2016 15:55:39 +0200 Subject: [PATCH] Update for #2086 (lowercasing only the command) --- lib/core/settings.py | 2 +- lib/utils/api.py | 1 + txt/checksum.md5 | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 10bea1ce9..35b4ef52b 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.8.15" +VERSION = "1.0.8.16" 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/utils/api.py b/lib/utils/api.py index 2d69cdd2e..3a640f338 100644 --- a/lib/utils/api.py +++ b/lib/utils/api.py @@ -723,6 +723,7 @@ def client(host=RESTAPI_DEFAULT_ADDRESS, port=RESTAPI_DEFAULT_PORT): while True: try: command = raw_input("api%s> " % (" (%s)" % taskid if taskid else "")).strip() + command = re.sub(r"\A(\w+)", lambda match: match.group(1).lower(), command) except (EOFError, KeyboardInterrupt): print break diff --git a/txt/checksum.md5 b/txt/checksum.md5 index ed4006712..f219fd02b 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 -d8f65d22fc82dcb594768a228a53c08a lib/core/settings.py +3213c60c98bcb3037a74cbdde92c10a1 lib/core/settings.py 7af83e4f18cab6dff5e67840eb65be80 lib/core/shell.py 23657cd7d924e3c6d225719865855827 lib/core/subprocessng.py 0bc2fae1dec18cdd11954b22358293f2 lib/core/target.py @@ -100,7 +100,7 @@ cc9c82cfffd8ee9b25ba3af6284f057e lib/techniques/__init__.py cc9c82cfffd8ee9b25ba3af6284f057e lib/techniques/union/__init__.py f5d6884cdeed28281187c111d3e49e3b lib/techniques/union/test.py 12ce1bb7ee5f1f23f58be12fe9fa8472 lib/techniques/union/use.py -2dfc03a7322c46deb2e5353a7fd4be5e lib/utils/api.py +d05be2ba94734e95150a33aec05d3d9b lib/utils/api.py 8cdc8c1e663c3b92a756fb7b02cc3c02 lib/utils/crawler.py 393f8fd1684308213e1d2e6a9d4258c2 lib/utils/deps.py 4dfd3a95e73e806f62372d63bc82511f lib/utils/getch.py