Jump to content

LF a confident guy with some revesrse knowledge for some help.


Go to solution Solved by n1ce0n3,

2 posts in this topic

Recommended Posts

Posted (edited)

Hi there, I'm currently trying to hack a pretty popular game (not going to tell the name of the game, though, it's pretty new and it has around a milion downloads on the play store :))

1. The game uses LUA, which is packed with some kind of a packer that renamed all the source files into its' hashed names. There's a ton of files like that.  

(pic1, pic2)

The progress I have so far. The game uses LuaJIT-2.1.0-beta3 on top of lua5.1. If I got it right the game uses a 64-bit compiler, since LUA's header is  1B 4C 4A 02 0A, when I compile lua script with a 32bit version of luajit - the header is  1B 4C 4A 02 02, the 64 bit version gives me  1B 4C 4A 02 0A.

Okay, so.

Each of these files you can see in a screenshot is not just a LUA script.

It is a lua script, which is compiled into LuaJIT with it's own name, after that that script gets zipped into a hashed name, but it keeps the lua extension. (e.g. config/Team.lua, becomes a ZIPPed archive "aa/aa70e1b8e38c140d2242f45bb58e2edf.lua".

On top of that the zip archive gets XXTEA encrypted.

Oh, forgot to mention that the game is built on cocos2d engine.

I've managed to recover all the source files (using luajit decompiler doesn't give you the exact sources, but at least it gives you a readable file, which you can look through and actually figure what's going on there.)

