2020-04-10 11:39:37 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# DMARC Checker
|
|
|
|
LISTS=$1
|
|
|
|
|
|
|
|
if [[ ! -f ${LISTS} ]]; then
|
|
|
|
echo "usage: bash $0 list.txt"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
for SITE in $(cat $LISTS);
|
|
|
|
do
|
2020-11-08 01:47:54 +00:00
|
|
|
if [[ $(curl --connect-timeout 3 -kls --max-time 3 -X GET "https://dmarcly.com/server/dmarc_check.php?domain=${SITE}") =~ 'success' ]]; then
|
2020-04-10 11:39:37 +00:00
|
|
|
echo -e "\e[32m[+] VULN: ${SITE}"
|
|
|
|
else
|
|
|
|
echo -e "\e[31m[-] NOT VULN: ${SITE}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
done
|