MX & TXT lookup

nslookup -type=mx company.kz
nslookup -type=TXT company.kz | grep spf

BrokenSMTP checker

sudo git clone <https://github.com/mrlew1s/BrokenSMTP.git>; cd BrokenSMTP; sudo pip install -r requirments.txt; chmod +x BrokenSMPT.py;
python3 BrokenSMPT.py -t smtp.company.kz -p 25

Magik SPF & DMARC Checker

wget <https://raw.githubusercontent.com/magichk/magicspoofing/main/magicspoofmail.py>; chmod +x magicspoofmail.py; pip3 install -r requirements.txt
---
for MacOS add into script exclude: 
elif (sistema == "Darwin"):
    normal_color = ""
    info_color = ""
    red_color = ""
    green_color = ""
    whiteB_color = ""
    detect_color = ""
    banner_color=""
    end_banner_color=""
---

python3 magicspoofmail.py
python3 magicspoofmail.py -d company.kz -c

Relay and User Enum

smtp-user-enum

nc mail.company.kz 25
HELO test

#VRFY user enum
VRFY [email protected]
VRFY [email protected]
VRFY [email protected]

# Relay
MAIL <FROM:[email protected]>
MAIL <FROM:[email protected]>
RCPT <TO:[email protected]>
DATA

Subject: Password reset process

Hi Serik,
Please follow this link to reset your password: <https://istyag.in>

Regards,
.
QUIT

Scrape email addresses from a site (aka Crawler)

Quickly scrape email addresses from a site with this simple curl command

cat targets.txt | xargs -n1 -I{} curl -s https://{} | grep -E -o "\\b[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z0-9.-]+\\b" | sort -u