Danny-Dasilva / CycleTLS

Spoof TLS/JA3 fingerprints in GO and Javascript
GNU General Public License v3.0
823 stars 163 forks source link

How to use NewTransportWithProxy? #333

Open Estr0gen opened 3 months ago

Estr0gen commented 3 months ago

Description

How do I use NewTransportWithProxy? I cannot seem to find any example of it. Thanks.

Issue Type

Support

Operating System

Linux

Node Version

None

Golang Version

None

Relevant Log Output

No response

tim-belanenko commented 3 months ago

Usage example

https://github.com/Danny-Dasilva/CycleTLS/blob/a120dacc1abdac2b96529ad61c155210e538674b/cycletls/tests/integration/proxy_test.go#L14-L37

Estr0gen commented 3 months ago

Usage example

https://github.com/Danny-Dasilva/CycleTLS/blob/a120dacc1abdac2b96529ad61c155210e538674b/cycletls/tests/integration/proxy_test.go#L14-L37

Yes, but that is only with the CycleTLS client, not the fhttp transport.

tim-belanenko commented 3 months ago

Usage example https://github.com/Danny-Dasilva/CycleTLS/blob/a120dacc1abdac2b96529ad61c155210e538674b/cycletls/tests/integration/proxy_test.go#L14-L37

Yes, but that is only with the CycleTLS client, not the fhttp transport.

I have same problem :(

akudnamor commented 1 month ago

find a solution????????

Tanjhand commented 5 days ago
Ja3 := "771,4865-4866-4867-49195-49199-49196-49200-52393-52392-49171-49172-156-157-47-53,65037-45-16-0-13-43-18-11-65281-23-17513-5-51-10-35-27,25497-29-23-24,0"
    UserAgent := headers["user-agent"]
    dialer, err := cycletls.NewConnectDialer("http://"+args.IpSession, UserAgent)
    if err != nil {
        log.Println(err)
    }
    sess.Transport = cycletls.NewTransportWithProxy(Ja3, UserAgent, dialer)
Tanjhand commented 5 days ago

NewConnectDialer

copy C:\Users\Administrator\go\pkg\mod\github.com!danny-!dasilva!cycle!t!l!s\cycletls@v1.0.26\connect.go newConnectDialer to NewConnectDialer