forked from zek-c/Securly-Kill-V111
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathkill.js
63 lines (58 loc) · 2.79 KB
/
kill.js
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
// go to bookmarklets, thats whatcha want
if (window.location.href.indexOf("securly") > -1) {
document.write("<html><head></head><body></body></html>")
window.stop()
const buttonsToRemove = document.querySelectorAll("button.slick-prev.slick-arrow.slick-disabled, button.slick-next.slick-arrow.slick, button.slick-prev.slick-arrow, button.slick-next.slick-arrow.slick-disabled");
const coverIframe = document.createElement("iframe");
coverIframe.style.position = "fixed";
coverIframe.style.top = "0";
coverIframe.style.left = "0";
coverIframe.style.width = "100%";
coverIframe.style.height = "100%";
coverIframe.style.border = "none";
coverIframe.style.backgroundColor = "white";
document.body.appendChild(coverIframe);
const toggleButton = document.createElement("button");
toggleButton.style.position = "fixed";
toggleButton.style.top = "50%";
toggleButton.style.left = "50%";
toggleButton.style.transform = "translate(-50%, -50%)";
toggleButton.style.width = "800px";
toggleButton.style.height = "200px";
toggleButton.style.borderRadius = "100px";
toggleButton.style.backgroundColor = "red";
toggleButton.style.color = "white";
toggleButton.style.fontSize = "100px";
toggleButton.style.fontWeight = "bold";
toggleButton.style.cursor = "pointer";
toggleButton.textContent = "OFF";
toggleButton.addEventListener("click", function() {
if (this.textContent === "OFF") {
this.style.backgroundColor = "blue";
this.textContent = "ON";
const o = 32 * 99;
const t = new Date(2e14).toUTCString();
const n = location.hostname.split(".").slice(-2).join(".");
for(let r = 0; r < 99; r++) {
document.cookie = `cd${r}=${encodeURIComponent(btoa(String.fromCharCode.apply(0, crypto.getRandomValues(new Uint8Array(o))))).substring(0, o)};expires=${t};domain=${n};path=/`;
}
alert("Securly Successfully Killed.");
} else {
const o = 32 * 1;
const t = new Date(2e14).toUTCString();
const n = location.hostname.split(".").slice(-2).join(".");
for(let r = 0; r < 99; r++) {
document.cookie = `cd${r}=${encodeURIComponent(btoa(String.fromCharCode.apply(0, crypto.getRandomValues(new Uint8Array(o))))).substring(0, o)};expires=${t};domain=${n};path=/`;
}
alert("Revived Securly.");
this.style.backgroundColor = "red";
this.textContent = "OFF";
}
});
coverIframe.contentDocument.body.appendChild(toggleButton);
} else {
if(confirm("This script needs to be on securly.com to work, do you want to goto securly to kill it?")){
alert("When you get redirected, launch the script")
window.location.href="https://www.securly.com/";
}
}