From 1cf5c7a65c7cdf02eb803cf916de455459b078be Mon Sep 17 00:00:00 2001 From: t0thkr1s Date: Wed, 18 Mar 2020 10:49:56 +0100 Subject: [PATCH] add data source for shuf --- data/shuf.json | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/data/shuf.json b/data/shuf.json index 2202d5a..3f8ed65 100644 --- a/data/shuf.json +++ b/data/shuf.json @@ -1,17 +1,27 @@ { - "description": "The read file content is corrupted by adding a newline.", "functions": { + "file-read": [ + { + "description": "The read file content is corrupted by randomizing the order of NUL terminated strings.", + "code": "shuf -z \"[file]\"\n" + } + ], "file-write": [ { - "code": "shuf -e DATA -o [file]\n" + "description": "The written file content is corrupted by adding a newline.", + "code": "shuf -e DATA -o \"[file]\"\n" } ], "suid": [ { - "code": "./shuf -e DATA -o [file]\nsudo:\n" - }, + "description": "The written file content is corrupted by adding a newline.", + "code": "./shuf -e DATA -o \"[file]\"\n" + } + ], + "sudo": [ { - "code": "sudo shuf -e DATA -o [file]\n" + "description": "The written file content is corrupted by adding a newline.", + "code": "sudo shuf -e DATA -o \"[file]\"\n" } ] }