Skip to content

Commit

Permalink
Merge pull request #1670 from jeffguy/master
Browse files Browse the repository at this point in the history
  • Loading branch information
L1ghtn1ng authored Feb 24, 2024
2 parents eeacf12 + ea69b44 commit b87064f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions theHarvester/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ async def handler(lst):
for host in full:
if ":" in host:
# TODO parse addresses and sort them as they are IPs
subdomain, addr = host.split(":")
subdomain, addr = host.split(":", 1)
if subdomain.endswith(word):
temp.add(subdomain + ":" + addr)
continue
Expand All @@ -1075,7 +1075,7 @@ async def handler(lst):
print(host)
try:
if ":" in host:
_, addr = host.split(":")
_, addr = host.split(":", 1)
await db.store(word, addr, "ip", "DNS-resolver")
except Exception as e:
print(
Expand Down Expand Up @@ -1107,7 +1107,7 @@ async def handler(lst):
for host in resolved_pair:
if ":" in host:
# TODO parse addresses and sort them as they are IPs
subdomain, addr = host.split(":")
subdomain, addr = host.split(":", 1)
if subdomain.endswith(word):
# Append to full, so it's within JSON/XML at the end if output file is requested
if host not in full:
Expand Down

0 comments on commit b87064f

Please sign in to comment.