Skip to content

Instantly share code, notes, and snippets.

View LAKostis's full-sized avatar

LAKostis

View GitHub Profile
@LAKostis
LAKostis / spf.py
Last active October 1, 2022 03:49 — forked from moloch--/spf.py
Check SPF records for expired Domains and DNS lookup depth
#!/usr/bin/env python3
# modified version of this snippet
# https://gist.github.com/TheRook/95f2b872bdc81bac2371
import dns.resolver
import dns.name
from urllib.parse import urlparse
--- /root/sympa 2017-12-22 06:31:10.000000000 +0000
+++ /etc/init.d/sympa 2018-07-13 20:21:44.995899568 +0000
@@ -32,7 +32,7 @@ sympaconf="/etc/sympa/sympa.conf"
sympapiddir="/var/run/sympa/"
sympalockdir="/var/lock/subsys"
-
+RETVAL=1
if [ -f /etc/sysconfig/network ]; then