Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【关于sock5问题请教】 #1

Open
zhangliangming opened this issue Apr 24, 2023 · 1 comment
Open

【关于sock5问题请教】 #1

zhangliangming opened this issue Apr 24, 2023 · 1 comment

Comments

@zhangliangming
Copy link

大神,你好,我这边写了一个sock5用vpn代理实现的代码,sock5协商成功后,在发数据阶段,看网上说的应该是要获取tcp发的数据报文。现在有个问题是,我这边应该是要先模拟握手,拿到tcp发的数据报文,然后放到sock5的代理服务器。但是好像不行。能不能麻烦你帮我看一下代码。
1.这个代码,是我模拟握手:packet.updateTCPBuffer(newByteBuffer, (byte) (packet.tcpHeader.ACK | packet.tcpHeader.SYN), 0, packet.tcpHeader.sequenceNumber + 1, 0); 但是总感觉不对。

  1. byte[] sendData = packet.tcpHeader.data。这个代码是我获取数据报文的,感觉也不对。

麻烦大神抽个时间帮忙看一下,困扰了好几天的问题。
项目地址:https://github.com/zhangliangming/Sock5Pro

@zhangliangming
Copy link
Author

或者加一下我QQ:316257874

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant