This shows you the differences between two versions of the page.
tips-and-tricks [2014/07/21 22:44] gsamfira |
tips-and-tricks [2014/07/21 22:44] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Send email via telnet ====== | ||
- | |||
- | ===== Open relay ===== | ||
- | |||
- | |||
- | < | ||
- | telnet x.x.x.x 25 | ||
- | ehlo aaa | ||
- | mail from: < | ||
- | rcpt to: < | ||
- | data | ||
- | Subject: yyy | ||
- | |||
- | msessage text | ||
- | . | ||
- | quit | ||
- | |||
- | </ | ||
- | |||
- | ===== with auth ===== | ||
- | |||
- | * generate base64 auth string: | ||
- | |||
- | < | ||
- | # python | ||
- | python -c ' | ||
- | # bash | ||
- | echo -n " | ||
- | #perl | ||
- | perl -MMIME:: | ||
- | </code | ||
- | |||
- | < | ||
- | telnet x.x.x.x 25 | ||
- | ehlo aaa | ||
- | AUTH PLAIN AGptczFAam1zMS5uZXQAbm90Lm15LnJlYWwucGFzc3dvcmQ= | ||
- | mail from: < | ||
- | rcpt to: < | ||
- | data | ||
- | Subject: yyy | ||
- | |||
- | msessage text | ||
- | . | ||
- | quit | ||
- | </ |