From d0afa7f325e9fcd811f41ea9b2c0c3a6ec8bdc29 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 12 Nov 2014 11:53:42 +0100 Subject: [PATCH] Bug fix for not displaying proper version in unhandled exception win cases --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index 6fa139882..60578d3a9 100755 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2847,7 +2847,7 @@ def unhandledExceptionMessage(): errMsg += "reproduce the bug. The " errMsg += "developers will try to reproduce the bug, fix it accordingly " errMsg += "and get back to you\n" - errMsg += "sqlmap version: %s%s\n" % (VERSION, "-%s" % REVISION if REVISION else "") + errMsg += "sqlmap version: %s\n" % VERSION_STRING[VERSION_STRING.find('/') + 1:] errMsg += "Python version: %s\n" % PYVERSION errMsg += "Operating system: %s\n" % PLATFORM errMsg += "Command line: %s\n" % re.sub(r".+?\bsqlmap.py\b", "sqlmap.py", " ".join(sys.argv))