[tbb-commits] [fpcentral/master] Bug 26623: recognize esr60 versions of Tor Browser
gk at torproject.org
gk at torproject.org
Wed Jul 4 16:39:23 UTC 2018
commit a88dbe42b1478ba4a2142c3c8ae08d80511a7f73
Author: Nicolas Vigier <boklm at torproject.org>
Date: Tue Jul 3 19:44:23 2018 +0200
Bug 26623: recognize esr60 versions of Tor Browser
---
fingerprint/acceptable/torbrowser80.json | 64 ++++++++++++++++++++++++++++++++
fingerprint/tags/browser.py | 9 ++++-
2 files changed, 72 insertions(+), 1 deletion(-)
diff --git a/fingerprint/acceptable/torbrowser80.json b/fingerprint/acceptable/torbrowser80.json
new file mode 100644
index 0000000..4c6522e
--- /dev/null
+++ b/fingerprint/acceptable/torbrowser80.json
@@ -0,0 +1,64 @@
+{
+ "mainTag": "Tor Browser 8.0",
+ "math": {
+ "asinh(1)": 0.8813735870195429,
+ "acosh(1e300)": "Infinity",
+ "atanh(05)": 0.5493061443340548,
+ "expm1(1)": 1.7182818284590455,
+ "cbrt(100)": 4.641588833612778,
+ "log1p(10)": 2.3978952727983707,
+ "sinh(1)": 1.1752011936438016,
+ "cosh(10)": 11013.232920103324,
+ "tanh(1)": 0.7615941559557649
+ },
+ "plugins": "",
+ "dnt": "NC",
+ "buildID": "20100101",
+ "screen": {
+ "width": [1000,800,600,400,200],
+ "height": [1000,900,800,700,600,500,400,300,200],
+ "depth": 24,
+ "availTop": 0,
+ "availLeft": 0,
+ "availHeight": [1000,900,800,700,600,500,400,300,200],
+ "availWidth": [1000,800,600,400,200],
+ "left": 0,
+ "top": 0
+ },
+ "storage": {
+ "local": "yes",
+ "session": "yes"
+ },
+ "timezone": 0,
+ "cookies": "yes",
+ "platform": "Win32",
+ "Accept-Encoding": "gzip, deflate, br",
+ "Accept-Language": "en-US,en;q=0.5",
+ "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
+ "Content-Type": "",
+ "Content-Length": "",
+ "audio": {
+ "nt_vc_output": {
+ "ac-sampleRate": 0,
+ "ac-state": 0,
+ "ac-maxChannelCount": 0,
+ "ac-numberOfInputs": 0,
+ "ac-numberOfOutputs": 0,
+ "ac-channelCount": 0,
+ "ac-channelCountMode": 0,
+ "ac-channelInterpretation": 0,
+ "an-fftSize": 0,
+ "an-frequencyBinCount": 0,
+ "an-minDecibels": 0,
+ "an-maxDecibels": 0,
+ "an-smoothingTimeConstant": 0,
+ "an-numberOfInputs": 0,
+ "an-numberOfOutputs": 0,
+ "an-channelCount": 0,
+ "an-channelCountMode": 0,
+ "an-channelInterpretation": 0
+ },
+ "pxi_output": 0,
+ "pxi_full_buffer_hash": "158e8189a3551fe4f2e564ac377b0f1e588a1ab3"
+ }
+}
diff --git a/fingerprint/tags/browser.py b/fingerprint/tags/browser.py
index 405b8c8..daae5c1 100644
--- a/fingerprint/tags/browser.py
+++ b/fingerprint/tags/browser.py
@@ -5,6 +5,7 @@ tor4 = "Tor 4.X"
tor5 = "Tor 5.X"
tor6 = "Tor 6.X"
torbrowser70 = "Tor Browser 7.0"
+torbrowser80 = "Tor Browser 8.0"
chrome = "Chrome"
firefox = "Firefox" #NB: A Tor browser cannot have the Firefox tag
edge = "Edge"
@@ -20,7 +21,13 @@ class Browser(Tag):
def checkTags(self, fp):
ua = fp["User-Agent"]
#We check first for UA from Tor browsers
- if ua == "Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0":
+ if ua == "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0":
+ return [torbrowser80]
+ elif ua == "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Firefox/60.0":
+ return [torbrowser80]
+ elif ua == "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0":
+ return [torbrowser80]
+ elif ua == "Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0":
return [torbrowser70]
elif ua == "Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0":
return [tor6]
More information about the tbb-commits
mailing list