Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b0ea74d

Browse files
committed
Minor warning message update
1 parent 0c07c89 commit b0ea74d

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.revision import getRevisionNumber
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.6.0"
22+
VERSION = "1.0.6.1"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

lib/request/connect.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,9 @@ class _(dict):
628628
warnMsg = "connection timed out to the target URL"
629629
elif "URLError" in tbMsg or "error" in tbMsg:
630630
warnMsg = "unable to connect to the target URL"
631+
match = re.search(r"Errno \d+\] ([^>]+)", tbMsg)
632+
if match:
633+
warnMsg += " ('%s')" % match.group(1)
631634
elif "NTLM" in tbMsg:
632635
warnMsg = "there has been a problem with NTLM authentication"
633636
elif "BadStatusLine" in tbMsg:

0 commit comments

Comments
 (0)