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

Handle new action "OPEN_TUNNEL" #108

Open
tructhienbui opened this issue Dec 18, 2024 · 7 comments
Open

Handle new action "OPEN_TUNNEL" #108

tructhienbui opened this issue Dec 18, 2024 · 7 comments

Comments

@tructhienbui
Copy link

They just present new action to the websocket call OPEN_TUNNEL.

This also make the script crashing with exception include "method" this is because the request_data does not contain the method any more.

I think that they change the regular HTTP_REQUEST action into another tunnel connection.

`09:47:24.46 INFO 1 | Connected
{'id': 'KJI2JJLFCroN6NpFXfhDr', 'action': 'OPEN_TUNNEL', 'data': {'url': 'https://api.getgrass.io/somethign/something'}}
{'url': 'https://api.getgrass.io/something/something'}

@milkthecow-moo
Copy link
Contributor

milkthecow-moo commented Dec 18, 2024

The initial fix doesn't seem to hard. It appears to return the same data as the url in "HTTP_REQUEST" which looks like this

{"code":"'abcdefghijk'"}

The big question is what does the server expect to see?
with "HTTP_REQUEST" the server was expecting somthing like this from the client

{ "id": "12345", "origin_action": "HTTP_REQUEST", "result": { "body": "example_encoded_body_as_str", "headers": { "Content-Type": "application/json", "Cache-Control": "no-cache" }, "status": 200, "status_text": "OK", "url": "https://example.com/api" } }

With OPEN_TUNNEL the server could be expecting something different

@tructhienbui
Copy link
Author

Yeah i tried to debug on extensions but seem they dont return OPEN TUNNEL for extensions, so basically be careful. Only way to know is debug the desktop app it-self

@milkthecow-moo
Copy link
Contributor

Yeah and that is hard. The app has SSL pining and I'm not knowledgeable enough to know how to remove it

@FiNT222
Copy link

FiNT222 commented Dec 20, 2024

Haven't found a solution to the problem yet?

@xingzai163
Copy link

I tried to capture the package, but the desktop could not find the websocket package

@MsLolita
Copy link
Owner

Can somebody make push request that I add it to bot?

@Natmat626
Copy link

Haven't found a solution to the problem yet? Still waiting for it.

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

6 participants