From 03e4741a6913e6ebbfc7674dbbe708813bc2d0df Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 17 Aug 2018 19:45:34 +0200 Subject: [PATCH] Trivial patch (display of used user queries) --- lib/core/settings.py | 2 +- plugins/generic/custom.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 b7226f946..7c500c5a9 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME from lib.core.enums import OS # sqlmap version (...) -VERSION = "1.2.8.8" +VERSION = "1.2.8.9" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) diff --git a/plugins/generic/custom.py b/plugins/generic/custom.py index b314410db..599b2ccf4 100644 --- a/plugins/generic/custom.py +++ b/plugins/generic/custom.py @@ -88,6 +88,7 @@ class Custom: try: query = raw_input("sql-shell> ") query = getUnicode(query, encoding=sys.stdin.encoding) + query = query.strip("; ") except KeyboardInterrupt: print errMsg = "user aborted" diff --git a/txt/checksum.md5 b/txt/checksum.md5 index b44034b11..280ca85e1 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -48,7 +48,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py 0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py a7db43859b61569b601b97f187dd31c5 lib/core/revision.py fcb74fcc9577523524659ec49e2e964b lib/core/session.py -588c1f076627097ed858094309961af9 lib/core/settings.py +2f3aba628e9e54988d510c5c1930e77a lib/core/settings.py dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py 5b7ff6f49ff3af62f8c12f74b6d49dd2 lib/core/target.py @@ -204,7 +204,7 @@ a3db8618eed5bb2807b6f77605cba9cc plugins/dbms/sybase/__init__.py 36acb9a5966af21b32e8558b0d50653d plugins/dbms/sybase/syntax.py 79f6c7017db4ded8f74a0117188836ff plugins/dbms/sybase/takeover.py 34d181a7086d6dfc7e72ae5f8a4cfe0f plugins/generic/connector.py -e6cd1c5a5244d83396b401f7db43d323 plugins/generic/custom.py +ce6a6ff713852b5eca7b78316cc941c4 plugins/generic/custom.py 156c227dbe765da3d0fd2976fbe18d8b plugins/generic/databases.py 4e2b366bb9cfdaaed719b219913357c6 plugins/generic/entries.py d82f2c78c1d4d7c6487e94fd3a68a908 plugins/generic/enumeration.py