diff --git a/extra/shutils/pylint.sh b/extra/shutils/pylint.sh new file mode 100755 index 000000000..dca46a2c7 --- /dev/null +++ b/extra/shutils/pylint.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# Copyright (c) 2006-2021 sqlmap developers (http://sqlmap.org/) +# See the file 'LICENSE' for copying permission + +find . -wholename "./thirdparty" -prune -o -type f -iname "*.py" -exec pylint --rcfile=./.pylintrc '{}' \; diff --git a/lib/core/settings.py b/lib/core/settings.py index 1ef25dfd7..46ac9a970 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.12.44" +VERSION = "1.4.12.45" 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/thirdparty/identywaf/identYwaf.py b/thirdparty/identywaf/identYwaf.py index c6f4da75f..0b70d1f41 100755 --- a/thirdparty/identywaf/identYwaf.py +++ b/thirdparty/identywaf/identYwaf.py @@ -60,7 +60,7 @@ else: HTTPCookieProcessor = urllib2.HTTPCookieProcessor NAME = "identYwaf" -VERSION = "1.0.129" +VERSION = "1.0.131" BANNER = r""" ` __ __ ` ____ ___ ___ ____ ______ `| T T` __ __ ____ _____ @@ -509,7 +509,7 @@ def run(): print(colorize("%s[=] results: '%s'" % ("\n" if IS_TTY else "", results))) - hardness = 100 * results.count('x') / len(results) + hardness = 100 * results.count('x') // len(results) print(colorize("[=] hardness: %s (%d%%)" % ("insane" if hardness >= 80 else ("hard" if hardness >= 50 else ("moderate" if hardness >= 30 else "easy")), hardness))) if blocked: @@ -545,7 +545,7 @@ def run(): counter_y += 1 elif any(_ in markers for _ in (part & ~1, part | 1)): counter_n += 1 - result = int(round(100 * counter_y / (counter_y + counter_n))) + result = int(round(100.0 * counter_y / (counter_y + counter_n))) if SIGNATURES[candidate] in matches: if result > matches[SIGNATURES[candidate]]: matches[SIGNATURES[candidate]] = result