Danny-Dasilva / CycleTLS

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

How to use NewTransportWithProxy? #333

Open Estr0gen opened 8 months ago

Estr0gen commented 8 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 8 months ago

Usage example

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

Estr0gen commented 8 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 8 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 6 months ago

find a solution????????

Tanjhand commented 5 months 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 months 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