Skip to content

Commit 101a4cb

Browse files
committed
If statements are challenging
1 parent f4d0c20 commit 101a4cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xssless.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ def get_burp_list(filename):
2424
for dict_el in tree.iterfind('item'):
2525
tmpDict = {}
2626
for item in dict_el:
27-
if item.tag in ["request", "response", "url"]:
27+
if item.tag in ["request", "response"]:
2828
tmpDict[item.tag] = b64decode(item.text)
29+
elif item.tag == 'url':
30+
tmpDict[item.tag] = item.text
2931
requestList.append(tmpDict)
3032

3133
return requestList

0 commit comments

Comments
 (0)