From b4c4d3f72af1a2eda11ccd75151579a732736e89 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 6 Apr 2017 11:37:42 +0200 Subject: [PATCH] Fixes latest Python 2.6 compatibility issues --- lib/core/settings.py | 2 +- lib/takeover/web.py | 2 +- txt/checksum.md5 | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/core/settings.py b/lib/core/settings.py index 54fb3b4d1..c17b0d646 100755 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -19,7 +19,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME from lib.core.enums import OS # sqlmap version (...) -VERSION = "1.1.4.0" +VERSION = "1.1.4.1" 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) diff --git a/lib/takeover/web.py b/lib/takeover/web.py index 8af9ffbdf..23b81f6a2 100644 --- a/lib/takeover/web.py +++ b/lib/takeover/web.py @@ -206,7 +206,7 @@ class Web: if getOutput in ("y", "Y"): headers = {} - been = {conf.url} + been = set([conf.url]) for match in re.finditer(r"=['\"]((https?):)?(//[^/'\"]+)?(/[\w/.-]*)\bwp-", kb.originalPage, re.I): url = "%s%s" % (conf.url.replace(conf.path, match.group(4)), "wp-content/wp-db.php") diff --git a/txt/checksum.md5 b/txt/checksum.md5 index 1a550e810..1b6d8e550 100644 --- a/txt/checksum.md5 +++ b/txt/checksum.md5 @@ -45,7 +45,7 @@ a8143dab9d3a27490f7d49b6b29ea530 lib/core/data.py d8e9250f3775119df07e9070eddccd16 lib/core/replication.py 785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py 40c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py -50edc9861e7441371210f5fae263207c lib/core/settings.py +23c0ffd31dcd84f02354743861e54662 lib/core/settings.py d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py 2ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py afd0636d2e93c23f4f0a5c9b6023ea17 lib/core/target.py @@ -84,7 +84,7 @@ c6bc7961a186baabe0a9f5b7e0d8974b lib/takeover/icmpsh.py c90c993b020a6ae0f0e497fd84f37466 lib/takeover/metasploit.py ac541a0d38e4ecb4e41e97799a7235f4 lib/takeover/registry.py 4cd0322f22fbc26284cffa9f8f7545ef lib/takeover/udf.py -ab021269ad7f4d552025448ae08c51d0 lib/takeover/web.py +c131528696edb96695aa1b58803bd6ae lib/takeover/web.py e5a82481947e798d0c11f3acf3e9db60 lib/takeover/xp_cmdshell.py cae752650755c706272a45ae84519a4b lib/techniques/blind/inference.py 310efc965c862cfbd7b0da5150a5ad36 lib/techniques/blind/__init__.py