Skip to content

Commit e10092e

Browse files
committed
Fixes #6104
1 parent 691d2fa commit e10092e

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

lib/core/option.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,13 @@ def _setTamperingFunctions():
905905
priority = PRIORITY.NORMAL if not hasattr(module, "__priority__") else module.__priority__
906906
priority = priority if priority is not None else PRIORITY.LOWEST
907907

908+
if not isinstance(priority, int):
909+
warnMsg = "tamper module '%s' has an invalid value for '__priority__' " % filename[:-3]
910+
warnMsg += "(assuming '%d')" % PRIORITY.NORMAL
911+
logger.warning(warnMsg)
912+
913+
priority = PRIORITY.NORMAL
914+
908915
for name, function in inspect.getmembers(module, inspect.isfunction):
909916
if name == "tamper" and (hasattr(inspect, "signature") and all(_ in inspect.signature(function).parameters for _ in ("payload", "kwargs")) or inspect.getargspec(function).args and inspect.getargspec(function).keywords == "kwargs"):
910917
found = True

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty import six
2121

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

0 commit comments

Comments
 (0)