Minor update for #4992

This commit is contained in:
Miroslav Stampar 2022-02-23 12:13:30 +01:00
parent a4cf25c97d
commit e393e1b80e
2 changed files with 6 additions and 3 deletions

View File

@ -20,7 +20,7 @@ from thirdparty import six
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.6.2.4" VERSION = "1.6.2.5"
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)

View File

@ -9,7 +9,7 @@ import re
from lib.core.enums import PRIORITY from lib.core.enums import PRIORITY
__priority__ = PRIORITY.LOWEST __priority__ = PRIORITY.HIGHEST
def dependencies(): def dependencies():
pass pass
@ -18,6 +18,9 @@ def tamper(payload, **kwargs):
""" """
Replaces ORD() occurences with equivalent ASCII() calls Replaces ORD() occurences with equivalent ASCII() calls
Requirement:
* MySQL
>>> tamper("ORD('42')") >>> tamper("ORD('42')")
"ASCII('42')" "ASCII('42')"
""" """
@ -25,6 +28,6 @@ def tamper(payload, **kwargs):
retVal = payload retVal = payload
if payload: if payload:
retVal = re.sub(r"(?i)\bORD\(\b", "ASCII(", payload) retVal = re.sub(r"(?i)\bORD\(", "ASCII(", payload)
return retVal return retVal