Dockerized luadec for OpenWRT & prebuilt image.
Currently only support Lua 5.1.5.
Please note that there may be issues with decompiling complicated bytecode, and it is unclear whether this is a bug in luadec or not.
docker pull lebr0nli/openwrt-luadec
# Use luadec
alias luadec='docker run -v $(pwd):/work --rm -it lebr0nli/openwrt-luadec'
luadec ./path/to/xxx.lua
# You can also use lua/luac if you want
## Use luac
alias luac='docker run -v $(pwd):/work --rm -it --entrypoint=/usr/local/bin/luac lebr0nli/openwrt-luadec'
luac -l ./path/to/xxx.lua
## Use lua
alias lua='docker run -v $(pwd):/work --rm -it --entrypoint=/usr/local/bin/lua lebr0nli/openwrt-luadec'
lua ./path/to/xxx.lua
git clone https://github.com/lebr0nli/prebuilt-openwrt-luadec.git
cd prebuilt-openwrt-luadec
docker build -t openwrt-luadec .
- viruscamp/luadec
- https://vovohelo.medium.com/unscrambling-lua-7bccb3d5660
- https://blog.ihipop.com/2018/05/5110.html
- Support more Lua versions