The problem is that if I modify a decompiled script - pack it the way it was originally packed, most of the times - it fails to work (I think it's because the decompiler doesn't give you the exact source code as it is originally written, since I've tried compilig for all of the architectures available, and most of the time - the game eitehr hangs when it gets to read that file - or doesn't load the section that I've modified like the file is corrupt or something)

The game loads cocos2dlua.so library during the startup - and then it unloads the library, so that it doesn't remain in the proccesses' memory.

As much as I've tried - I couldn't figure the addresses of the functions I wan.

Also, the library has no exports, exports tab in IDA have a single entry, which is ".init_proc".

I've located the LUA functions' names in IDA, but since I'm not super confident with IDA, I cannot figure how do I either hook any of these, or how to get their address.

They are in the symbols table, but yet again, I have no idea how I can reach them. (pic)

I've hooked fopen, fred, fwrite, fgets, fread and most of the other relevant native functions, but the most I could've gotten was the file name that gets loaded.

TL:DR

I've decompiled all of the games' sources (over 10k LUA files), and the only thing that is left to do is to somehow execute luaL_loadstring or luaL_loadfile on my own.

I've spent quite some time on that and honestly I am out of ideas can I get what I'm trying to.

I even tried pattern scanning the binary and all its' libraries to get either of the functions, basically, any lua function - had no success so far.

 

I'll really appreciate any help I can get at this point.

Feel free to reach me out messages so then we can get in touch via discord or any way you'll prefer. Thanks in advance.

The game's binary is actually a "split installer" as they call it, it has both ARM and x86 libraries within it's content (even every lua script has another version of itself for another architecture). That prevents me from loading the binary manually into the process , since it gives me an error:

Error: dlopen failed: "/data/local/tmp/libcocos2dlua.so" has unexpected e_machine: 183 (EM_AARCH64)

Updated by n1ce0n3
  • Informative 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Hill Climb Racing 3 +1++ Mod [ Freeze Currencies ]
      Mod APK Game Name: Hill Climb Racing 3 By Fingersoft
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.fingersoft.hillclimbracing3

       

      🤩 Hack Features

      - Freeze Currencies
        • Winner
      • 1 reply
    • Coin Summoner: Coin Pusher RPG +3++ Mods [ Unlimited Everything ]
      Mod APK Game Name: Coin Summoner: Coin Pusher RPG By POMENEST STUDIO
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.pomenest.coinsummoner

       

      🤩 Hack Features

      - Unlimited Coins -> Will increase instead of decrease.
      - Unlimited Gems -> Will increase instead of decrease.
      - Unlimited Items -> Will increase instead of decrease.
      • 0 replies
    • Coin Summoner: Coin Pusher RPG +3++ Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: Coin Summoner: Coin Pusher RPG By POMENEST STUDIO
      Bundle ID: com.pomenest.coinsummoner
      App Store Link: https://apps.apple.com/us/app/coin-summoner-coin-pusher-rpg/id6762540963?uo=4

       


      🤩 Hack Features

      - Unlimited Coins -> Will increase instead of decrease.
      - Unlimited Gems -> Will increase instead of decrease.
      - Unlimited Items -> Will increase instead of decrease.
      • 2 replies
    • My Sticker Room - Decor Game v1.4.2 [ +3 Cheats ] Currency Max
      Modded/Hacked App: My Sticker Room - Decor Game By SayGames LTD
      Bundle ID: com.playstrom.my.sticker.room
      App Store Link: https://apps.apple.com/us/app/my-sticker-room-decor-game/id6743738094?uo=4

      🤩 Hack Features

      - Auto ADS NO
      - Unlimited Gems / Use & Earn
      - Unlimited Coins / Use & Earn
      - Unlimited Skip Ticker / Use & Earn
      • 0 replies
    • My Sticker Room - Decor Game v1.4.2 [ +3 Jailed ] Currency Max
      Modded/Hacked App: My Sticker Room - Decor Game By SayGames LTD
      Bundle ID: com.playstrom.my.sticker.room
      App Store Link: https://apps.apple.com/us/app/my-sticker-room-decor-game/id6743738094?uo=4

      🤩 Hack Features

      - Auto ADS NO
      - Unlimited Gems / Use & Earn
      - Unlimited Coins / Use & Earn
      - Unlimited Skip Ticker / Use & Earn
      • 1 reply
    • Arrows – Puzzle Escape v0.18.0 [ +1 APK MOD ] Lives Max
      Mod APK Game Name: Arrows – Puzzle Escape
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.ecffri.arrows&hl=en

       

      🤩 Hack Features

      Pre Activated Just Login
      - Max Lives

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - IK_IK

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
        • Like
      • 1 reply
    • Arrows – Puzzle Escape v0.18.1 [ +1 Cheats ] Lives Max
      Modded/Hacked App: Arrows – Puzzle Escape By Lessmore GmbH
      Bundle ID: com.ecffri.arrows
      App Store Link: https://apps.apple.com/us/app/arrows-puzzle-escape/id6748397500?uo=4

       

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Max Lives

       

      ⬇️ iOS Hack Download Link


      Hidden Content

      Download Hack







       

      📖 iOS Installation Instructions

      STEP 1: Download the .deb hack file from the link above. Use Safari, Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If needed, tap on the downloaded file again, then select ‘Normal Install’ from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. If it doesn’t install successfully, see the note below.
      STEP 5: Open the game, log in to your iOSGods account when asked, then toggle on the features you want and enjoy!

       

      NOTE: If you have any questions or problems, read our Jailbreak iOS Hack Troubleshooting & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - IK_IK

       

      📷 Cheat Video/Screenshots

      N/A

       

      More iOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.

      Modded Android APKs
      Need modded apps or games for Android? Check out the latest custom APK mods, cheats & more in our Android Section.
      • 0 replies
    • Arrows – Puzzle Escape v0.18.1 [ +1 Jailed ] Lives Max
      Modded/Hacked App: Arrows – Puzzle Escape By Lessmore GmbH
      Bundle ID: com.ecffri.arrows
      App Store Link: https://apps.apple.com/us/app/arrows-puzzle-escape/id6748397500?uo=4

      🤩 Hack Features

      - Max Lives
      • 1 reply
    • Survival point: Epic Adventure +8 Cheats
      Mod APK Game Name: Survival point: Epic Adventure
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.teslagamesglobal.survivalist

       

      🤩 Hack Features

      - Damage Multiplier
      - Never Die
      - Unlimited Durability
      - Exp Multiplier
      - Unlimited Items From Mail
      - Gold Freeze
      - Freeze Skills
      - Can Craft Anything

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      Download via the iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
        • Winner
      • 0 replies
    • Blitz: Rise of Heroes +2 Cheats
      Mod APK Game Name: Blitz: Rise of Heroes By WhaleApp LTD
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.whaleapp.blitz.rise.heroes.idle.rpg.battle

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      Download via the iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
        • Winner
        • Like
      • 0 replies
    • Touhou LostWord +3 Cheats
      Mod APK Game Name: Touhou LostWord By GOOD SMILE COMPANY, INC.
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=jp.goodsmile.touhoulostwordglobal_android

       

      🤩 Hack Features

      - Damage Multiplier
      - Defense Multiplier
      - Never Die

       

      ⬇️ Android Mod APK Download Link


      Hidden Content

      Download via the iOSGods App for Android







       

      📖 Android Installation Instructions

      STEP 1: Download the modded APK file from the link above using your preferred Android browser or download manager.
      STEP 2: Once the download is complete, open your file manager and locate the downloaded .apk file (usually in the Downloads folder).
      STEP 3: Tap the APK file, then select Install. If prompted, enable Install from Unknown Sources in your device settings.
      STEP 3A: If the mod includes an OBB file, extract it if it’s inside an archive. Then move the folder to: /Android/obb/
      STEP 3B: If the mod includes a DATA file, extract it if it’s archived. Then move the folder to: /Android/data/
      STEP 4: Once installed, open the game and toggle your desired cheats & features through the APK mod menu. Enjoy!

       

      NOTE: If you have any questions or issues, read our Frequently Asked Questions topic. If you still need help, post your issue below and we’ll assist you as soon as possible. If the mod works for you, please share your feedback to help other members!

       

      🙌 Credits

      - AlyssaX64

       

      📷 Cheat Video/Screenshots

      N/A

       

       iOS & iPadOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.
        • Like
      • 0 replies
    • Slime Rancher +19 Jailed Cheats [ Currency, Spawn Items, No Clip + More! ]
      Modded/Hacked App: Slime Rancher By Playdigious
      Bundle ID: com.playdigious.slimerancher
      App Store Link: https://apps.apple.com/us/app/slime-rancher/id6758201392?uo=4

       


      🤩 Hack Features

      - Unlimited Health
      - Unlimited Energy
      - Set Money Amount
      - Add Money Amount
      - Set Keys Amount
      - Add Keys Amount
      - No Clip -> Fly and walk through walls.
      - Pause World Time
      - Sleepwalk
      - Set World Time Amount
      - Add World Minutes Amount
      - Spawn Item ID -> For a whole list of Item ID's, go here.
      - Spawn Item Count
      - Give Item to Inventory Slot
      - Refill Items
      - Unlock Upgrades
      - Reset Upgrades
      - Unlock Maps
      - Unlock Progress
        • Informative
        • Agree
        • Winner
        • Like
      • 11 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines