Skip to content

Commit

Permalink
Check for DMARC records
Browse files Browse the repository at this point in the history
  • Loading branch information
rbsec committed Jan 21, 2020
1 parent c7cb0ce commit 51b2ec8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions dnscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,20 @@ def get_txt(target):
except:
return

def get_dmarc(target):
out.verbose("Getting DMARC records")
try:
res = lookup("_dmarc." + target, "TXT")
if res:
out.good("DMARC records found")
for dmarc in res:
print(dmarc)
if outfile:
print(dmarc, file=outfile)
print("")
except:
return

def get_mx(target):
out.verbose("Getting MX records")
try:
Expand Down Expand Up @@ -384,6 +398,7 @@ def setup():

get_v6(target)
get_txt(target)
get_dmarc(target)
get_mx(target)
wildcard = get_wildcard(target)
if wildcard:
Expand Down

0 comments on commit 51b2ec8

Please sign in to comment.