Created
July 2, 2025 07:47
-
-
Save huynhbaoan/726ca007527909c19479d37398e402ca to your computer and use it in GitHub Desktop.
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
( | |
printf "EHLO myhost.example.com\r\n" | |
sleep 1 | |
printf "MAIL FROM:<[email protected]>\r\n" | |
sleep 1 | |
printf "RCPT TO:<[email protected]>\r\n" | |
sleep 1 | |
printf "DATA\r\n" | |
sleep 1 | |
printf "Subject: Netcat Test Email\r\n" | |
printf "\r\n" | |
printf "This is the body.\r\n" | |
printf ".\r\n" | |
sleep 1 | |
printf "QUIT\r\n" | |
) | nc smtp.example.com 25 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment