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

ctx.MustLoadResponse() Is not under proxy #725

Closed
musicyin opened this issue Sep 21, 2022 · 3 comments
Closed

ctx.MustLoadResponse() Is not under proxy #725

musicyin opened this issue Sep 21, 2022 · 3 comments
Labels
needs info The description is not enough to tackle the problem question Questions related to rod

Comments

@musicyin
Copy link

musicyin commented Sep 21, 2022

Rod Version: v0.109.3

browser := rod.New().ControlURL(ws).Trace(true).MustConnect().NoDefaultDevice()
		router.MustAdd("*SomeSpecificUrl*", func(ctx *rod.Hijack) {
			ctx.MustLoadResponse()
//RUN SOME FUNCTION
		})

What you got
The Hijack request is not under proxy

What you expected to see
The Hijack request is under proxy

What have you tried to solve the question
hiclient := resty.New()
hiclient.SetProxy(proxyserver)

and hijack with ctx.LoadResponse(hiclient.GetClient(), true)
Although it can request under proxy , but it is not request through the browser
It maybe detected by some website
The situation is the browser (ws) provided ja3 spoof so i want to request through the browser
that the ja3 fingerprint is not the same

@musicyin musicyin added the question Questions related to rod label Sep 21, 2022
@ysmood ysmood added the needs info The description is not enough to tackle the problem label Sep 21, 2022
@ysmood
Copy link
Member

ysmood commented Sep 21, 2022

Can't reproduce your issue.

@musicyin
Copy link
Author

musicyin commented Sep 21, 2022

Normal Request Code

err := page.Timeout(10 * time.Second).Navigate("https://client.tlsfingerprint.io:8443/")
if err != nil {
				fmt.Println(err.Error())
			} else {
				fmt.Println(page.MustHTML())
				break
			}

Hijacked Request Code

			router.MustAdd("*client.tlsfingerprint.io:8443/*", func(ctx *rod.Hijack) {
				ctx.MustLoadResponse()
				fmt.Println(ctx.Response.Body())
			})

What you got

NORMAL RESPONSE:
..........."id": "e47eae8f8c4887b6" .....

HIJACKED RESPONSE / OR Hijacked response with proxy
..........."id": "14062e58336049c2 .....

Which mean the request is under golang library that detected by some website.

What you expected to see
Hijacked response some with normal response that ja3 fingerprint is the same.

@ysmood
Copy link
Member

ysmood commented Sep 21, 2022

Duplicated #395

@ysmood ysmood closed this as not planned Won't fix, can't repro, duplicate, stale Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs info The description is not enough to tackle the problem question Questions related to rod
Projects
None yet
Development

No branches or pull requests

2 participants