Skip to content
/ spftree Public

Resolves the SPF record and its include domains and print them in a tree

License

Notifications You must be signed in to change notification settings

arosl/spftree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Installation

git clone https://github.com/arosl/spftree.git

pip install -r requirements.txt

Usage

 » ./spftree.py --help
Usage: spftree.py [OPTIONS] ZONE

  Create a tree structure of the zones SPF record

Arguments:
  ZONE  [required]

Options:
  --indent INTEGER                [default: 0]
  --validate / --no-validate      [default: True]
  --install-completion [bash|zsh|fish|powershell|pwsh]
                                  Install completion for the specified shell.
  --show-completion [bash|zsh|fish|powershell|pwsh]
                                  Show completion for the specified shell, to
                                  copy it or customize the installation.

  --help                          Show this message and exit.
» ./spftree.py google.com
v=spf1
include:_spf.google.com
  v=spf1
  include:_netblocks.google.com
    v=spf1
    ip4:35.190.247.0/24
    ip4:64.233.160.0/19
    ip4:66.102.0.0/20
    ip4:66.249.80.0/20
    ip4:72.14.192.0/18
    ip4:74.125.0.0/16
    ip4:108.177.8.0/21
    ip4:173.194.0.0/16
    ip4:209.85.128.0/17
    ip4:216.58.192.0/19
    ip4:216.239.32.0/19
    ~all
  include:_netblocks2.google.com
    v=spf1
    ip6:2001:4860:4000::/36
    ip6:2404:6800:4000::/36
    ip6:2607:f8b0:4000::/36
    ip6:2800:3f0:4000::/36
    ip6:2a00:1450:4000::/36
    ip6:2c0f:fb50:4000::/36
    ~all
  include:_netblocks3.google.com
    v=spf1
    ip4:172.217.0.0/19
    ip4:172.217.32.0/20
    ip4:172.217.128.0/19
    ip4:172.217.160.0/20
    ip4:172.217.192.0/19
    ip4:172.253.56.0/21
    ip4:172.253.112.0/20
    ip4:108.177.96.0/19
    ip4:35.191.0.0/16
    ip4:130.211.0.0/22
    ~all
  ~all
~all

About

Resolves the SPF record and its include domains and print them in a tree

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages