Created
October 4, 2011 15:07
-
-
Save alxrogan/1261891 to your computer and use it in GitHub Desktop.
simple nc script to spoof smtp
This file contains hidden or 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 | |
#pass the SMTP server as the only argument, modify the port below if needed | |
( echo HELO foo.bar | |
sleep 2 | |
echo MAIL FROM: \<[email protected]\> | |
sleep 2 | |
echo RCPT TO: \<[email protected]\> | |
sleep 2 | |
echo RCPT TO: \<[email protected]\> | |
sleep 2 | |
echo DATA | |
sleep 2 | |
echo Message-ID: \<[email protected]\> | |
sleep 2 | |
echo From: \<[email protected]\> "The Almighty Foo" | |
sleep 2 | |
echo To: \<[email protected]\> "the underlings" | |
sleep 2 | |
echo Subject: You cannot stop us | |
sleep 2 | |
echo Date: Thu, 2 Dec 2004 00:00:00 -0400 | |
sleep 2 | |
echo Whatever you want this to say | |
echo End your statement with a single period by itself as below | |
echo . | |
echo QUIT ) | nc -v -v -v $1 25 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment