File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1441,6 +1441,8 @@ def parseTargetDirect():
14411441 for dbmsName , data in DBMS_DICT .items ():
14421442 if dbmsName == conf .dbms or conf .dbms .lower () in data [0 ]:
14431443 try :
1444+ conf .dbms = dbmsName
1445+
14441446 if dbmsName in (DBMS .ACCESS , DBMS .SQLITE , DBMS .FIREBIRD ):
14451447 if remote :
14461448 warnMsg = "direct connection over the network for "
Original file line number Diff line number Diff line change 1818from thirdparty import six
1919
2020# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21- VERSION = "1.3.5.36 "
21+ VERSION = "1.3.5.37 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_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 @@ -30,12 +30,13 @@ def initConnection(self):
3030 self .db = conf .dbmsDb
3131
3232 def printConnected (self ):
33- infoMsg = "connection to %s server %s" % (conf .dbms , self .hostname )
34- infoMsg += ":%d established" % self .port
35- logger .info (infoMsg )
33+ if self .hostname and self .port :
34+ infoMsg = "connection to %s server %s" % (conf .dbms , self .hostname )
35+ infoMsg += ":%d established" % self .port
36+ logger .info (infoMsg )
3637
3738 def closed (self ):
38- if self .hostname :
39+ if self .hostname and self . port :
3940 infoMsg = "connection to %s server %s" % (conf .dbms , self .hostname )
4041 infoMsg += ":%d closed" % self .port
4142 logger .info (infoMsg )
You can’t perform that action at this time.
0 commit comments