From 398cd7889a4e984bd2be7b66a6fcbb70aafe6a7a Mon Sep 17 00:00:00 2001 From: t0thkr1s Date: Sun, 15 Mar 2020 14:41:45 +0100 Subject: [PATCH] add data source for iconv --- data/iconv.json | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 data/iconv.json diff --git a/data/iconv.json b/data/iconv.json new file mode 100644 index 0000000..124f180 --- /dev/null +++ b/data/iconv.json @@ -0,0 +1,25 @@ +{ + "description": "The '8859_1' encoding is used as it accepts any single-byte sequence, thus it allows to read/write arbitrary files. Other encoding combinations may corrupt the result.", + "functions": { + "file-write": [ + { + "code": "echo \"DATA\" | iconv -f 8859_1 -t 8859_1 -o \"[file]\"\n" + } + ], + "file-read": [ + { + "code": "iconv -f 8859_1 -t 8859_1 \"[file]\"\n" + } + ], + "suid": [ + { + "code": "./iconv -f 8859_1 -t 8859_1 \"[file]\"\n" + } + ], + "sudo": [ + { + "code": "./iconv -f 8859_1 -t 8859_1 \"[file]\"\n" + } + ] + } +} \ No newline at end of file