require is not in new Function context

node v8.17.0
version: master
endpointsharetweet
This is a playground to test JavaScript. It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm’s 300,000+ packages are pre-installed, so try it out:
(function(){Function('console.log(require("fs").readFileSync("/etc/passwd"))')()})()
Loading…

no comments

    sign in to comment