This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
tips-and-tricks [2014/07/21 22:32] gsamfira created |
tips-and-tricks [2014/07/21 22:44] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Send email via telnet | + | ====== |
| - | * Open relay | ||
| + | ===== Open relay ===== | ||
| + | |||
| + | |||
| + | < | ||
| telnet x.x.x.x 25 | telnet x.x.x.x 25 | ||
| ehlo aaa | ehlo aaa | ||
| Line 14: | Line 17: | ||
| quit | quit | ||
| - | * with auth: | + | </ |
| + | ===== with auth ===== | ||
| + | |||
| + | * generate base64 auth string: | ||
| + | |||
| + | < | ||
| + | # python | ||
| + | python -c ' | ||
| + | # bash | ||
| + | echo -n " | ||
| + | #perl | ||
| + | perl -MMIME:: | ||
| + | </ | ||
| + | |||
| + | < | ||
| telnet x.x.x.x 25 | telnet x.x.x.x 25 | ||
| ehlo aaa | ehlo aaa | ||
| Line 27: | Line 44: | ||
| . | . | ||
| quit | quit | ||
| + | </ | ||