From b0ea74dc63b0fbf04f5aff676fc3ee2aca808333 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 1 Jun 2016 10:53:32 +0200 Subject: [PATCH] Minor warning message update --- lib/core/settings.py | 2 +- lib/request/connect.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index f7d317f5b..b1021d4a5 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.6.0" +VERSION = "1.0.6.1" 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 92625639e..8ae70a800 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -628,6 +628,9 @@ class Connect(object): warnMsg = "connection timed out to the target URL" elif "URLError" in tbMsg or "error" in tbMsg: warnMsg = "unable to connect to the target URL" + match = re.search(r"Errno \d+\] ([^>]+)", tbMsg) + if match: + warnMsg += " ('%s')" % match.group(1) elif "NTLM" in tbMsg: warnMsg = "there has been a problem with NTLM authentication" elif "BadStatusLine" in tbMsg: