mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2024-09-07 20:50:38 +02:00
Add LocalCommand option to SSH
SSH has a LocalCommand option that will run a given command on the client machine after a successful connection. It is generally disabled, but can be enabled on the command line with "-oPermitLocalCommand=yes". This is useful for bypassing restricted shells. Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
This commit is contained in:
parent
3d0d4a76d9
commit
cd05b58e70
@ -5,6 +5,8 @@ functions:
|
||||
code: ssh localhost $SHELL --noprofile --norc
|
||||
- description: Spawn interactive shell through ProxyCommand option.
|
||||
code: ssh -o ProxyCommand=';sh 0<&2 1>&2' x
|
||||
- description: Spawn interactive shell on client, requires a successful connection towards `host`.
|
||||
code: ssh -o PermitLocalCommand=yes -o LocalCommand=/bin/sh host
|
||||
file-upload:
|
||||
- description: Send local file to a SSH server.
|
||||
code: |
|
||||
|
Loading…
Reference in New Issue
Block a user