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

Skip to content

Commit 87f6db4

Browse files
committed
Minor patches
1 parent 404d848 commit 87f6db4

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4504,7 +4504,7 @@ def geturl(self):
45044504
data = data.strip("['\"]")
45054505
retVal.add((url, HTTPMETHOD.POST, data, conf.cookie, None))
45064506

4507-
if not retVal:
4507+
if not retVal and not conf.crawlDepth:
45084508
errMsg = "there were no forms found at the given target URL"
45094509
if raise_:
45104510
raise SqlmapGenericException(errMsg)

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.3.11.22"
21+
VERSION = "1.3.11.23"
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/httpshandler.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
pass
2828

2929
_protocols = filterNone(getattr(ssl, _, None) for _ in ("PROTOCOL_TLSv1_2", "PROTOCOL_TLSv1_1", "PROTOCOL_TLSv1", "PROTOCOL_SSLv3", "PROTOCOL_SSLv23", "PROTOCOL_SSLv2"))
30+
_lut = dict((getattr(ssl, _), _) for _ in dir(ssl) if _.startswith("PROTOCOL_"))
3031

3132
class HTTPSConnection(_http_client.HTTPSConnection):
3233
"""
@@ -66,7 +67,7 @@ def create_sock():
6667
sock.close()
6768
except (ssl.SSLError, socket.error, _http_client.BadStatusLine) as ex:
6869
self._tunnel_host = None
69-
logger.debug("SSL connection error occurred ('%s')" % getSafeExString(ex))
70+
logger.debug("SSL connection error occurred for '%s' ('%s')" % (_lut[protocol], getSafeExString(ex)))
7071

7172
if kb.tlsSNI.get(self.host) is None:
7273
kb.tlsSNI[self.host] = success
@@ -86,7 +87,7 @@ def create_sock():
8687
sock.close()
8788
except (ssl.SSLError, socket.error, _http_client.BadStatusLine) as ex:
8889
self._tunnel_host = None
89-
logger.debug("SSL connection error occurred ('%s')" % getSafeExString(ex))
90+
logger.debug("SSL connection error occurred for '%s' ('%s')" % (_lut[protocol], getSafeExString(ex)))
9091

9192
if not success:
9293
errMsg = "can't establish SSL connection"

0 commit comments

Comments
 (0)