Skip to content

Commit ae6a812

Browse files
committed
Trivial updates
1 parent f23c041 commit ae6a812

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

extra/shutils/pylint.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
# Copyright (c) 2006-2021 sqlmap developers (http://sqlmap.org/)
4+
# See the file 'LICENSE' for copying permission
5+
6+
find . -wholename "./thirdparty" -prune -o -type f -iname "*.py" -exec pylint --rcfile=./.pylintrc '{}' \;

lib/core/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

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

thirdparty/identywaf/identYwaf.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
HTTPCookieProcessor = urllib2.HTTPCookieProcessor
6161

6262
NAME = "identYwaf"
63-
VERSION = "1.0.129"
63+
VERSION = "1.0.131"
6464
BANNER = r"""
6565
` __ __ `
6666
____ ___ ___ ____ ______ `| T T` __ __ ____ _____
@@ -509,7 +509,7 @@ def run():
509509

510510
print(colorize("%s[=] results: '%s'" % ("\n" if IS_TTY else "", results)))
511511

512-
hardness = 100 * results.count('x') / len(results)
512+
hardness = 100 * results.count('x') // len(results)
513513
print(colorize("[=] hardness: %s (%d%%)" % ("insane" if hardness >= 80 else ("hard" if hardness >= 50 else ("moderate" if hardness >= 30 else "easy")), hardness)))
514514

515515
if blocked:
@@ -545,7 +545,7 @@ def run():
545545
counter_y += 1
546546
elif any(_ in markers for _ in (part & ~1, part | 1)):
547547
counter_n += 1
548-
result = int(round(100 * counter_y / (counter_y + counter_n)))
548+
result = int(round(100.0 * counter_y / (counter_y + counter_n)))
549549
if SIGNATURES[candidate] in matches:
550550
if result > matches[SIGNATURES[candidate]]:
551551
matches[SIGNATURES[candidate]] = result

0 commit comments

Comments
 (0)