Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13366ae

Browse files
committed
Fixes #1752
1 parent e1ce161 commit 13366ae

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from lib.core.revision import getRevisionNumber
2121

2222
# sqlmap version and site
23-
VERSION = "1.0.0.17"
23+
VERSION = "1.0.0.18"
2424
REVISION = getRevisionNumber()
2525
STABLE = VERSION.count('.') <= 2
2626
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")

lib/techniques/dns/use.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ def dnsUse(payload, expression):
6060
prefix, suffix = ("%s" % randomStr(length=3, alphabet=DNS_BOUNDARIES_ALPHABET) for _ in xrange(2))
6161
chunk_length = MAX_DNS_LABEL / 2 if Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.MYSQL, DBMS.PGSQL) else MAX_DNS_LABEL / 4 - 2
6262
_, _, _, _, _, _, fieldToCastStr, _ = agent.getFields(expression)
63+
extendedField = re.search(r"[^ ,]*%s[^ ,]*" % re.escape(fieldToCastStr), expression).group(0)
64+
if extendedField != fieldToCastStr: # e.g. MIN(surname)
65+
fieldToCastStr = extendedField
6366
nulledCastedField = agent.nullAndCastField(fieldToCastStr)
6467
nulledCastedField = queries[Backend.getIdentifiedDbms()].substring.query % (nulledCastedField, offset, chunk_length)
6568
nulledCastedField = agent.hexConvertField(nulledCastedField)

0 commit comments

Comments
 (0)