Skip to content

Commit

Permalink
feat: updated emulator data to handle more runtime OSes
Browse files Browse the repository at this point in the history
  • Loading branch information
calebjclark committed Dec 29, 2020
1 parent 51dada5 commit f57f3b5
Show file tree
Hide file tree
Showing 309 changed files with 68,596 additions and 2,275,130 deletions.
2 changes: 1 addition & 1 deletion emulate-browsers/chrome-80/data/config.json
@@ -1,4 +1,4 @@
{
"browserEngine": ["chrome-80-0", "headless"],
"marketshare": 1.3
"marketshare": 0.4
}
158 changes: 43 additions & 115 deletions emulate-browsers/chrome-80/data/headers.json
@@ -1,9 +1,7 @@
{
"Document": [
{
"originTypes": [
"none"
],
"originTypes": ["none"],
"secureDomain": false,
"method": "GET",
"order": [
Expand All @@ -16,28 +14,17 @@
"Accept-Language"
],
"defaults": {
"Connection": [
"keep-alive"
],
"Upgrade-Insecure-Requests": [
"1"
],
"Connection": ["keep-alive"],
"Upgrade-Insecure-Requests": ["1"],
"Accept": [
"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
],
"Accept-Encoding": [
"gzip, deflate"
],
"Accept-Language": [
"en-US,en;q=0.9"
]
"Accept-Encoding": ["gzip, deflate"],
"Accept-Language": ["en-US,en;q=0.9"]
}
},
{
"originTypes": [
"cross-site",
"same-origin"
],
"originTypes": ["cross-site", "same-origin"],
"secureDomain": false,
"method": "GET",
"order": [
Expand All @@ -51,27 +38,17 @@
"Accept-Language"
],
"defaults": {
"Connection": [
"keep-alive"
],
"Upgrade-Insecure-Requests": [
"1"
],
"Connection": ["keep-alive"],
"Upgrade-Insecure-Requests": ["1"],
"Accept": [
"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
],
"Accept-Encoding": [
"gzip, deflate"
],
"Accept-Language": [
"en-US,en;q=0.9"
]
"Accept-Encoding": ["gzip, deflate"],
"Accept-Language": ["en-US,en;q=0.9"]
}
},
{
"originTypes": [
"none"
],
"originTypes": ["none"],
"secureDomain": true,
"method": "GET",
"order": [
Expand All @@ -85,43 +62,25 @@
"Sec-Fetch-Mode",
"Sec-Fetch-User",
"Accept-Encoding",
"Accept-Language"
"Accept-Language",
"Cookie"
],
"defaults": {
"Connection": [
"keep-alive"
],
"Upgrade-Insecure-Requests": [
"1"
],
"Sec-Fetch-Dest": [
"document"
],
"Connection": ["keep-alive"],
"Upgrade-Insecure-Requests": ["1"],
"Sec-Fetch-Dest": ["document"],
"Accept": [
"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
],
"Sec-Fetch-Site": [
"none"
],
"Sec-Fetch-Mode": [
"navigate"
],
"Sec-Fetch-User": [
"?1"
],
"Accept-Encoding": [
"gzip, deflate, br"
],
"Accept-Language": [
"en-US,en;q=0.9"
]
"Sec-Fetch-Site": ["none"],
"Sec-Fetch-Mode": ["navigate"],
"Sec-Fetch-User": ["?1"],
"Accept-Encoding": ["gzip, deflate, br"],
"Accept-Language": ["en-US,en;q=0.9"]
}
},
{
"originTypes": [
"cross-site",
"same-origin"
],
"originTypes": ["cross-site", "same-origin"],
"secureDomain": true,
"method": "GET",
"order": [
Expand All @@ -136,43 +95,25 @@
"Sec-Fetch-User",
"Referer",
"Accept-Encoding",
"Accept-Language"
"Accept-Language",
"Cookie"
],
"defaults": {
"Connection": [
"keep-alive"
],
"Upgrade-Insecure-Requests": [
"1"
],
"Sec-Fetch-Dest": [
"document"
],
"Connection": ["keep-alive"],
"Upgrade-Insecure-Requests": ["1"],
"Sec-Fetch-Dest": ["document"],
"Accept": [
"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
],
"Sec-Fetch-Site": [
"cross-site",
"same-origin"
],
"Sec-Fetch-Mode": [
"navigate"
],
"Sec-Fetch-User": [
"?1"
],
"Accept-Encoding": [
"gzip, deflate, br"
],
"Accept-Language": [
"en-US,en;q=0.9"
]
"Sec-Fetch-Site": ["cross-site", "same-origin"],
"Sec-Fetch-Mode": ["navigate"],
"Sec-Fetch-User": ["?1"],
"Accept-Encoding": ["gzip, deflate, br"],
"Accept-Language": ["en-US,en;q=0.9"]
}
},
{
"originTypes": [
"same-origin"
],
"originTypes": ["same-origin"],
"secureDomain": true,
"method": "GET",
"order": [
Expand All @@ -186,34 +127,21 @@
"Sec-Fetch-Mode",
"Referer",
"Accept-Encoding",
"Accept-Language"
"Accept-Language",
"Cookie"
],
"defaults": {
"Connection": [
"keep-alive"
],
"Upgrade-Insecure-Requests": [
"1"
],
"Sec-Fetch-Dest": [
"document"
],
"Connection": ["keep-alive"],
"Upgrade-Insecure-Requests": ["1"],
"Sec-Fetch-Dest": ["document"],
"Accept": [
"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
],
"Sec-Fetch-Site": [
"same-origin"
],
"Sec-Fetch-Mode": [
"navigate"
],
"Accept-Encoding": [
"gzip, deflate, br"
],
"Accept-Language": [
"en-US,en;q=0.9"
]
"Sec-Fetch-Site": ["same-origin"],
"Sec-Fetch-Mode": ["navigate"],
"Accept-Encoding": ["gzip, deflate, br"],
"Accept-Language": ["en-US,en;q=0.9"]
}
}
]
}
}
12 changes: 6 additions & 6 deletions emulate-browsers/chrome-80/data/mac-os-10-10/clienthello.json
Expand Up @@ -23,7 +23,7 @@
"extensions": [
{
"type": "GREASE",
"decimal": 23130,
"decimal": 47802,
"values": []
},
{
Expand All @@ -48,7 +48,7 @@
"type": "supported_groups",
"decimal": 10,
"values": [
"GREASE (43690)",
"GREASE (10794)",
"ecdh_x25519 (29)",
"secp256r1 (P-256) (23)",
"secp384r1 (P-384) (24)"
Expand Down Expand Up @@ -98,10 +98,10 @@
"type": "key_share",
"decimal": 51,
"values": [
"NamedGroup: GREASE (43690)",
"NamedGroup: GREASE (10794)",
"key_exchange: (len=1): 00",
"NamedGroup: ecdh_x25519 (29)",
"key_exchange: (len=32): A4C0F5BF2799C9B0DF16031DFDE6FD48EC19F4CFFA9AE83F5874027782DD2443"
"key_exchange: (len=32): C2F833D992ED9B9CFD71E9332D4E5B8E387F33B09A0E4888AEC6B35722E26C1B"
]
},
{
Expand All @@ -113,7 +113,7 @@
"type": "supported_versions",
"decimal": 43,
"values": [
"GREASE (27242)",
"GREASE (31354)",
"TLS 1.3 (772)",
"TLS 1.2 (771)",
"TLS 1.1 (770)",
Expand All @@ -127,7 +127,7 @@
},
{
"type": "GREASE",
"decimal": 39578,
"decimal": 60138,
"values": ["0000 - 00 ."]
},
{
Expand Down

0 comments on commit f57f3b5

Please sign in to comment.