Jump to content

5 posts in this topic

Recommended Posts

Updated (edited)

Note: This tutorial was created by xiaobaiyey and written in chinese. This tutorial is poorly translated from Google Translation but i have fixed some grammar to make it easier to understand.

 
reviously I read an article by hook decrypting the encrypted dll Unity3D, recently new to dynamic, so they can try the next through IDA, the same as the shelling, dump the decrypted dll file, try the next, it really can, in here to share under
 
Requirements:
Tools: ida6.6 millet 2s
Game: Monthly Dragon knife (just find a game)
Enable USB-debugging in Developer Options
 
Open lib in IDA:
Unzip lib folder from the APK, drag the file libmono.so to IDA
Several functions mainly in the upper and lower breakpoint (refer mono source )

mono_image_open_from_data_full
mono_image_open_from_data
mono_image_open_from_data_with_name

 
In a decryption process can about these function
 
View the final in front of a function call or mono_image_open_from_data_with_name,
 
Enable Developer Options:
If Developer Option does not show in settings, follow the steps below.
1. Open Settings > About
2. Then tap “Build number” seven times to enable Developer options....
3. Go back to Settings menu and now you'll be able to see “Developer options” there.
4. Tap it and turn on USB Debugging
 
Dynamic debugging:
If the app has anti-debugging, you need to skip meals to debug, the following brief dynamic debugging Preparations (there are many online tutorials dynamic debugging)
 
Get android_server file from IDA PRO 6.6\ida66\dbgsrv or download the file HERE!
 
Push android_server file to the phone
 
1:

adb push android_server /data/local/tmp/ 

2:

adb shell

3:

cd /data/data/tmp/ 

4:

chmod 777 android_server

5:

./android_server 

Port Forwarding:
 

adb forward tcp:23946 tcp:23946

 
Debug startup app:
 

adb shell am start -D -n com.huiguan.qinglong.taiqi.dl/com.huiguan.qlyyd.UnityPlayerNativeActivity

 
Check the app's PID:
 
1.

adb shell 

2.

ps | grep dl

 
Record the PID and Forwarding (pid can be seen in the ida)

adb forward tcp:8700 jdwp:PID

Setting ida (the main settings hostname: 127.0.0.1) and open the attach process (wait for the program to automatically break live, live off later)
 
Run app (in the f9 at ifa)
This time in the cmd window run jdb debugger:
 

jdb -connect com.sun.jdi.SocketAttach:hostname=127.0.0.1,port=8700 

This time can be debugged
Run app will break on the linker
 
NQa1Qvs.png
 
Then if the app is no anti-molestation: running directly f9
This window appears: same point
 
LJ0ND9m.png
 
Wait a moment, will end on Linker , directly connected to f9 op row
If this window appears, select "yes (pass to app)" without waiting
 
O32G2yG.png
 
Many may appear behind all this window select yes and then run f9
Finally broken in the mono_image_open_from_data_with_name, method
Loading is not the first time we want to skip dll
 
9UOufTB.png
 
If you can not read f5 look at the source code, source code demonstrate this direct f5, where he rewrote momo source

int __fastcall mono_image_open_from_data_with_name (int a1, char * haystack, int a3, int a4, char a5, char * haystacka)

 
Several key parameters

// NT A1 read dll file offset address
// Char * haystack, DLL file size
// Char * haystacka , file name

 
9MBWsmY.png
 
This time following the R1 register to see the encrypted DLL file address, indicating the DLL has not yet begun to decrypt, decryption may later. And laid down the road to change a single note of each register after a simple loop
 
The dll decrypted
This time it decrypted DLL in memory,
 
sJ21pCZ.png
 
This time it can have a dump,
 
Check Register Window: Find R6 and R11
The entire file offset start R6 = 7B95304C
End offset address R6 = R11 7B95304C + 3AF200 = 7BD0224C
 
Use; dump dex scripts
 

auto fp, dexAddress;
fp = fopen ( "D:\\Test.dll", "wb");
for (dexAddress = 0x7B95304C; dexAddress < 0x7BD0224C; dexAddress ++)
fputc (Byte(dexAddress), FP);

 
Under run on ok
Decryption out the effect,
 
