Minor update for #5910

This commit is contained in:
Miroslav Stampar
2025-06-16 11:22:29 +02:00
parent b8402744fc
commit d4f479e7a8
3 changed files with 7 additions and 7 deletions

View File

@@ -2546,11 +2546,11 @@ def _checkTor():
try:
page, _, _ = Request.getPage(url="https://check.torproject.org/api/ip", raise404=False)
content = json.loads(page)
except SqlmapConnectionException:
content = None
tor_status = json.loads(page)
except (SqlmapConnectionException, TypeError, ValueError):
tor_status = None
if not content or not content.get("IsTor"):
if not tor_status or not tor_status.get("IsTor"):
errMsg = "it appears that Tor is not properly set. Please try using options '--tor-type' and/or '--tor-port'"
raise SqlmapConnectionException(errMsg)
else:

View File

@@ -19,7 +19,7 @@ from lib.core.enums import OS
from thirdparty import six
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.9.6.1"
VERSION = "1.9.6.2"
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)