Skip to content

Commit 0b24a80

Browse files
committed
Patch related to the --hex and --technique=E (potential patch for #2837)
1 parent 574074e commit 0b24a80

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

lib/core/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def hexConvertField(self, field):
362362
rootQuery = queries[Backend.getIdentifiedDbms()]
363363
hexField = field
364364

365-
if 'hex' in rootQuery:
365+
if "hex" in rootQuery:
366366
hexField = rootQuery.hex.query % field
367367
else:
368368
warnMsg = "switch '--hex' is currently not supported on DBMS %s" % Backend.getIdentifiedDbms()

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

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

lib/techniques/error/use.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ def _oneShotErrorUse(expression, field=None, chunkTest=False):
7676
current = MAX_ERROR_CHUNK_LENGTH
7777
while current >= MIN_ERROR_CHUNK_LENGTH:
7878
testChar = str(current % 10)
79-
testQuery = "SELECT %s('%s',%d)" % ("REPEAT" if Backend.isDbms(DBMS.MYSQL) else "REPLICATE", testChar, current)
79+
80+
testQuery = "%s('%s',%d)" % ("REPEAT" if Backend.isDbms(DBMS.MYSQL) else "REPLICATE", testChar, current)
81+
testQuery = "SELECT %s" % (agent.hexConvertField(testQuery) if conf.hexConvert else testQuery)
82+
8083
result = unArrayizeValue(_oneShotErrorUse(testQuery, chunkTest=True))
8184

8285
if (result or "").startswith(testChar):

txt/checksum.md5

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ f96467fc5cd1d87f52dd7966c8ae6e79 extra/shutils/regressiontest.py
2525
2db2666dba713c710d248a62b2c1c1fe lib/controller/controller.py
2626
d2cdb9e832e18a81e936ca3348144b16 lib/controller/handler.py
2727
5fb9aaf874daa47ea2b672a22740e56b lib/controller/__init__.py
28-
f8a7165253874a9ce0c6e0d089e5fb8c lib/core/agent.py
28+
367c522e9b2ea0cf585c733efa4f961f lib/core/agent.py
2929
9eccf8db8b8e259e30c1eade4ee499b0 lib/core/bigarray.py
3030
4c384d4c5af98c12f1dcc7eaa7fb3886 lib/core/common.py
3131
5c918135b3776bb129edbfdd422ece1b lib/core/convert.py
@@ -46,7 +46,7 @@ f872699e948d0692ce11b54781da814c lib/core/log.py
4646
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
4747
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
4848
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
49-
6a479a09009bb22a017444abed859676 lib/core/settings.py
49+
29c0daff930defef7790fcd2bdf3baea lib/core/settings.py
5050
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
5151
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
5252
d93501771b41315f9fb949305b6ed257 lib/core/target.py
@@ -93,7 +93,7 @@ d3080bf68b4b85ed2c98af5de74e8b73 lib/takeover/xp_cmdshell.py
9393
95331b2826f28db9ff962670391aa7d6 lib/techniques/dns/test.py
9494
82cc907fb335250703072337d8f8cceb lib/techniques/dns/use.py
9595
5fb9aaf874daa47ea2b672a22740e56b lib/techniques/error/__init__.py
96-
6ac0636513e7e009034fec33d6a6af7e lib/techniques/error/use.py
96+
94f73c6912d33e284a9b60ca83b05410 lib/techniques/error/use.py
9797
5fb9aaf874daa47ea2b672a22740e56b lib/techniques/__init__.py
9898
5fb9aaf874daa47ea2b672a22740e56b lib/techniques/union/__init__.py
9999
c2cb66245088e6b020bd398cbb6cd2ff lib/techniques/union/test.py

0 commit comments

Comments
 (0)