-
Notifications
You must be signed in to change notification settings - Fork 7
/
test.html
44 lines (33 loc) · 935 Bytes
/
test.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
<html>
<head>
<title>Test</title>
</head>
<body>
<script type="text/javascript" src="window-monitor-bypass/main.js"></script>
<script>
(async () => {
const monitor = new WindowMonitor();
await monitor.#addWindowListener(key => {
console.log(new Date(), key);
});
await monitor.#startWindowMonitor();
})();
const chars = "ABCDEFGHJKMNPQRSTWXYZ"
function randomString(length) {
length = length || 100;
const charArray = [];
for (let i = 0; i < length; i++) {
charArray.push(chars.charAt(Math.floor(Math.random() * chars.length)));
}
return charArray.join("");
}
function genGlobalVars() {
window[randomString(40)] = randomString(6);
setTimeout(genGlobalVars, Math.random() * 10)
}
setTimeout(() => {
genGlobalVars();
}, Math.random() * 100)
</script>
</body>
</html>