mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 05:04:11 +03:00
fix for a crash with partial union and --hex
This commit is contained in:
parent
a7fbc55748
commit
61ad3b999a
|
@ -1245,7 +1245,6 @@ def parseUnionPage(output, unique=True):
|
||||||
|
|
||||||
for entry in output:
|
for entry in output:
|
||||||
entry = entry.group(1)
|
entry = entry.group(1)
|
||||||
entry = decodeHexValue(entry) if conf.hexConvert else entry
|
|
||||||
|
|
||||||
if unique:
|
if unique:
|
||||||
key = entry.lower()
|
key = entry.lower()
|
||||||
|
@ -1256,9 +1255,14 @@ def parseUnionPage(output, unique=True):
|
||||||
else:
|
else:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
entry = safecharencode(entry) if kb.safeCharEncode else entry
|
|
||||||
entry = entry.split(kb.chars.delimiter)
|
entry = entry.split(kb.chars.delimiter)
|
||||||
|
|
||||||
|
if conf.hexConvert:
|
||||||
|
entry = applyFunctionRecursively(entry, decodeHexValue)
|
||||||
|
|
||||||
|
if kb.safeCharEncode:
|
||||||
|
entry = applyFunctionRecursively(entry, safecharencode)
|
||||||
|
|
||||||
data.append(entry[0] if len(entry) == 1 else entry)
|
data.append(entry[0] if len(entry) == 1 else entry)
|
||||||
else:
|
else:
|
||||||
data = output
|
data = output
|
||||||
|
|
|
@ -136,7 +136,7 @@ class Web:
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
default = None
|
default = None
|
||||||
choices = ['asp', 'aspx', 'php', 'jsp']
|
choices = ('asp', 'aspx', 'php', 'jsp')
|
||||||
|
|
||||||
for ext in choices:
|
for ext in choices:
|
||||||
if conf.url.endswith(ext):
|
if conf.url.endswith(ext):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user