mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
Trivial updates
This commit is contained in:
parent
f23c04131c
commit
ae6a812ee1
6
extra/shutils/pylint.sh
Executable file
6
extra/shutils/pylint.sh
Executable file
|
@ -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 '{}' \;
|
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
||||||
from thirdparty.six import unichr as _unichr
|
from thirdparty.six import unichr as _unichr
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.4.12.44"
|
VERSION = "1.4.12.45"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
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)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
6
thirdparty/identywaf/identYwaf.py
vendored
6
thirdparty/identywaf/identYwaf.py
vendored
|
@ -60,7 +60,7 @@ else:
|
||||||
HTTPCookieProcessor = urllib2.HTTPCookieProcessor
|
HTTPCookieProcessor = urllib2.HTTPCookieProcessor
|
||||||
|
|
||||||
NAME = "identYwaf"
|
NAME = "identYwaf"
|
||||||
VERSION = "1.0.129"
|
VERSION = "1.0.131"
|
||||||
BANNER = r"""
|
BANNER = r"""
|
||||||
` __ __ `
|
` __ __ `
|
||||||
____ ___ ___ ____ ______ `| T T` __ __ ____ _____
|
____ ___ ___ ____ ______ `| T T` __ __ ____ _____
|
||||||
|
@ -509,7 +509,7 @@ def run():
|
||||||
|
|
||||||
print(colorize("%s[=] results: '%s'" % ("\n" if IS_TTY else "", results)))
|
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)))
|
print(colorize("[=] hardness: %s (%d%%)" % ("insane" if hardness >= 80 else ("hard" if hardness >= 50 else ("moderate" if hardness >= 30 else "easy")), hardness)))
|
||||||
|
|
||||||
if blocked:
|
if blocked:
|
||||||
|
@ -545,7 +545,7 @@ def run():
|
||||||
counter_y += 1
|
counter_y += 1
|
||||||
elif any(_ in markers for _ in (part & ~1, part | 1)):
|
elif any(_ in markers for _ in (part & ~1, part | 1)):
|
||||||
counter_n += 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 SIGNATURES[candidate] in matches:
|
||||||
if result > matches[SIGNATURES[candidate]]:
|
if result > matches[SIGNATURES[candidate]]:
|
||||||
matches[SIGNATURES[candidate]] = result
|
matches[SIGNATURES[candidate]] = result
|
||||||
|
|
Loading…
Reference in New Issue
Block a user