Skip to content

Commit 6e96858

Browse files
committed
Minor refactoring
1 parent cc5ba47 commit 6e96858

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.5.8.8"
23+
VERSION = "1.5.9.0"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/request/connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ class _(dict):
695695

696696
except SqlmapConnectionException as ex:
697697
if conf.proxyList and not kb.threadException:
698-
warnMsg = "unable to connect to the target URL ('%s')" % ex
698+
warnMsg = "unable to connect to the target URL ('%s')" % getSafeExString(ex)
699699
logger.critical(warnMsg)
700700
threadData.retriesCount = conf.retries
701701
return Connect._retryProxy(**kwargs)

lib/utils/api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ def client(host=RESTAPI_DEFAULT_ADDRESS, port=RESTAPI_DEFAULT_PORT, username=Non
773773
if not isinstance(ex, _urllib.error.HTTPError) or ex.code == _http_client.UNAUTHORIZED:
774774
errMsg = "There has been a problem while connecting to the "
775775
errMsg += "REST-JSON API server at '%s' " % addr
776-
errMsg += "(%s)" % ex
776+
errMsg += "(%s)" % getSafeExString(ex)
777777
logger.critical(errMsg)
778778
return
779779

@@ -825,7 +825,7 @@ def client(host=RESTAPI_DEFAULT_ADDRESS, port=RESTAPI_DEFAULT_PORT, username=Non
825825
try:
826826
argv = ["sqlmap.py"] + shlex.split(command)[1:]
827827
except Exception as ex:
828-
logger.error("Error occurred while parsing arguments ('%s')" % ex)
828+
logger.error("Error occurred while parsing arguments ('%s')" % getSafeExString(ex))
829829
taskid = None
830830
continue
831831

0 commit comments

Comments
 (0)