Skip to content

Commit 61ad3b9

Browse files
committed
fix for a crash with partial union and --hex
1 parent a7fbc55 commit 61ad3b9

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

lib/core/common.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,6 @@ def parseUnionPage(output, unique=True):
12451245

12461246
for entry in output:
12471247
entry = entry.group(1)
1248-
entry = decodeHexValue(entry) if conf.hexConvert else entry
12491248

12501249
if unique:
12511250
key = entry.lower()
@@ -1256,9 +1255,14 @@ def parseUnionPage(output, unique=True):
12561255
else:
12571256
continue
12581257

1259-
entry = safecharencode(entry) if kb.safeCharEncode else entry
12601258
entry = entry.split(kb.chars.delimiter)
12611259

1260+
if conf.hexConvert:
1261+
entry = applyFunctionRecursively(entry, decodeHexValue)
1262+
1263+
if kb.safeCharEncode:
1264+
entry = applyFunctionRecursively(entry, safecharencode)
1265+
12621266
data.append(entry[0] if len(entry) == 1 else entry)
12631267
else:
12641268
data = output

lib/takeover/web.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def webInit(self):
136136
logger.info(infoMsg)
137137

138138
default = None
139-
choices = ['asp', 'aspx', 'php', 'jsp']
139+
choices = ('asp', 'aspx', 'php', 'jsp')
140140

141141
for ext in choices:
142142
if conf.url.endswith(ext):

0 commit comments

Comments
 (0)