ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Jun 19, 2018 12:21 pm

All times are UTC




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Mon May 28, 2018 2:16 pm 

Joined: Mon May 28, 2018 1:24 pm
Posts: 3
I have dump the luac file by hook
Code:
 luaL_loadbuffer.
in libgame.so.
But it's custom luac file, so I cant' discompile it to lua. Can you help me? And what's the book for analysis so file skill?

The name of game is 梦幻西游.

Updated on 2018-6-1:

I dump the wrong luac file which contains "REPLACEMENT CHARACTER". The right luac file is dump.zip. But I still can't decompiler it.


Last edited by huhuang03 on Fri Jun 01, 2018 2:00 am, edited 4 times in total.

Top
   
PostPosted: Tue May 29, 2018 7:44 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8291
Name of the game?


Top
   
PostPosted: Wed May 30, 2018 1:43 am 

Joined: Mon May 28, 2018 1:24 pm
Posts: 3
aluigi wrote:
Name of the game?

The name is 梦幻西游


Top
   
PostPosted: Wed May 30, 2018 9:01 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8291
I guess I solved the mistery.
For some unknown reasons these LUA files use the sequence of bytes 0xef 0xbf 0xbd at the place of the 0x00 byte, that sequence of 3 bytes is indeed often used as an unicode "REPLACEMENT CHARACTER"

Open one of these lua files with a hex editor and use the "Replace" feature for replacing all the occurrencies of these 3 bytes with the byte 0x00.
Save the file and try a decompiler like http://sourceforge.net/projects/unluac/files/ on it.


Top
   
PostPosted: Sat Jun 02, 2018 2:12 pm 

Joined: Mon May 28, 2018 1:24 pm
Posts: 3
I have already solved this mistery.
Just use luadec to decomplier the luac file. Thank you!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited