Skip to content

Commit

Permalink
Add chrome120 and safari 17.2
Browse files Browse the repository at this point in the history
  • Loading branch information
perkfly committed Dec 26, 2023
1 parent 9be8260 commit a0ab451
Show file tree
Hide file tree
Showing 20 changed files with 611 additions and 188 deletions.
5 changes: 4 additions & 1 deletion chrome/curl_chrome100
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --compressed \
--http2 \
--http2-settings '1:65536;3:1000;4:6291456;6:262144' \
--http2-window-update 15663105 \
--compressed \
--tlsv1.2 --alps \
--cert-compression brotli \
"$@"
5 changes: 4 additions & 1 deletion chrome/curl_chrome101
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --compressed \
--http2 \
--http2-settings '1:65536;3:1000;4:6291456;6:262144' \
--http2-window-update 15663105 \
--compressed \
--tlsv1.2 --alps \
--cert-compression brotli \
"$@"
5 changes: 4 additions & 1 deletion chrome/curl_chrome104
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --compressed \
--http2 \
--http2-settings '1:65536;3:1000;4:6291456;6:262144' \
--http2-window-update 15663105 \
--compressed \
--tlsv1.2 --alps \
--cert-compression brotli \
"$@"
5 changes: 4 additions & 1 deletion chrome/curl_chrome107
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --http2-no-server-push --compressed \
--http2 \
--http2-settings '1:65536;2:0;3:1000;4:6291456;6:262144' \
--http2-window-update 15663105 \
--compressed \
--tlsv1.2 --alps \
--cert-compression brotli \
"$@"
5 changes: 4 additions & 1 deletion chrome/curl_chrome110
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --http2-no-server-push --compressed \
--http2 \
--http2-settings '1:65536;2:0;3:1000;4:6291456;6:262144' \
--http2-window-update 15663105 \
--compressed \
--tlsv1.2 --alps --tls-permute-extensions \
--cert-compression brotli \
"$@"
5 changes: 4 additions & 1 deletion chrome/curl_chrome116
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --http2-no-server-push --compressed \
--http2 \
--http2-settings '1:65536;2:0;3:1000;4:6291456;6:262144' \
--http2-window-update 15663105 \
--compressed \
--tlsv1.2 --alps --tls-permute-extensions \
--cert-compression brotli \
"$@"
4 changes: 3 additions & 1 deletion chrome/curl_chrome119
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --http2-no-server-push --http2-skip-max-concurrent-streams \
--http2 \
--http2-settings '1:65536;2:0;4:6291456;6:262144' \
--http2-window-update 15663105 \
--compressed \
--ech GREASE \
--tlsv1.2 --alps --tls-permute-extensions \
Expand Down
30 changes: 30 additions & 0 deletions chrome/curl_chrome120
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash

# Find the directory of this script
dir=${0%/*}

# 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-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="8", "Chromium";v="120", "Google Chrome";v="120"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'Upgrade-Insecure-Requests: 1' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7' \
-H 'Sec-Fetch-Site: none' \
-H 'Sec-Fetch-Mode: navigate' \
-H 'Sec-Fetch-User: ?1' \
-H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 \
--http2-settings '1:65536;2:0;4:6291456;6:262144' \
--http2-window-update 15663105 \
--compressed \
--ech GREASE \
--tlsv1.2 --alps --tls-permute-extensions \
--cert-compression brotli \
"$@"
5 changes: 4 additions & 1 deletion chrome/curl_chrome99
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --compressed \
--http2 \
--http2-settings '1:65536;3:1000;4:6291456;6:262144' \
--http2-window-update 15663105 \
--compressed \
--tlsv1.2 --alps \
--cert-compression brotli \
"$@"
5 changes: 4 additions & 1 deletion chrome/curl_chrome99_android
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --compressed \
--http2 \
--http2-settings '1:65536;3:1000;4:6291456;6:262144' \
--http2-window-update 15663105 \
--compressed \
--tlsv1.2 --alps \
--cert-compression brotli \
"$@"
5 changes: 4 additions & 1 deletion chrome/curl_edge101
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --compressed \
--http2 \
--http2-settings '1:65536;3:1000;4:6291456;6:262144' \
--http2-window-update 15663105 \
--compressed \
--tlsv1.2 --alps \
--cert-compression brotli \
"$@"
5 changes: 4 additions & 1 deletion chrome/curl_edge99
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ dir=${0%/*}
-H 'Sec-Fetch-Dest: document' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Accept-Language: en-US,en;q=0.9' \
--http2 --compressed \
--http2 \
--http2-settings '1:65536;3:1000;4:6291456;6:262144' \
--http2-window-update 15663105 \
--compressed \
--tlsv1.2 --alps \
--cert-compression brotli \
"$@"
7 changes: 5 additions & 2 deletions chrome/curl_safari15_3
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ dir=${0%/*}
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
-H 'Accept-Language: en-us' \
-H 'Accept-Encoding: gzip, deflate, br' \
--http2 --compressed \
--tlsv1.0 --no-tls-session-ticket \
--http2 \
--http2-settings '4:4194304;3:100' \
--http2-pseudo-headers-order 'mspa' \
--http2-window-update 10485760 \
--compressed \
--tlsv1.0 --no-tls-session-ticket \
"$@"
7 changes: 5 additions & 2 deletions chrome/curl_safari15_5
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ dir=${0%/*}
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
-H 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' \
-H 'Accept-Encoding: gzip, deflate, br' \
--http2 --compressed \
--http2 \
--http2-settings '4:4194304;3:100' \
--http2-pseudo-headers-order 'mspa' \
--http2-window-update 10485760 \
--compressed \
--tlsv1.0 --no-tls-session-ticket \
--cert-compression zlib \
--http2-pseudo-headers-order 'mspa' \
"$@"
27 changes: 27 additions & 0 deletions chrome/curl_safari17_2_ios
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/env bash

# Find the directory of this script
dir=${0%/*}

# 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-chrome" \
--ciphers TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384:TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256:TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256:TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384:TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256:TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256:TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA:TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA:TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA:TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA:TLS_RSA_WITH_AES_256_GCM_SHA384:TLS_RSA_WITH_AES_128_GCM_SHA256:TLS_RSA_WITH_AES_256_CBC_SHA:TLS_RSA_WITH_AES_128_CBC_SHA:TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA:TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA:TLS_RSA_WITH_3DES_EDE_CBC_SHA \
--curves X25519:P-256:P-384:P-521 \
--signature-hashes ecdsa_secp256r1_sha256,rsa_pss_rsae_sha256,rsa_pkcs1_sha256,ecdsa_secp384r1_sha384,ecdsa_sha1,rsa_pss_rsae_sha384,rsa_pss_rsae_sha384,rsa_pkcs1_sha384,rsa_pss_rsae_sha512,rsa_pkcs1_sha512,rsa_pkcs1_sha1 \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
-H 'Sec-Fetch-Site: none' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Sec-Fetch-Mode: navigate' \
-H 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 17_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2 Mobile/15E148 Safari/604.1' \
-H 'Accept-Language: en-US,en;q=0.9' \
-H 'Sec-Fetch-Dest: document' \
--http2 \
--http2-settings '2:0;4:2097152;3:100' \
--http2-pseudo-headers-order 'mspa' \
--http2-window-update 10485760 \
--compressed \
--tlsv1.0 --no-tls-session-ticket \
--cert-compression zlib \
"$@"
Loading

0 comments on commit a0ab451

Please sign in to comment.