File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919from lib .core .enums import OS
2020
2121# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22- VERSION = "1.2.11.5 "
22+ VERSION = "1.2.11.6 "
2323TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2424TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2525VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ class Connector:
2020 def __init__ (self ):
2121 self .connector = None
2222 self .cursor = None
23+ self .hostname = None
2324
2425 def initConnection (self ):
2526 self .user = conf .dbmsUser or ""
@@ -34,9 +35,10 @@ def printConnected(self):
3435 logger .info (infoMsg )
3536
3637 def closed (self ):
37- infoMsg = "connection to %s server %s" % (conf .dbms , self .hostname )
38- infoMsg += ":%d closed" % self .port
39- logger .info (infoMsg )
38+ if self .hostname :
39+ infoMsg = "connection to %s server %s" % (conf .dbms , self .hostname )
40+ infoMsg += ":%d closed" % self .port
41+ logger .info (infoMsg )
4042
4143 self .connector = None
4244 self .cursor = None
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
49490c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
5050a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5151fcb74fcc9577523524659ec49e2e964b lib/core/session.py
52- 9bea28956f348af193325c45ee992dda lib/core/settings.py
52+ 7e344a320c695a16b3c52d53f7c06006 lib/core/settings.py
5353a971ce157d04de96ba6e710d3d38a9a8 lib/core/shell.py
5454a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5555721198b5be72c8015a02acb116532a1f lib/core/target.py
@@ -211,7 +211,7 @@ f639120d42b33b6ca67930bddbf2ac1f plugins/dbms/sqlite/__init__.py
211211a3db8618eed5bb2807b6f77605cba9cc plugins/dbms/sybase/__init__.py
21221236acb9a5966af21b32e8558b0d50653d plugins/dbms/sybase/syntax.py
21321379f6c7017db4ded8f74a0117188836ff plugins/dbms/sybase/takeover.py
214- 34d181a7086d6dfc7e72ae5f8a4cfe0f plugins/generic/connector.py
214+ bdc159cc5afb28cadd980c01c43ba669 plugins/generic/connector.py
215215ce6a6ff713852b5eca7b78316cc941c4 plugins/generic/custom.py
2162163d75e831574c750ed58e24eaa562c056 plugins/generic/databases.py
21721735546acab0eea406c23b84363df4d534 plugins/generic/entries.py
You can’t perform that action at this time.
0 commit comments