Skip to content

Commit

Permalink
Fixes minor bug in domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Te-k committed Feb 12, 2018
1 parent 658b6cd commit 6897255
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion harpoon/commands/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ def run(self, conf, args, plugins):
if "results" in pt_osint:
if len(pt_osint["results"]):
if len(pt_osint["results"]) == 1:
print("PT: %s %s" % (pt_osint["results"][0]["name"], pt_osint["results"][0]["sourceUrl"]))
if "name" in pt_osint["results"][0]:
print("PT: %s %s" % (pt_osint["results"][0]["name"], pt_osint["results"][0]["sourceUrl"]))
else:
print("PT: %s" % (pt_osint["results"][0]["sourceUrl"]))
else:
print("PT:")
for r in pt_osint["results"]:
Expand Down

0 comments on commit 6897255

Please sign in to comment.