User Tools

Site Tools


tips-and-tricks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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+====== Send email via telnet ======
  
-  * Open relay 
  
 +===== Open relay =====
 +
 +
 +<code>
 telnet x.x.x.x 25 telnet x.x.x.x 25
 ehlo aaa ehlo aaa
Line 14: Line 17:
 quit quit
  
-  * with auth:+</code>
  
 +===== with auth =====
 +
 +  * generate base64 auth string:
 +
 +<code>
 +# python
 +python -c 'import base64; print base64.b64encode("\000user@domain.com\000password")'
 +# bash
 +echo -n "\000user@domain.com\000password" | base64
 +#perl
 +perl -MMIME::Base64 -e 'print encode_base64("\000jms1\@jms1.net\000not.my.real.password”) 
 +</code>
 +
 +<code>
 telnet x.x.x.x 25 telnet x.x.x.x 25
 ehlo aaa ehlo aaa
Line 27: Line 44:
 . .
 quit quit
 +</code>
tips-and-tricks.1405971176.txt.gz · Last modified: 2014/07/21 22:32 by gsamfira