Skip to content
viruscamp edited this page Feb 27, 2017 · 8 revisions
  • luadec

    • control flow analysis to get block and loop structures
      控制流分析出程序块与循环结构

    • data flow analysis to get register assignments and variables defines of stripped chunk
      数据流分析寄存器分配与变量定义

    • LUA_TSHRSTR and LUA_TLNGSTR for 5.2.1 and above except 5.2.0 , see issue#36
      5.2.1 及以上版本都有 LUA_TSHRSTR 和 LUA_TLNGSTR,参见 #36
      luadec/proto.c char* DecompileConstant(const Proto* f, int i)

    • add code to process some power patches
      增加一些奇怪的补丁开关
      http://lua-users.org/wiki/LuaPowerPatches
      新增的 opcode 依次往后排列,实际反编译时先用 luaopswap 处理
      add new opcodes after VARARG, must be processed by luaopswap

  • luaopswap
    swap opcode by a input defines
    按输入定义文件交换 opcode

    • print default luaopswap.txt to stdout
      打印出默认 luaopswap.txt 文件到 stdout 以方便修改
  • luareplace
    replace function defines in compiled lua file 函数替换

  • luajit2lua

    • LuaJIT-2.0 opcode to Lua-5.1 opcode
    • add some opcode from luajit instead of translating, like TDUP TSETM 加入某些 LuaJIT opcode 而不是翻译,比如 TDUP TSETM
  • luaconst

    • extract all contants to a txt file from luac file
      提取 luac 中所有常数 (数字 字符串)
    • write back to luac file
      并可以修改后反写回去
    • some cmd args like encoding, only numbers, only strings, exclude identifies, exclude english
      参数/功能 输入输出编码,只提取数字,只提取字符串,排除标识符,排除纯英文
0	0	3.5
0	1	abc234\t
0_1	0	4
0_1_2	0	abc
Clone this wiki locally