mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-10-17 05:07:28 +08:00
Adding --hex for ClickHouse
This commit is contained in:
@@ -1347,6 +1347,7 @@
|
||||
<dbms value="ClickHouse">
|
||||
<cast query="CAST(%s AS Nullable(String))"/>
|
||||
<length query="length(%s)"/>
|
||||
<hex query="hex(%s)"/>
|
||||
<isnull query="ifNull(%s, '')"/>
|
||||
<delimiter query="||"/>
|
||||
<limit query="LIMIT %d OFFSET %d"/>
|
||||
|
||||
@@ -20,7 +20,7 @@ from lib.core.enums import OS
|
||||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.10.7.203"
|
||||
VERSION = "1.10.7.204"
|
||||
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)
|
||||
|
||||
@@ -108,6 +108,7 @@ NULL_WRAPPER = {
|
||||
# hexConvertField: dialects that DO have a hex function, mapped to its token.
|
||||
HEX_FUNCTION = {
|
||||
"Altibase": "HEX_ENCODE(",
|
||||
"ClickHouse": "hex(",
|
||||
"Cubrid": "HEX(",
|
||||
"H2": "RAWTOHEX(",
|
||||
"IBM DB2": "HEX(",
|
||||
|
||||
Reference in New Issue
Block a user