Skip to content

Commit

Permalink
Merge pull request #22 from becksteadn/patch-1
Browse files Browse the repository at this point in the history
Use the requests processed JSON object
  • Loading branch information
UnaPibaGeek authored Jan 13, 2019
2 parents 54d2400 + a24128c commit 86a804a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ctfr.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

## # LIBRARIES # ##
import re
import json
import requests

## # CONTEXT VARIABLES # ##
Expand Down Expand Up @@ -59,9 +58,7 @@ def main():
print("[X] Information not available!")
exit(1)

json_data = json.loads('[{}]'.format(req.text.replace('}{', '},{')))

for (key,value) in enumerate(json_data):
for (key,value) in enumerate(req.json()):
subdomains.append(value['name_value'])


Expand Down

0 comments on commit 86a804a

Please sign in to comment.