Skip to content

Commit b6f5462

Browse files
Add files via upload
1 parent 96b548b commit b6f5462

10 files changed

+2221
-0
lines changed

.editorconfig

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[*]
2+
charset = utf-8
3+
insert_final_newline = true
4+
trim_trailing_whitespace = true
5+
6+
[*.md]
7+
trim_trailing_whitespace = false

.gitattributes

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
* text=auto
2+
3+
*.md text
4+
5+
*.eps binary
6+
*.gif binary
7+
*.ico binary
8+
*.jpeg binary
9+
*.jpg binary
10+
*.png binary
11+
*.svg binary
12+
*.tif binary
13+
*.tiff binary
14+
*.ttf binary

.gitignore

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Compiled source #
2+
###################
3+
*.com
4+
*.class
5+
*.dll
6+
*.exe
7+
*.o
8+
*.so
9+
10+
# Packages #
11+
############
12+
# it's better to unpack these files and commit the raw source
13+
# git has its own built in compression methods
14+
*.7z
15+
*.dmg
16+
*.gz
17+
*.iso
18+
*.jar
19+
*.rar
20+
*.tar
21+
*.zip
22+
23+
# Logs and databases #
24+
######################
25+
*.log
26+
*.sql
27+
*.sqlite
28+
29+
# OS files #
30+
############
31+
$RECYCLE.BIN/
32+
*.cab
33+
*.lnk
34+
*.msi
35+
*.msix
36+
*.msm
37+
*.msp
38+
*.stackdump
39+
.DS_Store
40+
.DS_Store?
41+
.Spotlight-V100
42+
.Trashes
43+
._*
44+
Thumbs.db
45+
[Dd]esktop.ini
46+
ehthumbs.db
47+
ehthumbs_vista.db

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 ghacksuserjs
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

extra.html

