lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


All,

 

Pe-parser (pure Lua module) parses Windows executables [1] (Portable Executable format; .exe, .dll, etc) and extracts meta data from it. It fetches all imported dll names amongst a lot of other things. Most notably it has an `msvcrt` function that finds the windows runtime a binary was linked against.

 

Rock is available in the LuaRocks repo. Docs are in LDoc format in the repo on github [2]

 

It is far from complete, nor very well tested, but the basic necessity was to find ‘bitness’ (32/64) of an executable and the runtime linked against. Comments and additions are welcome.

 

Thijs

 

[1] there are other (non-Windows) platforms using the same PE/COFF format

[2] https://github.com/Tieske/pe-parser