-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
387 lines (343 loc) · 10.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script async defer src="https://buttons.github.io/buttons.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap"
rel="stylesheet">
<script src="ua-parser.min.js"></script>
<script src="suscreen.js"></script>
<style>
.screen,
.avail-screen,
.outer-window,
.inner-window {
transition: 0.1s linear;
}
.inner-window {
background: #ffffff;
}
.outer-window {
background: #9fc2e4;
}
.avail-screen {
background: #c0dcb5;
}
.screen {
background: #f7ca9e;
}
.slidecontainer {
width: 100%;
}
.slider {
-webkit-appearance: none;
width: 100%;
height: 25px;
background: #d3d3d3;
outline: none;
opacity: 0.7;
-webkit-transition: 0.2s;
transition: opacity 0.2s;
}
.slider:hover {
opacity: 1;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 25px;
height: 25px;
background: #04aa6d;
cursor: pointer;
}
.slider::-moz-range-thumb {
width: 25px;
height: 25px;
background: #04aa6d;
cursor: pointer;
}
#myRange {
direction: rtl;
max-width: 340px;
}
*,
*:after,
*:before {
box-sizing: border-box;
}
:root {
font-size: 16px;
}
body {
font-family: 'Source Sans Pro', sans-serif;
line-height: 1.5;
min-height: 100vh;
font-size: 1.25rem;
}
h1 {
margin: unset;
font-size: 1.5em
}
*:focus {
outline: none;
}
details div {
border-left: 2px solid #222222;
border-right: 2px solid #222222;
border-bottom: 2px solid #222222;
padding: 1.5em;
}
details div>*+* {
margin-top: 1.5em;
}
details+details {
margin-top: 0.5rem;
}
summary {
list-style: none;
}
summary::-webkit-details-marker {
display: none;
}
summary {
border: 2px solid #222222;
padding: 0.75em 1em 0.75em calc(1.75rem + 0.75rem + 0.75rem);
cursor: pointer;
position: relative;
}
summary:before {
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 0.75rem;
content: "↓";
width: 1.75rem;
height: 1.75rem;
background-color: #222222;
color: #fff;
display: inline-flex;
justify-content: center;
align-items: center;
flex-shrink: 0;
}
details[open] summary {
background-color: #eee;
}
details[open] summary:before {
content: "↑";
}
summary:hover {
background-color: #eee;
}
a {
color: inherit;
font-weight: 600;
text-decoration: none;
color: #04aa6d
}
a:hover {
color: #222222
}
.more-details {
margin-top: 20px
}
.here {
font-size: 14px
}
table {
border-collapse: collapse;
margin: 20px auto;
}
#mouse-properties {
margin: unset;
}
.mouse:after {
content: " ";
display: block;
height: 8px;
margin-top: -4px;
width: 1px;
background: #222222;
position: absolute;
right: 0;
}
.mouse:before {
content: " ";
display: block;
height: 1px;
width: 8px;
margin-right: -4px;
background: #222222;
position: absolute;
right: 0;
}
th,
td {
border: 1px solid #222222;
padding: 5px;
text-align: left;
}
th {
background-color: #eee;
}
.mouse {
position: absolute;
}
</style>
<title>Web-exposed Screen Profiler</title>
<meta name="description"
content="The Web-exposed Screen Profiler visualizes web-exposed screen information to show you what your screen and browser window looks like to a website." />
</head>
<body>
<h1>Web-exposed Screen Profiler</h1>
<a class="github-button" href="https://github.com/snokamedia/exposed-screen" data-icon="octicon-star"
aria-label="Star snokamedia/exposed-screen on GitHub">Star</a>
<a class="github-button" href="https://github.com/snokamedia" aria-label="Follow @snokamedia on GitHub">Follow
@snokamedia</a>
<div class="screen-column">
<div class="screen" style="
width: 100px;
height: 100px;
outline: solid 1px #222222;
outline-offset: 0px;
display: flex;
">
<div class="avail-screen" style="
width: 100px;
height: 100px;
outline: solid 1px #222222;
outline-offset: 0px;
display: flex;
align-self: auto;
">
<div class="outer-window" style="
width: 100px;
height: 100px;
outline: solid 1px #222222;
outline-offset: 0px;
display: flex;
margin-left: 0px;
margin-top: 0px;
">
<div class="inner-window" style="
width: 100px;
height: 100px;
outline: solid 1px #222222;
outline-offset: 0px;
align-self: flex-end;
text-align: center;
">
<div class="mouse" style="
margin-top:0px;
margin-left:0px;
"></div>
</div>
</div>
</div>
</div>
</div>
<div class="slidecontainer">
<label for="myRange">Scale: </label>
<input type="range" min="1.5" max="7" value="5" class="slider" step="0.01" id="myRange" />
</div>
<div id="window-sus" style="margin-top: 20px"></div>
<div id="os-properties"></div>
<div class="more-details">
<details open>
<summary>Window and Screen Properties</summary>
<div id="window-properties"></div>
</details>
<details>
<summary>Usage</summary>
<div>
<p> The Web-exposed Screen Profiler visualizes web-exposed screen information to show you what your screen and
browser window looks like to a website.
</p>
<p> This also demonstrates how the visitor’s OS can be deduced without using user-agent data and how extended
displays can be derived without using the Multi-Screen Window Placement API. It can be a useful tool to help
develop more comprehensive detection scripts that can infer more device details beyond user-agent data which
can be easily spoofed and mimicked.
</p>
<p> Try resizing your window, moving it to a different screen, zooming in or out, changing the size of your
taskbar/menu bar, and turning your bookmark bar on and off. Take a screenshot of it with a bot or online
screenshot tool and see if it gets detected as a VM.
</p>
<p> Then give me a star and buy me a coffee 😜
<br><a class="github-button" data-size="large" href="https://github.com/snokamedia/exposed-screen"
data-icon="octicon-star" aria-label="Star snokamedia/exposed-screen on GitHub">Star</a>
<a class="github-button" data-size="large" href="https://github.com/snokamedia"
aria-label="Follow @snokamedia on GitHub">Follow @snokamedia</a>
<a href="https://www.buymeacoffee.com/snoka"><img
src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee"></a>
<a href="https://ko-fi.com/W7W1FDHVR"><img src="https://ko-fi.com/img/githubbutton_sm.svg" alt="ko-fi"></a>
</p>
</div>
</details>
<details>
<summary>User-Agent and GPU</summary>
<div id="gpu-data"></div>
<div id="user-agent-data"></div>
</details>
<details>
<summary>Browser Features</summary>
<div id="user-feature-data"></div>
</details>
<details>
<summary>Mouse Movement</summary>
<table id="mouse-properties">
<tr>
<th>Mouse</th>
<th>X</th>
<th>Y</th>
</tr>
<tr>
<td>client</td>
<td id="clientX"></td>
<td id="clientY"></td>
</tr>
<tr>
<td>screen</td>
<td id="screenX"></td>
<td id="screenY"></td>
</tr>
</table>
</details>
<details>
<summary>How is this possible?</summary>
<div>
<p>
In the mid-2000s, the Window object's capabilities expanded with the
introduction of the screen API. The screen API provides information
about the user's display, such as screen resolution, color depth,
and available screen space. This API allowed developers to create
web applications that could adapt to different screen sizes and
resolutions.
</p>
<p>
The screenLeft and screenTop properties were first introduced in
Internet Explorer 4, which was released in 1997. They were later
adopted by other major browsers, including Netscape Navigator and
Mozilla Firefox. The properties were included in the W3C's CSSOM
View Module, which was released as a recommendation in 2008.
</p>
<p>
In the early days of the web, the screenLeft and screenTop
properties were useful for creating pop-up windows that were
positioned relative to the screen, rather than the browser window.
They were often used for displaying ads, as well as for creating
custom login forms and other UI elements that needed to be
positioned outside of the browser window.
</p>
<p>
Additional Credits:<br><a href="https://github.com/faisalman/ua-parser-js"
target="_blank">UAParser.js</a><br><a href="https://codepen.io/havardob/pen/abBJgQo"
target="_blank">Accordion CSS</a>.</p>
</p>
</div>
</details>
</div>
</body>
</html>