+176
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5+
<title>TZP: Extras</title>
6+
<link rel="stylesheet" type="text/css" href="css/index.css">
7+
<script src="js/generic.js"></script>
8+
<script src="js/globals.js"></script>
9+
</head>
10+
11+
<body>
12+
<!-- offscreen -->
13+
<div class="offscreen">
14+
<div><span id="fontFBTest" style='white-space: nowrap; font-family: fontFallback;'></span></div>
15+
<div><img id="imageTest" src=""></div>
16+
</div>
17+
<!-- hidden -->
18+
<div class="hidden">
19+
<div>
20+
<iframe id="iframeTest"></iframe>
21+
<form><input id="appLang_1" required="" type="text"></form>
22+
<iframe id="appLang_2"></iframe>
23+
<iframe id="appLang_3"></iframe>
24+
<iframe id="appLang_4"></iframe>
25+
</div>
26+
</div>
27+
28+
<table>
29+
<tr><td><a anchor="top"><h2>TorZillaPrint: Extra Tests</h2></td></tr>
30+
<tr><td class="blurb"><a class="blue" href="tzp.html">return to the main test</a></td></tr>
31+
</table>
32+
33+
<!-- screen.js -->
34+
<table id="tb1">
35+
<col width="37%"><col width="73%">
36+
<thead><tr><th colspan="2">screen</th></tr></thead>
37+
<tr><td><div class="btn-left"><button class="btn1 btn" onClick="outputScreen()">[ reset ]</button></div>
38+
[clientRect] devicePixelRatio <sup>1</sup></td><td class="c mono" id="dprclientRect"></td></tr>
39+
<tr><td>[scrollY] devicePixelRatio <sup>1</sup></td><td class="c" id="dprscrollY"></td></tr>
40+
<tr><td colspan="2"><span class="no_color">code based on work by </span>
41+
<a target="_blank" class="blue" href="https://acatarineu.github.io/fp/devicePixelRatio.html">Alex Catarineu</a> <sup>1</sup>
42+
</td></tr>
43+
</table>
44+
45+
<!-- resource:// -->
46+
<table id="tb2">
47+
<col width="37%"></a><col width="63%">
48+
<thead><tr><th colspan="2">[tor browser] chrome:// & resource://</th></tr></thead>
49+
<tr><td><div>
50+
<div class="btn-left"><button class="btn2 btn" id="resourceRun" onClick="outputResource()">[ run tests ]</button></div>
51+
<div>images</div></div></td>
52+
<td class="c mono" id="imgHashR"></td></tr>
53+
<tr><td>js</td><td class="c mono" id="jsHashR"></td></tr>
54+
<tr><td>css</td><td class="c mono" id="cssHashR"></td></tr>
55+
<tr><td>combined</td></td><td class="c mono" id="allHashR"></td></tr>
56+
<tr><td colspan="2" class="showhide">
57+
<input id="collapseR" class="toggle" type="checkbox" checked onchange="toggleitems(this, `R`)">
58+
<label for="collapseR" class="lbl-toggle" id="labelR">&#9660; show details</label>
59+
</td></tr>
60+
<tr class="togR">
61+
<td><button class="btn0 btn" onClick="copyclip(`allLoadedR`)">[ copy to clipboard ]</button>results</td>
62+
<td class="c" id="allLoadedR"></td>
63+
</tr>
64+
</table>
65+
66+
<!-- chrome:// -->
67+
<table id="tb3">
68+
<col width="37%"></a><col width="63%">
69+
<thead><tr><th colspan="2">chrome://</th></tr></thead>
70+
<tr><td colspan="2" class="intro"><span class="no_color">The <code>chrome://</code> list from
71+
<a target="_blank" class="blue" href="https://privacycheck.sec.lrz.de/index.html">privacycheck.sec.lrz.de</a> was created from
72+
all Firefox 10-62 releases, for Windows/Linux/Mac, and does not include any new resources which may be present in subsequent
73+
releases. This test removed one item, <code>chrome://global/content/minimal-xul.css</code>, for stability purposes on this site.</span>
74+
</td></tr>
75+
<tr><td><div>
76+
<div class="btn-left"><button class="btn3 btn" id="chromeRun" onClick="outputSection(`3`, `c`, `e`)">[ run tests ]</button></div>
77+
<div>images</div></div></td>
78+
<td class="c mono" id="imgHash"></td></tr>
79+
<tr><td>js</td><td class="c mono" id="jsHash"></td></tr>
80+
<tr><td>css</td><td class="c mono" id="cssHash"></td></tr>
81+
<tr><td>combined</td></td><td class="c mono" id="allHash"></td></tr>
82+
<tr><td colspan="2" class="showhide">
83+
<input id="collapseC" class="toggle" type="checkbox" checked onchange="toggleitems(this, `C`)">
84+
<label for="collapseC" class="lbl-toggle" id="labelC">&#9660; show details</label>
85+
</td></tr>
86+
<tr class="togC">
87+
<td><button class="btn0 btn" onClick="copyclip(`allLoaded`)">[ copy to clipboard ]</button>[alphabetically sorted] all</td>
88+
<td class="c" id="allLoaded"></td>
89+
</tr>
90+
<tr class="togC"><td colspan="2"></td></tr>
91+
<tr><td colspan="2"><span class="no_color">chrome:// code based on work by </span>
92+
<a target="_blank" class="blue" href="https://privacycheck.sec.lrz.de/index.html">privacycheck.sec.lrz.de</a></td></tr>
93+
</table>
94+
95+
<!-- app lang -->
96+
<table id="tb4">
97+
<col width="37%"></a><col width="63%">
98+
<thead><tr><th colspan="2">application language</th></tr></thead>
99+
<tr><td><div>
100+
<div class="btn-left"><button class="btn4 btn" onClick="outputSection(`4`, `c2`, `e`)">[ run tests ]</button></div>
101+
<div>dtd <sup>1</sup></div></div></td><td class="c2" id="appLang2"></td></tr>
102+
<tr><td>dtd nullprinciple <sup>2</sup></td><td class="c2" id="appLang3"></td></tr>
103+
<tr><td>dom.properties <sup>3</sup></td><td class="c2" id="appLang1"></td></tr>
104+
<tr><td>MediaDocument.properties <sup>3</sup></td><td class="c2" id="appLang4"></td></tr>
105+
<tr><td>xmlparser.properties <sup>3</sup></td><td class="c2" id="appLang5"></td></tr>
106+
<tr><td colspan="2"></td></tr>
107+
<!--credits-->
108+
<tr><td colspan="2"><span class="no_color">app language code based on work by Alex Catarineu </span>
109+
<a target="_blank" class="blue" href="https://acatarineu.github.io/fp/locale.html">here</a> <sup>1</sup>
110+
<span class="no_color"> and </span>
111+
<a target="_blank" class="blue" href="https://acatarineu.github.io/fp/locale_nullprincipal.html">here</a> <sup>2</sup>
112+
<span class="no_color"> and </span>
113+
<a target="_blank" class="blue" href="https://trac.torproject.org/projects/tor/ticket/30683">z3t on HackerOne</a> <sup>3</sup>
114+
</td></tr>
115+
116+
<!-- fonts -->
117+
<table id="tb5">
118+
<col width="1%"><col width="36%"><col width="63%">
119+
<thead><tr><th colspan="3">monsta font list</th></tr></thead>
120+
<tr><td colspan="3" class="intro"><span class="no_color">This is to show that without mitigation measures, font entropy is
121+
high: The list linked below, will include os lists, whitelists, and some unique fonts bundled with popular applications.
122+
In reality a much smaller list can be used without sacrificing much entropy.</span>
123+
</td></tr>
124+
<tr><td colspan="2"><div><div class="btn-left"><button class="btn5 btn" onClick="outputSection(`5`, `c`, `e`)">[ run monsta tests ]</button></div>
125+
<div>font list</div></div></td>
126+
<td class="mono" id="monsta_fontList"><span class="no_color">
127+
<a href="txt/fonts_monsta.txt" target='blank' class='blue'>fonts_monsta<a></span></td></tr>
128+
<tr><td colspan="2">fingerprintjs2 <sup>1</sup></td><td class="c mono" id="monsta_fontFPJS2"></td></tr>
129+
<tr><td colspan="2">font fallback <sup>2</sup></td><td class="c mono" id="monsta_fontFB"></td></tr>
130+
<!--DETAILS-->
131+
<tr><td colspan="3" class="showhide">
132+
<input id="collapseF" class="toggle" type="checkbox" checked onchange="toggleitems(this, `F`)">
133+
<label for="collapseF" class="lbl-toggle" id="labelF">&#9660; show details</label>
134+
</td></tr>
135+
<!--WHITELIST: c2-->
136+
<tr class="togF"><td colspan="2" class="s5" id="monsta_fontlabel">monsta</td>
137+
<td><button class="btn0 btn" onClick="copyclip(`small_fontFPJS2Found`)">[ copy to clipboard ]</button></td></tr>
138+
<tr class="togF"><td></td><td colspan="2" class="intro" id="monsta_fontFPJS2Found"></td></tr>
139+
<tr id="fontF1" class="togF1"><td colspan="2" class="s5">font fallback [monsta]</td>
140+
<td><button class="btn0 btn" onClick="copyclip(`small_fontFBFound`)">[ copy to clipboard ]</button></td></tr>
141+
<tr id="fontF2" class="togF1"><td></td><td colspan="2" class="intro" id="monsta_fontFBFound"></td></tr>
142+
<!--CREDITS-->
143+
<tr><td colspan="3"><span class="no_color">code based on work by </span>
144+
<a target="_blank" class="blue" href="https://github.com/Valve/fingerprintjs2">fingerprintjs2</a> <sup>1</sup>
145+
<span class="no_color"> and </span>
146+
<a target="_blank" class="blue" href="https://github.com/arthuredelstein/tordemos">Arthur Edelstein</a> <sup>2</sup>
147+
</td></tr>
148+
</table>
149+
150+
<table id="tb6">
151+
<col width="37%"></a><col width="63%">
152+
<thead><tr><th colspan="2">widgets / form controls</div></th></tr></thead>
153+
<tr><td><div>
154+
<div class="btn-left"><button class="btn6 btn" onClick="outputSection(`6`, `c`, `e`)">[ re-run tests ]</button></div>
155+
<div>one</div></div></td><td></td></tr>
156+
<tr><td>two</td><td></td></tr>
157+
<tr><td colspan="2" class="showhide">
158+
<input id="collapseW" class="toggle" type="checkbox" checked onchange="toggleitems(this, `W`)">
159+
<label for="collapseW" class="lbl-toggle" id="labelW">&#9660; show details</label>
160+
</td></tr>
161+
<tr class="togW"><td>one</td><td></td></tr>
162+
<tr class="togW"><td>two</td><td></td></tr>
163+
<tr class="togW"><td colspan="2"></td></tr>
164+
</table>
165+
166+
<br>
167+
<script src="js/main.js"></script>
168+
<script src="jsextra/widgets.js"></script>
169+
<script src="jsextra/screen.js"></script>
170+
<script src="jsextra/language.js"></script>
171+
<script src="jsextra/resource.js"></script>
172+
<script src="jsextra/chrome.js"></script>
173+
<script src="js/fonts.js"></script>
174+
175+
</body>
176+
</html>

index.html

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3+
<head>
4+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5+
<title>TZP</title>
6+
<style>
7+
body {background-color: #1a1a1a; color: #b3b3b3;}
8+
a {color: #8abfda; text-decoration: none;}
9+
.s1 {color: #dc8c8c;}
10+
</style>
11+
</head>
12+
<body>
13+
<center>
14+
<br>
15+
<p class="s1">testing<p>
16+
<p>hello</p>
17+
</center><br>
18+
</body>
19+
</html>

0 commit comments

Comments
 (0)