This commit is contained in:
Boof 2023-04-17 11:36:59 +02:00 committed by GitHub
parent 6db1fe74d5
commit d7e5b33b9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,28 +1,35 @@
// This simple script fills the network tab with empty requests causing the page to crash if the user tries opening the inspect element tools. // This simple script fills the network tab with empty requests causing the page to crash if the user tries opening the inspect element tools.
// I wouldnt recommend using this during development unless you want to make it impossible to debug. // I wouldnt recommend using this during development unless you want to make it impossible to debug.
var enabled = false
// How to use
// 1. Import the code
// import{delay, spamnettab, clearconsole, disableKeys, debugProtection} from '/data/js/EXAMPLE'
// Replace the url at the end with the url to the script.
// When you have done that you can simply call the functions from another javascript file.
// Set delay to ms // Set delay to ms
function delay(milliseconds){ export function delay(milliseconds) {
return new Promise(resolve => { return new Promise(resolve => {
setTimeout(resolve, milliseconds); setTimeout(resolve, milliseconds);
}); });
} }
//Spam network tab script //Spam network tab script
async function spamnettab() { export async function spamnettab() {
while(enabled == true) { while (enabled == true) {
await delay(10); await delay(10);
fetch('https://hexahigh.github.io/cdn/other/main.mp3') fetch('https://hexahigh.github.io/cdn/other/main.mp3')
await delay(10); await delay(10);
fetch('https://hexahigh.github.io/cdn/other/main.png') fetch('https://hexahigh.github.io/cdn/other/main.png')
await delay(10); await delay(10);
fetch('https://hexahigh.github.io/cdn/other/main.mp4') fetch('https://hexahigh.github.io/cdn/other/main.mp4')
} }
} }
// Attempt to clear console // Attempt to clear console
async function clearconsole() { export async function clearconsole() {
while(true) { while (true) {
clear(); clear();
console.clear(); console.clear();
await delay(50) await delay(50)
@ -30,94 +37,98 @@ async function clearconsole() {
} }
// Disable keys // Disable keys
document.onkeydown = function (e) { export async function disableKeys() {
// disable f12 document.onkeydown = function (e) {
if (event.keyCode == 123) { // disable f12
return false; if (event.keyCode == 123) {
} return false;
// disable ctrl+shift+I }
if (e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)) { // disable ctrl+shift+I
return false; if (e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)) {
} return false;
// disable ctrl+shift+C }
if (e.ctrlKey && e.shiftKey && e.keyCode == 'C'.charCodeAt(0)) { // disable ctrl+shift+C
return false; if (e.ctrlKey && e.shiftKey && e.keyCode == 'C'.charCodeAt(0)) {
} return false;
// disable ctrl+shift+j }
if (e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)) { // disable ctrl+shift+j
return false; if (e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)) {
} return false;
// disable ctrl+shift+U }
if (e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)) { // disable ctrl+shift+U
return false; if (e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)) {
} return false;
}
}
} }
// debug protection (crashes the browser completely) export function debugProtection() {
(function () { // debug protection (crashes the browser completely)
var _0xf487d2 = function () { (function () {
var _0x32885d; var _0xf487d2 = function () {
try { var _0x32885d;
_0x32885d = Function('return\x20(function()\x20' + '{}.constructor(\x22return\x20this\x22)(\x20)' + ');')(); try {
} catch (_0x4bc38c) { _0x32885d = Function('return\x20(function()\x20' + '{}.constructor(\x22return\x20this\x22)(\x20)' + ');')();
_0x32885d = window; } catch (_0x4bc38c) {
} _0x32885d = window;
return _0x32885d; }
}; return _0x32885d;
var _0x265b5d = _0xf487d2(); };
_0x265b5d['setInterval'](_0x4921c6, 0x9c4); var _0x265b5d = _0xf487d2();
}()); _0x265b5d['setInterval'](_0x4921c6, 0x9c4);
var _0x36cd18 = (function () { }());
var _0xf92e75 = !![]; var _0x36cd18 = (function () {
return function (_0x2515bd, _0x525582) { var _0xf92e75 = !![];
var _0x492e4b = _0xf92e75 ? function () { return function (_0x2515bd, _0x525582) {
if (_0x525582) { var _0x492e4b = _0xf92e75 ? function () {
var _0x298729 = _0x525582['apply'](_0x2515bd, arguments); if (_0x525582) {
_0x525582 = null; var _0x298729 = _0x525582['apply'](_0x2515bd, arguments);
return _0x298729; _0x525582 = null;
return _0x298729;
}
} : function () {
};
_0xf92e75 = ![];
return _0x492e4b;
};
}());
(function () {
_0x36cd18(this, function () {
var _0x27cb8f = new RegExp('function\x20*\x5c(\x20*\x5c)');
var _0x40c5ef = new RegExp('\x5c+\x5c+\x20*(?:[a-zA-Z_$][0-9a-zA-Z_$]*)', 'i');
var _0xd25d0e = _0x4921c6('init');
if (!_0x27cb8f['test'](_0xd25d0e + 'chain') || !_0x40c5ef['test'](_0xd25d0e + 'input')) {
_0xd25d0e('0');
} else {
_0x4921c6();
}
})();
}());
function _0x4921c6(_0xc4e964) {
function _0x22f9e3(_0x6ac874) {
if (typeof _0x6ac874 === 'string') {
return function (_0x5381f4) {
}['constructor']('while\x20(true)\x20{}')['apply']('counter');
} else {
if (('' + _0x6ac874 / _0x6ac874)['length'] !== 0x1 || _0x6ac874 % 0x14 === 0x0) {
(function () {
return !![];
}['constructor']('debu' + 'gger')['call']('action'));
} else {
(function () {
return ![];
}['constructor']('debu' + 'gger')['apply']('stateObject'));
}
}
_0x22f9e3(++_0x6ac874);
} }
} : function () { try {
}; if (_0xc4e964) {
_0xf92e75 = ![]; return _0x22f9e3;
return _0x492e4b; } else {
}; _0x22f9e3(0x0);
}()); }
(function () { } catch (_0x114d7f) {
_0x36cd18(this, function () {
var _0x27cb8f = new RegExp('function\x20*\x5c(\x20*\x5c)');
var _0x40c5ef = new RegExp('\x5c+\x5c+\x20*(?:[a-zA-Z_$][0-9a-zA-Z_$]*)', 'i');
var _0xd25d0e = _0x4921c6('init');
if (!_0x27cb8f['test'](_0xd25d0e + 'chain') || !_0x40c5ef['test'](_0xd25d0e + 'input')) {
_0xd25d0e('0');
} else {
_0x4921c6();
}
})();
}());
function _0x4921c6(_0xc4e964) {
function _0x22f9e3(_0x6ac874) {
if (typeof _0x6ac874 === 'string') {
return function (_0x5381f4) {
}['constructor']('while\x20(true)\x20{}')['apply']('counter');
} else {
if (('' + _0x6ac874 / _0x6ac874)['length'] !== 0x1 || _0x6ac874 % 0x14 === 0x0) {
(function () {
return !![];
}['constructor']('debu' + 'gger')['call']('action'));
} else {
(function () {
return ![];
}['constructor']('debu' + 'gger')['apply']('stateObject'));
} }
} }
_0x22f9e3(++_0x6ac874);
}
try {
if (_0xc4e964) {
return _0x22f9e3;
} else {
_0x22f9e3(0x0);
}
} catch (_0x114d7f) {
}
} }