8000 feat: save&overwrite client hello by clouedoc · Pull Request #2 · saucesteals/goproxy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: save&overwrite client hello #2

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

clouedoc
Copy link

This allows saving and overwriting the Client Hello through the following environment variables:

  • GOPROXY_CLIENT_HELLO_SAVE_DIR
  • GOPROXY_OVERWRITE_CLIENT_HELLO

For more information on this PR, see: saucesteals/utlsproxy#6

Copy link
Owner
@saucesteals saucesteals left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small changes

return
}
clientHello = ch
fmt.Println("overwrote client hello UwU")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets remove this?

return
}
ctx.Logf("Wrote client hello to %s", clientHelloPath)
fmt.Printf("Wrote client hello to %s\n", clientHelloPath)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

redundant

clientHello = ch
}

ts := strconv.FormatInt(time.Now().UnixMilli(), 10)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem reliable. Let's use the host from the CONNECT as the filename instead

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also could be a good idea to guard the folder (each file) with a mutex but not a big deal

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

Successfully merging this pull request may close these issues.

2 participants
0