Don't Be Afraid. It's Friendly!
Send
Notification
Retrieve your mail
for (( int i = 0 ; i < 100 ; i+=1 )); do
echo "<(_ _)>" | \
mail -s "MAMA IS GOD!!!!" \
b05902xxx@ntu.edu.tw
done
SPAM!!
spam-script
five steps:
我NASA想要被當!! Plz!!
step1 : telnet
step2 : who am i?
step3 : MAIL FROM
step4 : RCPT TO
step5 : type "DATA" and start your context
use a single line with . as EOF
However,
I'm not 008
**[SPAM] tag:
The mail server we built
thought this is spam.
(details later)
Note that: password should encrypt
(EHLO (Extended HeLlo): find supported mechanism)
printf "\0[account]\0password" | base64
to encrypt, and copy it.
PiePie is Python master, aka PPP.
(Use Wireshark, we can intercept the data.)
Use encrypt string to login
(Encrypt String) username: vmail password vmail
We can eavesdrop the data.
(Transport Layer Security)
>STARTTLS
<250-STARTTLS
<220 2.0.0 Ready to start TLS
(More Secure!!)
(SSL Encytption)
Use SMTPs to Deliever:
openssl s_client -connect [server]:smtps
Use SMTP + openssl TLS mech.
openssl s_client -connect [server]:smtp
-starttls smtp
Not So Good Service and Our Difficulty
1 login [username] [pw]
2 select INBOX
3 fetch 1 body[]
4 logout
Commands are too Starburst(星爆) to demo.
user [username]
pass [password]
list (list all mails)
retr [num] (retrieve %d mail)
quit
EASY! Huh?
User-friendly but
Function is
not complete
Function is complete
but it's too hard for me.
cmd:
cmd:
Use SSL, too!
MAIL
DATA
LOGIN
SSL
title
Use LMTP to connect
(Local Mail Transfer Protocol)
Let dovecot to listen
remote ldap's infromation
(Lightweight Directory Access Protocol)
Greylisted After 60 sec...
OK!
Trash will be add [SPAM] tag
e.g. b05902008
他
手
很
賤
IP has lots of failed login attempt
will be banned.
Notification
3 wrong tries
Connection refused
Ultimately user-friendly!
Script: www.csie.ntu.edu.tw/~b05902127/playbook.yml