Merge pull request #15 from cagriaslan/master
I added functionality to save as json files with domain names.
This commit is contained in:
commit
ddde1c7135
@ -227,6 +227,9 @@ def show_result(user_args):
|
|||||||
|
|
||||||
# Enable JSON output if -j/--json argument specified
|
# Enable JSON output if -j/--json argument specified
|
||||||
if user_args.json_true:
|
if user_args.json_true:
|
||||||
|
for host in hosts:
|
||||||
|
with open(host.split(".")[0] + ".json", "w", encoding="UTF-8") as fp:
|
||||||
|
fp.write(json.dumps(context))
|
||||||
print(json.dumps(context))
|
print(json.dumps(context))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user