Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

discompiler custom luac file [xyq.163.com/htb ???? LuaQ]

Featured Replies

  • Author
  • Localization

huhuang03, posted Mon May 28, 2018 2:16 pm (35353)


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.
  • Author
  • Localization

aluigi, posted Tue May 29, 2018 7:44 am (35375)


Name of the game?
  • Author
  • Localization

huhuang03, posted Wed May 30, 2018 1:43 am (35393)


aluigi wrote:
Name of the game?

The name is ????
  • Author
  • Localization

aluigi, posted Wed May 30, 2018 9:01 pm (35424)


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.
  • Author
  • Localization

huhuang03, posted Sat Jun 02, 2018 2:12 pm (35514)


I have already solved this mistery.
Just use luadec to decomplier the luac file. Thank you!
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.