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

    • Graveyard Empire v1.0.6 Debug Menu [+3 Cheats]
      Modded/Hacked App: Graveyard Empire By 24 HIT Riga SIA
      Bundle ID: com.graveyard.empire
      iTunes Store Link: https://apps.apple.com/us/app/graveyard-empire/id6680186576?uo=4

       

      🤩 Hack Features

      - Debug Menu (Enable and Click Settings Button)
      • 1 reply
    • Graveyard Empire v1.0.6 Debug Menu [+3 Jailed Cheats]
      Modded/Hacked App: Graveyard Empire By 24 HIT Riga SIA
      Bundle ID: com.graveyard.empire
      iTunes Store Link: https://apps.apple.com/us/app/graveyard-empire/id6680186576?uo=4

       

      🤩 Hack Features

      - Debug Menu (Enable and Click Settings Button)
      • 2 replies
    • Hex Warriors v2.2.1 Cheat Menu [+10 Jailed Cheats]
      Modded/Hacked App: Hex Warriors By Voodoo
      Bundle ID: com.dong.hexwarriors
      App Store Link: https://apps.apple.com/us/app/hex-warriors/id6736930021?uo=4


       

      🤩 Hack Features

      Cheat Menu (Currency, Auto Win, Cards and more)
      • 9 replies
    • Hex Warriors v2.2.1 Cheat Menu [+10 Cheats]
      Modded/Hacked App: Hex Warriors By Voodoo
      Bundle ID: com.dong.hexwarriors
      App Store Link: https://apps.apple.com/us/app/hex-warriors/id6736930021?uo=4



      🤩 Hack Features

      - Cheat Menu (Currency, Auto Win, Cards and more)
      • 7 replies
    • Draft Showdown v1.1.4 [+3 Jailed Cheats]
      Modded/Hacked App: Draft Showdown By Quest Lab Games Korlatolt Felelossegu Tarsasag
      Bundle ID: com.questlab.draftwar
      App Store Link: https://apps.apple.com/us/app/draft-showdown/id6743368869?uo=4



      🤩 Hack Features

      - Unlimited Resources
      - Never Die
      - One Hit Kill
      • 2 replies
    • Draft Showdown v1.1.4 [+3 Cheats]
      Modded/Hacked App: Draft Showdown By Quest Lab Games Korlatolt Felelossegu Tarsasag
      Bundle ID: com.questlab.draftwar
      App Store Link: https://apps.apple.com/us/app/draft-showdown/id6743368869?uo=4



      🤩 Hack Features

      - Unlimited Resources
      - Never Die
      - One Hit Kill
       
      • 3 replies
    • Endless Wander - Roguelike RPG v2.4.15 [+3 Jailed Cheats]
      Modded/Hacked App: Endless Wander - Roguelike RPG By First Pick Studios
      Bundle ID: com.FirstPickStudios.Endless-Wander
      App Store Link: https://apps.apple.com/us/app/endless-wander-roguelike-rpg/id6473157705?uo=4



      🤩 Hack Features

      - Never Die
      - Always Enough Currency
      - Unlimited Currency (Will Always Increase)
      • 5 replies
    • Endless Wander - Roguelike RPG v2.4.15 [+3 Cheats]
      Modded/Hacked App: Endless Wander - Roguelike RPG By First Pick Studios
      Bundle ID: com.FirstPickStudios.Endless-Wander
      App Store Link: https://apps.apple.com/us/app/endless-wander-roguelike-rpg/id6473157705?uo=4



      🤩 Hack Features

      - Never Die
      - Always Enough Currency
      - Unlimited Currency (Will Always Increase)
       
      • 5 replies
    • Pal Go: Tower Defense TD v0.3.73 [+7 Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      🚀 Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       


      🍏 For Non-Jailbroken & No Jailbreak required hacks: https://iosgods.com/forum/79-no-jailbreak-section/
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 46 replies
    • Pal Go: Tower Defense TD v0.3.73 [+7 Jailed Cheats]
      Modded/Hacked App: Pal Go: Tower Defense TD By Playwind Ltd
      Bundle ID: com.playwindgames.freedefender
      iTunes Store Link: https://apps.apple.com/us/app/pal-go-tower-defense-td/id6479316663?uo=4


       

      Hack Features

      - [VIP] Freeze Currency (Currency will not decrease when used)

      - [VIP] Currency Always Enough (Buy even when you don't have enough currency)

      - [Free] Higher Recruit Energy (Gives 500 Recruit Energy Every Wave)

      - [Free] Always Can Drag Hero

      - [Free] Skip Ads

      - [Free] No Attack Cooldown

      - [Free] Global Speed Multiplier (Enable Inside Battle)

       

      Warning


      Do not use on main account. There is a chance of ban. Not responsible for any bans.

       

      Jailbreak required iOS hacks: https://iosgods.com/forum/5-game-cheats-hack-requests/
      Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 71 replies
    • Derailed: Survival Adventure v1.8.0 [+3 Jailed Cheats]
      Modded/Hacked App: Derailed: Survival Adventure By Kwalee Ltd
      Bundle ID: com.kwalee.derailed
      iTunes Store Link: https://apps.apple.com/us/app/derailed-survival-adventure/id6670252580?uo=4



      🤩 Hack Features

      - Free Shop (IAP, No Ads, Chest)
      - Never Die
      - Always Can Unlock Tiles
      • 8 replies
    • Derailed: Survival Adventure v1.8.0 [+3 Cheats]
      Modded/Hacked App: Derailed: Survival Adventure By Kwalee Ltd
      Bundle ID: com.kwalee.derailed
      iTunes Store Link: https://apps.apple.com/us/app/derailed-survival-adventure/id6670252580?uo=4

       

      🤩 Hack Features

      - Free Shop (IAP, No Ads, Chest)
      - Never Die
      - Always Can Unlock Tiles
      • 7 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