mirror of
https://github.com/lwthiker/curl-impersonate.git
synced 2026-08-25 20:18:15 +00:00
Use different binary names for Firefox and Chrome
Rename the binary files of curl-impersonate so that the Firefox and Chrome versions can co-exist on the same system. The Firefox version is now named 'curl-impersonate-ff' and 'libcurl-impersonate-ff' and the Chrome version is named 'curl-impersonate-chrome' and 'libcurl-impersonate-chrome'. The wrapper scripts look for these names as well. Symbolic names with the old names are still created inside the Docker images to keep compatibility as much as possible.
This commit is contained in:
@@ -6,7 +6,7 @@ dir=`echo "$0" | sed 's%/[^/]*$%%'`
|
||||
# The list of ciphers can be obtained by looking at the Client Hello message in
|
||||
# Wireshark, then converting it using this reference
|
||||
# https://wiki.mozilla.org/Security/Cipher_Suites
|
||||
"$dir/curl-impersonate" \
|
||||
"$dir/curl-impersonate-chrome" \
|
||||
--ciphers TLS_AES_128_GCM_SHA256,TLS_AES_256_GCM_SHA384,TLS_CHACHA20_POLY1305_SHA256,ECDHE-ECDSA-AES128-GCM-SHA256,ECDHE-RSA-AES128-GCM-SHA256,ECDHE-ECDSA-AES256-GCM-SHA384,ECDHE-RSA-AES256-GCM-SHA384,ECDHE-ECDSA-CHACHA20-POLY1305,ECDHE-RSA-CHACHA20-POLY1305,ECDHE-RSA-AES128-SHA,ECDHE-RSA-AES256-SHA,AES128-GCM-SHA256,AES256-GCM-SHA384,AES128-SHA,AES256-SHA \
|
||||
-H 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="99", "Google Chrome";v="99"' \
|
||||
-H 'sec-ch-ua-mobile: ?0' \
|
||||
|
||||
Reference in New Issue
Block a user