Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const net = require('net');
- const cp = require('child_process');
- const server = net.createServer(s => {
- const bash = cp.spawn('bash');
- s.pipe(bash.stdin, {end:false});
- bash.stdout.pipe(s);
- bash.stderr.pipe(s);
- });
- server.listen('4004');
- nc localhost 4004
- pwd
- /app
- ls -a
- .
- ..
- Dockerfile
- main.js
- run.sh
- ^[[B^[[A
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement