jbmahaffey / DNS-Py

0 stars 0 forks source link

Accounting for non-SPF content in txt records #2

Open analyst3292 opened 3 months ago

analyst3292 commented 3 months ago

'"google-site-verification=aOJq8aXEtCO23r176f6iOTGt-RVuPv81XPtBuIzRTx0 "' - from include:amazonses.com

is there a way to filter out anything no ip4:, ip6:, or include:

jbmahaffey commented 3 months ago

Should be fixed in the latest commit. Let me know if something else is missing.

analyst3292 commented 3 months ago

no output on new push

➜ SPF git:(main) ✗ python3 res.py ➜ SPF git:(main) ✗

analyst3292 commented 3 months ago

"ip4:52.27.245.249 ip4:52.35.156.88 ip4:35.163.176.222 ip4:52.33.56.235 ip4:54.83.153.113 ip4:54.83.159.7 ip4:52.4.18.203 ip4:52.0.30.102 ip4:52.14.119.171 ip4:52.14.141.167 ip4:52.14.95.40 ip4:52.14.148.25 ip4:35.163.235.255 " "ip4:192.230.230.0/24 ip4:69.196.242.0/24 " "ip4:66.35.19.192/26 ip4:99.79.185.184 ip4:204.101.161.204 ip4:154.52.2.128/27 ip4:154.52.2.224/27 ip4:154.52.3.128/27 ip4:154.52.4.128/27 ip4:154.52.5.128/27 " "ip4:154.52.14.128/27 ip4:154.52.29.128/27 ip4:154.52.16.128/27 ip4:154.52.13.0/25 ip4:3.97.5.75 ip4:209.52.38.228 ip4:154.52.20.191 ip4:154.52.20.193 ip4:154.52.22.128/27 ip4:154.52.23.160/27 ip4:23.249.57.128/27 " "ip4:38.21.198.128/27 ip4:38.21.201.128/27 ip4:212.119.11.128/27 ip4:38.150.20.128/27 " "include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com " "google-site-verification=aOJq8aXEtCO23r176f6iOTGt-RVuPv81XPtBuIzRTx0 " "ip4:199.255.192.0/22 ip4:199.127.232.0/22 ip4:54.240.0.0/18 ip4:69.169.224.0/20 ip4:23.249.208.0/20 ip4:23.251.224.0/19 ip4:76.223.176.0/20 ip4:54.240.64.0/19 ip4:54.240.96.0/19 ip4:76.223.128.0/19 ip4:216.221.160.0/19 " "mailru-verification: " "ip4:87.253.232.0/21 ip4:185.189.236.0/22 ip4:185.211.120.0/22 ip4:185.250.236.0/22 " "include:spf_0.taleo.net include:spf_2.taleo.net include:spf_4.taleo.net include:spf_5.taleo.net include:spf_11.taleo.net include:spf_x.taleo.net include:spf_g.taleo.net include:spf_oci.taleo.net " "ip4:185.41.28.0/22 ip4:94.143.16.0/21 ip4:185.24.144.0/22 ip4:153.92.224.0/19 ip4:213.32.128.0/18 ip4:185.107.232.0/22 ip4:77.32.128.0/18 ip4:77.32.192.0/19 ip4:212.146.192.0/18 ip4:172.246.0.0/18 "

analyst3292 commented 3 months ago
            if 'ip4:' in w or 'include:' in w or 'ip6:' in w or '\"ip4:' in w or '\"ip6:' in w or '\"include:' in w: