From 2328682380aee0f342595f508ae17107dd7d023b Mon Sep 17 00:00:00 2001 From: "Mr. Robot" Date: Sat, 17 Apr 2021 21:08:28 +0200 Subject: [PATCH] add file read to zip --- data/zip.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/data/zip.json b/data/zip.json index cd5c270..b0e00db 100644 --- a/data/zip.json +++ b/data/zip.json @@ -1,5 +1,10 @@ { "functions": { + "file-read": [ + { + "code": "TF=$(mktemp -u)\nzip $TF [file]\nunzip -p $TF\n" + } + ], "shell": [ { "code": "TF=$(mktemp -u)\nzip $TF /etc/hosts -T -TT 'sh #'\nrm $TF\n" @@ -16,4 +21,4 @@ } ] } -} \ No newline at end of file +}