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

请问一下大佬关于开启websocket代理的问题 #34

Open
jsjjxjsjjs opened this issue Oct 13, 2022 · 2 comments
Open

请问一下大佬关于开启websocket代理的问题 #34

jsjjxjsjjs opened this issue Oct 13, 2022 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@jsjjxjsjjs
Copy link

“ wsIntercept: true, // 不开启websocket代理”这一行代理已经改为true了,,可是代理不了websocket的流量。

报错这个“websocket error, Error: listen EADDRINUSE: address already in use :::8002”

如果成功代理websocket流量,里面的发送和接收消息能被记录吗,,,直接hook.searck()搜索被加密的二进制消息能搜出来吗?

@CC11001100
Copy link
Member

你好,感谢您的反馈,我看了下:

  1. 这个报错的意思是8002端口已经被占用,我看了下是因为ast-hook-for-js-RE默认的端口是写死的8002端口,手动修改下应该就可以了:
    https://github.com/CC11001100/ast-hook-for-js-RE/blob/62f733b259b0a971ae8b792c3c6482db7baf4445/src/proxy-server/proxy-server.js#L8

  2. websocket暂时还不可以,不过我有另一个拦截hook websocket的脚本能实现类似的效果,近期整理下开源...(大概率鸽,请不要抱太大期望....)

@CC11001100 CC11001100 self-assigned this Oct 13, 2022
@CC11001100 CC11001100 added the question Further information is requested label Oct 13, 2022
@jsjjxjsjjs
Copy link
Author

感谢大佬解答,,,期待大佬新作品

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

No branches or pull requests

2 participants