Re: Decrypting Lua 5.0 Bytecode
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Decrypting Lua 5.0 Bytecode
- From: Kein-Hong Man <mkh@...>
- Date: 2006年3月04日 21:18:21 +0800
Alias Zero wrote:
C:\PSP\GTA\LUASCRIPTS\ChunkSpy-win32-bin-0.9.75円.0.2>chunkspy.exe DEFENDTHEBASE.
LUA.LC DEFENDTHEBASE.LUA.LC -o DEFENDTHEBASE.lst
ChunkSpy: A Lua 5.0.2 binary chunk disassembler
Version 0.9.7 (20050605) Copyright (c) 2004-2005 Kein-Hong Man
The COPYRIGHT file describes the conditions under which this
software may be distributed (basically a Lua 5-style license.)
* Run with option -h or --help for usage information
ChunkSpy:1127: mismatch in number size (needs 8 but read 4)
It means Lua_Number is probably an int or a float. By default,
ChunkSpy dies when the chunk header does not match that of the
host platform. However, look at the help options. Read the README
file too. The '--auto' option might work; ChunkSpy can decode
different Lua_Number types (but that has not been extensively
tested.)
Do note that ChunkSpy works only for standard 5.0.2 at the moment
(I am testing a 5.1 update) so if the format used in the files you
want to decode is non-standard, you will need to modify ChunkSpy
itself, i.e. you are on your own. If you are not familiar with how
binary chunks are put together, try reading:
ANoFrillsIntroToLua5VMInstructions.pdf
HTH,
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia