Skip to content

Instantly share code, notes, and snippets.

@thonixx
Created August 25, 2013 15:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save thonixx/6334605 to your computer and use it in GitHub Desktop.
Test SMTP login
# test smtp login
# scripted by github.com/thonixx
function smtplogin {
echo -n "Server: "
read server
echo ""
echo -n "Username: "
read user
echo -n "Password: "
read pass
echo ""
user64=$(echo -n "$user" | base64)
pass64=$(echo -n "$pass" | base64)
(echo "helo test"
sleep 2
echo "AUTH LOGIN"
sleep 2
echo "$user64"
sleep 2
echo "$pass64"
sleep 2
echo "QUIT") | netcat $server 25
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment