-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·57 lines (55 loc) · 1.79 KB
/
index.html
File metadata and controls
executable file
·57 lines (55 loc) · 1.79 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script type="text/javascript" src="utils.js"></script>
<script type="text/javascript" src="helper.js"></script>
<script type="text/javascript" src="int64.js"></script>
<script type="text/javascript" src="stages.js"></script>
<script type="text/javascript" src="offsets.js"></script>
<script type="text/javascript" src="pwn.js"></script>
<script>
var loc = window.location;
var wsProtocol = loc.protocol === 'https:' ? 'wss:' : 'ws:';
var wsURL = wsProtocol + '//' + loc.host + '/WebSocket';
try {
var ws = new WebSocket(wsURL);
ws.onopen = function() {
ws.send("totally-not-spyware-v2");
};
} catch (error) {
void(0);
}
</script>
</head>
<body>
<p id="log">
</p>
<script>
window.onerror = function(message, source, lineno, colno, error) {
try {
let ErrorName = error.name;
} catch (ee) {
document.getElementById("log").innerHTML += "<h1 style='color:red'>This browser is not supported!</h1>";
return true;
}
if ('InvalidStateError' == error.name) {
location.reload();
} else if ('TypeError' == error.name) {
location.reload();
} else {
document.getElementById("log").innerHTML += "<h1 style='color:red'>"+message+" @ "+lineno+"</h1>";
try {
ws.send(""+message+" @ "+lineno);
} catch (error) {
void(0);
}
}
return true;
};
</script>
<button onclick="pwn();">pwn</button>
</body>
</html>