验证密码的时候不是正确就返回0x01  0x00  不正确就返回0x05 0x02吗
但我收到两个都是0x01 是怎么回事啊~~

解决方案 »

  1.   

    上一篇: .Net Remoting小心 | 下一篇: Jsp变量定义
     UDP下的SOCK5代理实现     
    Author:zfive5(zhaozidong)
    Email :[email protected]    前些时间,以前同事叫我帮忙写一个upd下的sock5代理,由于一些原因
    没有帮成他的忙,我在这里再次对他说抱歉! 关于sock5代理的包文和数据
    格式可以参考以下url中的内容:
      http://www.vckbase.net/document/viewdoc/?id=853
      http://www.vckbase.net/document/viewdoc/?id=852
      http://www.china-pub.com/computers/eMook/emooknew/rfctxt/RFC1928.txt
        牙看来还是拔不了呀!医院的口腔科星期天居然没有人!!!大早晨在公交车
    上一来一回8圆钱啊!upd Sock5代理下的包数据: client:
          ver( 1 byte)+num method( 1 byte)+ methods(1 -255 byte)
          (05 02 00 02) server:
          
          ver( 1 byte)+ num method(1 byte)
          (05 00 ) or ( 05 02) *client( 当返回 02 时):
           
          ver(1  byte)+ name len(1 byte) +name (1-255 byte) +pass len(1 byte)+password(1 -255 byte)
          ( 01 01 61 01 61)  *server( 当返回 02 时):
          ver(1 byte)+status(1 byte)
          (05 00  )or (05 XX)  client:
          
          ver( 1 byte)+cmd(1 byte)+rsv( 1 byte)+address type( 1 byte)+ addrss( ?? byte) +port( 2 byte)      (05 03 00 01 7f 00 00 01 0f A0)  server:
          ver(1 byte)+reponse(1 byte)+rsv(1 byte)+address type(1 byte)+address(?? byte)+port( 2 byte)
          (05 00 00 01 7f 00 00 01 0f A0)  client:
         rsv (2 byte) + fragment( 1 byte)+ address type (1 byte)+ addr(?? byte)+ port( 2 byte) +data(??)
         (00 00 00 01 7f 00 00 01 0f a0 .....)
      server:
         rsv (2 byte) + fragment( 1 byte)+ address type (1 byte)+ addr(?? byte)+ port( 2 byte) +data(??)
         (00 00 00 01 7f 00 00 01 0f a0 .....)
       ....test server我建议你安装一个代理服务器 ,如 ccproxy,然后抓一下包,全都明白了