/prebuilt-openwrt-luadec

Dockerized luadec for OpenWRT & prebuilt image.

Primary LanguageDockerfileMIT LicenseMIT

Prebuilt OpenWRT luadec

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.

Usage

Pull the image

docker pull lebr0nli/openwrt-luadec

Run

# 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

Build locally

git clone https://github.com/lebr0nli/prebuilt-openwrt-luadec.git
cd prebuilt-openwrt-luadec
docker build -t openwrt-luadec .

Credits

TODO

  • Support more Lua versions