mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +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():
|
for dbmsName, data in DBMS_DICT.items():
|
||||||
if dbmsName == conf.dbms or conf.dbms.lower() in data[0]:
|
if dbmsName == conf.dbms or conf.dbms.lower() in data[0]:
|
||||||
try:
|
try:
|
||||||
|
conf.dbms = dbmsName
|
||||||
|
|
||||||
if dbmsName in (DBMS.ACCESS, DBMS.SQLITE, DBMS.FIREBIRD):
|
if dbmsName in (DBMS.ACCESS, DBMS.SQLITE, DBMS.FIREBIRD):
|
||||||
if remote:
|
if remote:
|
||||||
warnMsg = "direct connection over the network for "
|
warnMsg = "direct connection over the network for "
|
||||||
|
|
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
||||||
from thirdparty import six
|
from thirdparty import six
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# 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 = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
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)
|
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
|
self.db = conf.dbmsDb
|
||||||
|
|
||||||
def printConnected(self):
|
def printConnected(self):
|
||||||
|
if self.hostname and self.port:
|
||||||
infoMsg = "connection to %s server %s" % (conf.dbms, self.hostname)
|
infoMsg = "connection to %s server %s" % (conf.dbms, self.hostname)
|
||||||
infoMsg += ":%d established" % self.port
|
infoMsg += ":%d established" % self.port
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
def closed(self):
|
def closed(self):
|
||||||
if self.hostname:
|
if self.hostname and self.port:
|
||||||
infoMsg = "connection to %s server %s" % (conf.dbms, self.hostname)
|
infoMsg = "connection to %s server %s" % (conf.dbms, self.hostname)
|
||||||
infoMsg += ":%d closed" % self.port
|
infoMsg += ":%d closed" % self.port
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user