mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
Minor beauty patch
This commit is contained in:
parent
74c7cf95f2
commit
edba6a2a28
|
@ -1441,6 +1441,8 @@ def parseTargetDirect():
|
|||
for dbmsName, data in DBMS_DICT.items():
|
||||
if dbmsName == conf.dbms or conf.dbms.lower() in data[0]:
|
||||
try:
|
||||
conf.dbms = dbmsName
|
||||
|
||||
if dbmsName in (DBMS.ACCESS, DBMS.SQLITE, DBMS.FIREBIRD):
|
||||
if remote:
|
||||
warnMsg = "direct connection over the network for "
|
||||
|
|
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
|||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.3.5.36"
|
||||
VERSION = "1.3.5.37"
|
||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||
|
|
|
@ -30,12 +30,13 @@ class Connector:
|
|||
self.db = conf.dbmsDb
|
||||
|
||||
def printConnected(self):
|
||||
infoMsg = "connection to %s server %s" % (conf.dbms, self.hostname)
|
||||
infoMsg += ":%d established" % self.port
|
||||
logger.info(infoMsg)
|
||||
if self.hostname and self.port:
|
||||
infoMsg = "connection to %s server %s" % (conf.dbms, self.hostname)
|
||||
infoMsg += ":%d established" % self.port
|
||||
logger.info(infoMsg)
|
||||
|
||||
def closed(self):
|
||||
if self.hostname:
|
||||
if self.hostname and self.port:
|
||||
infoMsg = "connection to %s server %s" % (conf.dbms, self.hostname)
|
||||
infoMsg += ":%d closed" % self.port
|
||||
logger.info(infoMsg)
|
||||
|
|
Loading…
Reference in New Issue
Block a user