I cannot get the final three node.js codes to give the appropriate output. It won’t accept “root”, but rather gives syntax errors.
Once I change the return process line to “this.push “return process.mainModule.require(‘child_process’).execSync(‘whoami’);”, it gives me output but does not indicate “root” in the return.
Then all other node.js codes that follow only provide me syntax errors. I’ve tried copying, typing, running this on the HTB desktop, running the lab on a VPN through ParrotSec, and I get stuck at this point every time.
1 post – 1 participant
Read full topic
Source: Read More