feicong / lua_re Goto Github PK
View Code? Open in Web Editor NEWreverse engineering for lua(lua/luac/luajit/lua_dec/lua_loader/lua_proc)
License: GNU Affero General Public License v3.0
reverse engineering for lua(lua/luac/luajit/lua_dec/lua_loader/lua_proc)
License: GNU Affero General Public License v3.0
C:\Program Files\IDA 7.0\loaders\luac_loader.py: Traceback (most recent call last):
File "C:/Program Files/IDA 7.0/loaders/luac_loader.py", line 526, in load_file
proto = Proto(li, global_header_size, "0") #function level 0
File "C:/Program Files/IDA 7.0/loaders/luac_loader.py", line 303, in init
self.constants = Constants(li, off)
File "C:/Program Files/IDA 7.0/loaders/luac_loader.py", line 139, in init
constant = ReadConstant(li, off)
File "C:/Program Files/IDA 7.0/loaders/luac_loader.py", line 125, in ReadConstant
constant = Constant(li, off)
File "C:/Program Files/IDA 7.0/loaders/luac_loader.py", line 87, in init
self.type = charAt(li, off)
File "C:/Program Files/IDA 7.0/loaders/luac_loader.py", line 359, in charAt
return struct.unpack('<c', s)[0]
error: unpack requires a string argument of length 1****
老哥,有没有luac解密的工具,我有KEY和SIGN了
1
您好,我拜读了您的大作,有一些疑问想跟您沟通一下。
我看到文中提到ProtoHeader的定义如下
typedef struct {
uint32 linedefined;
uint32 lastlinedefined;
uchar numparams;
uchar is_vararg;
uchar maxstacksize;
} ProtoHeader;
但是我看到lua5.1.5的代码中这部分代码是这样的
static void DumpFunction(const Proto* f, const TString* p, DumpState* D)
{
DumpString((f->source==p || D->strip) ? NULL : f->source,D);
DumpInt(f->linedefined,D);
DumpInt(f->lastlinedefined,D);
**DumpChar(f->nups,D);**
DumpChar(f->numparams,D);
DumpChar(f->is_vararg,D);
DumpChar(f->maxstacksize,D);
DumpCode(f,D);
DumpConstants(f,D);
DumpDebug(f,D);
}
我的疑问是nups是否在ProtoHeader中被遗漏了?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.