盾怪网教程:是一个免费提供流行杀毒软件教程、在线学习分享的学习平台!

VB6中使用Winsock穿越各种代理的完成(TCP协议)

时间:2025/3/12作者:未知来源:盾怪网教程人气:

[摘要]+----+--------+ If the selected METHOD is X''FF'', none of the methods listed by ...

                         +----+--------+

   If the selected METHOD is X''FF'', none of the methods listed by the
   client are acceptable, and the client MUST close the connection.

   The values currently defined for METHOD are:

          o  X''00'' NO AUTHENTICATION REQUIRED   ---------无用户密码 00
          o  X''01'' GSSAPI                       ---------??? GSSAPI ?
          o  X''02'' USERNAME/PASSWORD            ---------有用户密码 02
          o  X''03'' to X''7F'' IANA ASSIGNED
          o  X''80'' to X''FE'' RESERVED FOR PRIVATE METHODS
          o  X''FF'' NO ACCEPTABLE METHODS        ---------失败       255

   The client and server then enter a method-specific sub-negotiation.



换言之,就是向服务器发送三个字节的Byte数组,由于是无须用户/密码校验,展开来写是 05 01 00

然后服务器返回两个字节的信息,第一个字节固定,第而个字节是说明,如果是16进制的FF(即十进制255)表示连接失败(o  X''FF'' NO ACCEPTABLE METHODS)根据上面的列表,我们连接成功应该第二字节为 00.

然后我们进入第二步,请看以下RFC说明:

Once the method-dependent subnegotiation has completed, the client
   sends the request details.  If the negotiated method includes
   encapsulation for purposes of integrity checking and/or
   confidentiality, these requests MUST be encapsulated in the method-
   dependent encapsulation.

   The SOCKS request is formed as follows:

        +----+-----+-------+------+----------+----------+
        

关键词:VB6中运用Winsock穿越各种代理的完成(TCP协议)




Copyright © 2012-2018 盾怪网教程(http://www.dunguai.com) .All Rights Reserved 网站地图 友情链接

免责声明:本站资源均来自互联网收集 如有侵犯到您利益的地方请及时联系管理删除,敬请见谅!

QQ:1006262270   邮箱:kfyvi376850063@126.com   手机版