lwthiker / curl-impersonate

curl-impersonate: A special build of curl that can impersonate Chrome & Firefox
MIT License
3.68k stars 245 forks source link

Custom order of the TLS Extensions #202

Open imnoob404 opened 11 months ago

imnoob404 commented 11 months ago

Is there any way to modify the order of extensions that's being sent during TLS client hello request?

For instance, I'm trying to replicate a browser that has the following list of extensions when viewed through Wireshark: image

And this is the closest that I'm able to replicate using the chrome build of curl-impersonate with slight modifications: image

I've confirmed that all the parameters and extensions are identical, except for the order of extensions as can be seen when comparing the two images above, thus the calculated JA3 hash is different and the server rejected my request.

Any help would be greatly appreciated, thank you.