欢迎大家讨论一下“sock5”的事情啊!

tanyx 2003-08-18 11:01:22
1、什么条件支持SOCK5的服务呢?是否WIN2K就自动支持呢?
2、我截取SOCK5的信息,发现SOCK5是TCP协议,并且是客户发一个字节给SOCK5,然后SOCK5返回一个字节。这是什么意思啊?
3、SOCK5是如何知道客户端是要把信息发送给哪个IP地址和端口的呢?两个不同的客户端程序是可以使用同一个SOCK5端口的(1080)。

还有些别的什么SOCK5的知识啊?
...全文
62 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
900126 2003-09-28
  • 打赏
  • 举报
回复
我在那一帖里已经给你回了。
tanyx 2003-08-29
  • 打赏
  • 举报
回复
对不起啊,没说清楚,我是说传输协议的使用方法啊
Garfield 2003-08-26
  • 打赏
  • 举报
回复
SOCKS5就只有一种使用方法呀,除了帮你连接还能怎么的?
tanyx 2003-08-26
  • 打赏
  • 举报
回复
看到了,可是内容太多了吧,我只想能否简单介绍SOCKS5的其中一种使用方法呢。
Garfield 2003-08-19
  • 打赏
  • 举报
回复
在这个版的某个页面你也许能找到我以前写的一个支持SOCKS5下载的类模块。
在已解决那里。
tanyx 2003-08-19
  • 打赏
  • 举报
回复
还有没有人愿意介绍一下sock5的使用办法呢?
Garfield 2003-08-19
  • 打赏
  • 举报
回复

1. 是否支持SOCKS5,要看软件本身是否支持SOCKS5代理,与操作系统无关。
2. 见下:
The client connects to the server, and sends a version
identifier/method selection message:

+----+----------+----------+
|VER | NMETHODS | METHODS |
+----+----------+----------+
| 1 | 1 | 1 to 255 |
+----+----------+----------+

The VER field is set to X'05' for this version of the protocol. The
NMETHODS field contains the number of method identifier octets that
appear in the METHODS field.

The server selects from one of the methods given in METHODS, and
sends a METHOD selection message:

+----+--------+
|VER | METHOD |
+----+--------+
| 1 | 1 |
+----+--------+

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
o X'01' GSSAPI
o X'02' USERNAME/PASSWORD
o X'03' to X'7F' IANA ASSIGNED
o X'80' to X'FE' RESERVED FOR PRIVATE METHODS
o X'FF' NO ACCEPTABLE METHODS

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

详细请看rfc1928

3.请看
4. Requests

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:

+----+-----+-------+------+----------+----------+
|VER | CMD | RSV | ATYP | DST.ADDR | DST.PORT |
+----+-----+-------+------+----------+----------+
| 1 | 1 | X'00' | 1 | Variable | 2 |
+----+-----+-------+------+----------+----------+

Where:

o VER protocol version: X'05'
o CMD
o CONNECT X'01'
o BIND X'02'
o UDP ASSOCIATE X'03'
o RSV RESERVED
o ATYP address type of following address
o IP V4 address: X'01'
o DOMAINNAME: X'03'
o IP V6 address: X'04'
o DST.ADDR desired destination address
o DST.PORT desired destination port in network octet
order

The SOCKS server will typically evaluate the request based on source
and destination addresses, and return one or more reply messages, as
appropriate for the request type.

摘自rfc1928……

rfc1928,rfc1929(用户验证)就是Socks5协议的详细资料。

1,502

社区成员

发帖
与我相关
我的任务
社区描述
VB 网络编程
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