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

Skip to content

Commit ddf353b

Browse files
committed
Fixes #3357
1 parent e6535d3 commit ddf353b

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from 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"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

plugins/generic/connector.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
4949
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
5050
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5151
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
52-
9bea28956f348af193325c45ee992dda lib/core/settings.py
52+
7e344a320c695a16b3c52d53f7c06006 lib/core/settings.py
5353
a971ce157d04de96ba6e710d3d38a9a8 lib/core/shell.py
5454
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5555
721198b5be72c8015a02acb116532a1f lib/core/target.py
@@ -211,7 +211,7 @@ f639120d42b33b6ca67930bddbf2ac1f plugins/dbms/sqlite/__init__.py
211211
a3db8618eed5bb2807b6f77605cba9cc plugins/dbms/sybase/__init__.py
212212
36acb9a5966af21b32e8558b0d50653d plugins/dbms/sybase/syntax.py
213213
79f6c7017db4ded8f74a0117188836ff plugins/dbms/sybase/takeover.py
214-
34d181a7086d6dfc7e72ae5f8a4cfe0f plugins/generic/connector.py
214+
bdc159cc5afb28cadd980c01c43ba669 plugins/generic/connector.py
215215
ce6a6ff713852b5eca7b78316cc941c4 plugins/generic/custom.py
216216
3d75e831574c750ed58e24eaa562c056 plugins/generic/databases.py
217217
35546acab0eea406c23b84363df4d534 plugins/generic/entries.py

0 commit comments

Comments
 (0)