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

Skip to content

Commit 86170e1

Browse files
committed
Dirty patch for #4618
1 parent bce3abc commit 86170e1

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.5.3.19"
21+
VERSION = "1.5.3.20"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/request/connect.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,14 +789,19 @@ class _(dict):
789789
debugMsg = "got HTTP error code: %d ('%s')" % (code, status)
790790
logger.debug(debugMsg)
791791

792-
except (_urllib.error.URLError, socket.error, socket.timeout, _http_client.HTTPException, struct.error, binascii.Error, ProxyError, SqlmapCompressionException, WebSocketException, TypeError, ValueError, OverflowError):
792+
except (_urllib.error.URLError, socket.error, socket.timeout, _http_client.HTTPException, struct.error, binascii.Error, ProxyError, SqlmapCompressionException, WebSocketException, TypeError, ValueError, OverflowError, AttributeError):
793793
tbMsg = traceback.format_exc()
794794

795795
if conf.debug:
796796
dataToStdout(tbMsg)
797797

798798
if checking:
799799
return None, None, None
800+
elif "AttributeError:" in tbMsg:
801+
if "WSAECONNREFUSED" in tbMsg:
802+
return None, None, None
803+
else:
804+
raise
800805
elif "no host given" in tbMsg:
801806
warnMsg = "invalid URL address used (%s)" % repr(url)
802807
raise SqlmapSyntaxException(warnMsg)

0 commit comments

Comments
 (0)