Skip to content

bardurc/isDomainSpoofable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

isDomainSpoofable

Checks the status of SPF and DMARC for a domain

Python version:

  • Python3

Requirements:

pip install -r requirements.txt

Usage:

python isDomainSpoofable.py

Script reads domains from domains.yaml and parses spf and dmarc records, if they exist. Result is written to "result.csv".

Check multiple domains

You can add as many domains as you want in "domains.yaml" file to check multiple domains in one go. Three domains are already added as an example.

Example csv output:

Entity,Domain,Has SPF,Has DMARC,DMARC p Policy,SPF record,DMARC record
Example Entity,example.com,Yes,No,,v=spf1 -all,
Microsoft,microsoft.com,Yes,Yes,reject,v=spf1 include:_spf-a.microsoft.com include:_spf-b.microsoft.com include:_spf-c.microsoft.com include:_spf-ssg-a.microsoft.com include:spf-a.hotmail.com ip4:147.243.128.24 ip4:147.243.128.26 ip4:147.243.1.153 ip4:147.243.1.47 ip4:147.243.1.48 -all,v=DMARC1; p=reject; pct=100; rua=mailto:d@rua.agari.com; ruf=mailto:d@ruf.agari.com; fo=1
Google,google.com,Yes,Yes,reject,v=spf1 include:_spf.google.com ~all,v=DMARC1; p=reject; rua=mailto:mailauth-reports@google.com

About

Checks the status of SPF and DMARC for a domain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages