From 8c76555d33c32020b61c00dc9e3ca45fdc6d41c5 Mon Sep 17 00:00:00 2001 From: Muhammad Daffa <36522826+MD15@users.noreply.github.com> Date: Fri, 10 Apr 2020 18:53:43 +0700 Subject: [PATCH] Create spf.sh --- Email Spoofing/spf.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Email Spoofing/spf.sh diff --git a/Email Spoofing/spf.sh b/Email Spoofing/spf.sh new file mode 100644 index 0000000..60017d2 --- /dev/null +++ b/Email Spoofing/spf.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# SPF Checker +LISTS=$1 + +if [[ ! -f ${LISTS} ]]; then + echo "usage: bash $0 list.txt" + exit +fi + +for SITE in $(cat $LISTS); +do + if [[ $(curl --connect-timeout 3 -kls --max-time 3 -d "serial=fred12&domain=${SITE}" -H "Content-Type: application/x-www-form-urlencoded" -X POST "https://www.kitterman.com/spf/getspf3.py") =~ 'SPF record passed validation test with pySPF' ]]; then + echo -e "\e[31m[+] VULN: ${SITE}" + else + echo -e "\e[32m[-] NOT VULN: ${SITE}" + fi + +done