bananabr / ulua

A python script to apply a known plain text attack to Lua 5.1 bytecode files obfuscated with instruction swapping.
GNU General Public License v3.0
12 stars 1 forks source link

Cannot find ref files. #2

Closed b4sh5i closed 3 years ago

b4sh5i commented 3 years ago

I saw that your blog. I need to put the lua binary in the ref directory using luci(https://github.com/openwrt/luci) . but i dont understand how can make lua binary.. can i help you?

b4sh5i commented 3 years ago
mkdir ./sample/; find ./squashfs-root/usr/lib/lua/luci/ -iname “*.lua” -exec cp {} ./sample/ \;
mkdir ./ref/; find openwrt-luci/libs/ -iname “*.lua” -exec bash -c ‘luac -o ./ref/`basename {}` {}’ \;

can not check this point xD sry

bananabr commented 3 years ago

Glad you figure that out =)