diff --git a/lib/core/decorators.py b/lib/core/decorators.py index 33a7a074f..8ddf00c63 100644 --- a/lib/core/decorators.py +++ b/lib/core/decorators.py @@ -28,7 +28,7 @@ def cachedmethod(f): >>> __ = cachedmethod(lambda *args, **kwargs: args[0]) >>> __(2) 2 - >>> __ = cachedmethod(lambda *args, **kwargs: list(kwargs.values())[0]) + >>> __ = cachedmethod(lambda *args, **kwargs: next(iter(kwargs.values()))) >>> __(foobar=3) 3 diff --git a/lib/core/option.py b/lib/core/option.py index fbc2981a1..524945510 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -347,7 +347,7 @@ def _setCrawler(): if conf.url: crawl(conf.url) elif conf.requestFile and kb.targets: - target = list(kb.targets)[0] + target = next(iter(kb.targets)) crawl(target[0], target[2], target[3]) def _doSearch(): @@ -1735,8 +1735,7 @@ def _cleanupOptions(): conf.__setitem__(_, True) if conf.noCast: - for _ in list(DUMP_REPLACEMENTS.keys()): - del DUMP_REPLACEMENTS[_] + DUMP_REPLACEMENTS.clear() if conf.dumpFormat: conf.dumpFormat = conf.dumpFormat.upper() diff --git a/lib/core/settings.py b/lib/core/settings.py index ff76fd06e..f85ea0287 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty.six import unichr as _unichr # sqlmap version (...) -VERSION = "1.4.1.59" +VERSION = "1.4.1.60" 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)