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.

Help with Lua compiled file

Featured Replies

  • Author
  • Localization

xored, posted Thu Dec 02, 2021 11:36 pm (67809)


Hi :)

So, I have a lua compiled file and I couldn't decompile it using LuaDec or another tool, all tools give me "bad header".
As I saw on HxD the header starts with "LuaQ" so it's a Lua 5.1 file.

This is the header:
1B = Escape
4C 75 61 = Lua signature "Lua"
51 = version (5.1)
00 = Format
01 = Endianness (Little endian)
04 04 04 04 00 = Size of types

I can't decompile this script and I don't know why.
I think quickbms can help me out with it, if someone can provide a quickbms script for this or can help out, I'll be really appreciated.

I'm attaching the file on this topic if someone needs it to analyse it.

Thanks in advance.
  • Author
  • Localization

atom0s, posted Fri Dec 03, 2021 1:55 am (67812)


The header looks fully in tact as-is. However, the byte code looks like it was probably altered. You'd need to reverse the target and check to see if they modified the order in which Lua is handling the byte code, as well as if they altered how the byte code is stored/interpreted.
  • Author
  • Localization

xored, posted Fri Dec 03, 2021 11:47 am (67828)


atom0s wrote:
The header looks fully in tact as-is. However, the byte code looks like it was probably altered. You'd need to reverse the target and check to see if they modified the order in which Lua is handling the byte code, as well as if they altered how the byte code is stored/interpreted.

Thanks! This will certainly help me to figure it out.
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.