Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
non-reai
GitHub Repository: non-reai/Gimkit-Hacks
Path: blob/main/exploit-auto.js
2565 views
1
var socket = null;
2
var lastDataSent = null;
3
var using = null;
4
5
let iframe = document.createElement("iframe");
6
document.body.appendChild(iframe);
7
window.open = iframe.contentWindow.open.bind(window);
8
9
var hw = prompt("Paste url here", "https://www.gimkit.com/join");
10
11
let win = window.open(hw);
12
//alert(win);
13
const nativeSend = win.WebSocket.prototype.send;
14
win.WebSocket.prototype.send = function(data) {
15
nativeSend.call(this, data);
16
var enc = new TextDecoder("utf-8");
17
lastDataSent = data;
18
19
socket = this;
20
};
21
22
setInterval(() => {
23
win.document.onkeydown = (e) => {
24
if (e.repeat) {
25
return;
26
}
27
if (e.key == ";") {
28
using = lastDataSent;
29
win.alert("Saved.");
30
} else if (e.key == "u") {
31
setInterval(() => {
32
if (using) {
33
socket.send(using);
34
};
35
}, 900);
36
};
37
};
38
});
39
win.alert("Started.");
40
document.write("Keep this tab open. Close tab to stop hacks.");
41
42