javascript-obfuscator
Version:
JavaScript obfuscator
18 lines (16 loc) • 572 B
text/typescript
/**
* @returns {string}
*/
export function DebuggerTemplate (): string {
return `
if (typeof counter === 'string') {
return (function (arg) {}.constructor('while (true) {}').apply('counter'));
} else {
if (('' + counter / counter)['length'] !== 1 || counter % 20 === 0) {
(function () {return true;}.constructor('debu' + 'gger').call('action'));
} else {
(function () {return false;}.constructor('debu' + 'gger').apply('stateObject'));
}
}
`;
}