title: how use netcat to test socks5 server?
body: <p>In <a href="http://www.ietf.org/rfc/rfc1928.txt" rel="nofollow noreferrer">rfc1928</a>, first, client must send a message to server:</p>
  
  <pre><code>           client send to server:
  
             +----+----------+----------+
             |VER | NMETHODS | METHODS  |
             +----+----------+----------+
             | 1  |    1     | 1 to 255 |
             +----+----------+----------+
  </code></pre>
  
  <p>and then server should return message following :</p>
  
  <pre><code>                 +----+--------+
                   |VER | METHOD |
                   +----+--------+
                   | 1  |   1    |
                   +----+--------+
  </code></pre>
  
  <p>So i am using command line to test:</p>
  
  <pre><code>$ echo -e '0x01''0x01''0x01' | nc test.com 30
  </code></pre>
  
  <p>this command should return to me </p>
  
  <pre><code>0x01 0x01
  </code></pre>
  
  <p>But return me nothing with empty blank</p>