Attach the original dll and decrypted dll
 
Credit:
xiaobaiyey

Updated by evildog1
  • Like 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

    • Knights of Pen and Paper 3 v1.4.1 [+5 Cheats]
      Modded/Hacked App: Knights of Pen and Paper 3 By Northica Oy
      Bundle ID: com.northicagames.kopp3
      App Store Link: https://apps.apple.com/us/app/knights-of-pen-and-paper-3/id6462194230?uo=4



      🤩 Hack Features

      - High Gold Gain (Enable and Win Fight)
      - Always Can Claim Achievements
      - Auto Win (Enable inside battle)
      - Level Up Characters (Enable and your heroes levels up)
      - Max Level Equipments (Enable and all equipments will be max level)

      • 0 replies
    • Knights of Pen and Paper 3 v1.4.1 [+5 Jailed Cheats]
      Modded/Hacked App: Knights of Pen and Paper 3 By Northica Oy
      Bundle ID: com.northicagames.kopp3
      App Store Link: https://apps.apple.com/us/app/knights-of-pen-and-paper-3/id6462194230?uo=4



      🤩 Hack Features

      - High Gold Gain (Enable and Win Fight)
      - Always Can Claim Achievements
      - Auto Win (Enable inside battle)
      - Level Up Characters (Enable and your heroes levels up)
      - Max Level Equipments (Enable and all equipments will be max level)

      • 0 replies
    • Eternium Cheats v1.34.12 +11
      Modded/Hacked App: Eternium By Making Fun, Inc.
      Bundle ID: com.makingfun.mageandminions
      iTunes Store Link: https://apps.apple.com/us/app/eternium/id579931356?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

      - 5K Gems When Completed Stage
      - Infinite Gold
      - Infinite Cosmetic
      - Infinite Yellow Stone
      - Multiply Attack (Linked with Enemy)
      - No Skills Cooldown
      - No Consumable Cooldown
      - Multiply Attack Speed
      - Instant Regen Health
      - Always Crit
      - Material Drops (When you killed an Enemy it will drop materials for crafts)



      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/194526-eternium-cheats-v13355-6/
        • Informative
        • Winner
        • Like
      • 27 replies
    • June’s Journey: Hidden Objects v3.34.4 Jailed Cheats +2
      Modded/Hacked App: June’s Journey: Hidden Objects By wooga gmbh
      Bundle ID: net.wooga.junes-journey-hidden-object-mystery-game
      iTunes Store Link: https://apps.apple.com/us/app/junes-journey-hidden-objects/id1200391796?uo=4


      Hack Features:
      - Infinite Currencies
      - Instant Hint


      iOS Hack Download IPA Link: https://iosgods.com/topic/176104-june%E2%80%99s-journey-hidden-objects-v2946-jailed-cheats-2/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 42 replies
    • Township: Farm & City Building v27.0.1 Jailed Cheats +2
      Modded/Hacked App: Township by PLR Worldwide Sales Limited
      Bundle ID: com.playrix.township-ios
      iTunes Store Link: https://apps.apple.com/us/app/township/id638689075?uo=4&at=1010lce4


      Hack Features:
      - Freeze Currencies

      EDIT: Please be aware that this maybe cause your account banned, please use with caution and don’t abuse


      iOS Hack Download Link: https://iosgods.com/topic/116584-arm64-township-farm-city-building-v852-jailed-cheats-2/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,671 replies
    • My Cafe — Restaurant game Cheats v2025050.0.733 +3
      Modded/Hacked App: My Cafe — Restaurant Game By Melsoft
      Bundle ID: com.Melesta.MyCafe
      iTunes Store Link: https://apps.apple.com/us/app/my-cafe-restaurant-game/id1068204657?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

      - Increase Game Speed
      - No Timer to Buy Energy
      - Custom Dice Value


      Notes:
      - DO NOT BUY VIP FOR OTHER FEATURES, IT HAS BEEN PATCHED AND NO LONGER WORK

       

      Non-Jailbroken Hack: https://iosgods.com/topic/134272-my-cafe-%E2%80%94-restaurant-game-v20250205684-3-cheats/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/130634-my-cafe-%E2%80%94-restaurant-game-cheats-v20250300691-3/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 655 replies
    • RollerCoaster Tycoon Touch Cheats v3.43.0 +5
      Modded/Hacked App: RollerCoaster Tycoon® Touch™ By Atari, Interactive
      Bundle ID: com.atari.mobile.rctempire
      iTunes Store Link: https://apps.apple.com/us/app/rollercoaster-tycoon-touch/id1164507836?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

      - Infinite Currencies
      - Instant Max Level (Complete some task - Only use when you finished Tutorial and get to Level 8 at least)
      - VIP Member
      - Card only need 1 to be upgraded

       

      Non-Jailbroken Hack: https://iosgods.com/topic/74948-rollercoaster-tycoon-touch-v3413-jailed-cheats-4/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/73710-rollercoaster-tycoon-touch-cheats-v3420-5/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,107 replies
    • Dragons & Diamonds v2.0.60 [ +9 Jailed ] Auto Win
      Modded/Hacked App: Dragons & Diamonds By Kiloo
      Bundle ID: com.kiloo.dragonsanddiamonds
      iTunes Store Link: https://apps.apple.com/us/app/dragons-diamonds/id1223359380?uo=4

      Hack Features:

      - Gems

      - Gold

      - Energy

      - Battle Cost 0

      - Play Any LvL

      - HP [ Hit Enemy ]

      - DMG

      - Auto Win [ Just One Hit ]

      - Enemy Freeze


      Jailbreak required hack(s): https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Haha
        • Winner
        • Like
      • 9 replies
    • Dragons & Diamonds v2.0.60 [ +9 Cheats ] Auto Win
      Modded/Hacked App: Dragons & Diamonds By Kiloo
      Bundle ID: com.kiloo.dragonsanddiamonds
      iTunes Store Link: https://apps.apple.com/us/app/dragons-diamonds/id1223359380?uo=4


      Hack Features:
      - Gems

      - Gold

      - Energy

      - Battle Cost 0

      - Play Any LvL

      - HP [ Hit Enemy ]

      - DMG

      - Auto Win [ Just One Hit ]

      - Enemy Freeze


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 8 replies
    • Rumble Heroes : Adventure RPG Cheats v2.2.063 +4
      Modded/Hacked App: Rumble Heroes : Adventure RPG By playhard Inc.,
      Bundle ID: com.playhardlab.heroes
      iTunes Store Link: https://apps.apple.com/us/app/rumble-heroes-adventure-rpg/id6443603223?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Always Drop x5 Loot
      - Freeze Currencies


      DO NOT BUY VIP FOR JUST THIS CHEAT. REMOVE ANY JB BYPASS FOR THE GAME


      iOS Hack Download Link: https://iosgods.com/topic/186304-rumble-heroes-adventure-rpg-cheats-v20091-4/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 123 replies
    • Subway Surfers Cheats v3.45.2 +5
      Modded/Hacked App: Subway Surfers By Sybo Games ApS
      Bundle ID: com.kiloo.subwaysurfers
      iTunes Store Link: https://apps.apple.com/us/app/subway-surfers/id512939461?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

      - Free Store (not Free iAP)
      - Free iAP (ViP Only)
      - Unlock Characters Outfit
      - Custom Jump Height
      - No Clip (To end level swipe to left til you get dizzy, swipe again and you will lose)

       

      Non-Jailbroken Hack: https://iosgods.com/topic/119795-subway-surfers-v3425-jailed-cheats-5/

       

      ⬇️ iOS Hack Download Link: https://iosgods.com/topic/119793-subway-surfers-cheats-v3430-5/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 2,310 replies
    • Barbie Dreamhouse Adventures Cheats v2025.3.0 +1
      Modded/Hacked App: Barbie Dreamhouse Adventures By Budge Studios
      Bundle ID: com.budgestudios.BarbieDreamhouse
      iTunes Store Link: https://apps.apple.com/us/app/barbie-dreamhouse-adventures/id1296796112?uo=4


      Hack Features:
      - PREMIUM


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/150378-barbie-dreamhouse-adventures-v202180-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/150377-barbie-dreamhouse-adventures-cheats-v202180-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 74 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