Jump to content

8 posts in this topic

Recommended Posts

Posted (edited)

Hi masters,

I am quite new to this site and I am learning a new way to mod Android games, which is called Hooking functions (I am not sure if I call it right).

As I read the instruction in this GitHub project, at the Creating the libhook.so step (step 2 - Inside "hook.cpp", you'll write your hooks.), I just don't know how to write it (I am completely new to this). I have searched many websites to find a clear instruction for this but there is no one.

So now I am here to ask for your help.

Could anyone please give a sample hook (on Android, of course) when I write in the hook.cpp? Or a screenshot is also pretty good!

For example, in the picture below, I want to GetMoneyTotal (void) at offset 000BBFE8, then what should I write the code?

spacer.png

My English is bad and I don't know if I ask a properly question. I just want to learn new things from this heaven of moddings.

It would be great if any one can help. I am greatful about that.

Hope that @DADi would have a look at this thread and help.

Thanks in advance!

Updated by CeeCeeCee
Posted
1 hour ago, busmanl30 said:

Use MsFindSymbol for that, that game looks like anflex like game on iOS, Shmoo made a tut called Mshook new way

 

https://iosgods.com/topic/4295-tutorial-how-to-hack-with-mshook-new-way/

I have read that thread. But what I want is a complete sample hook to see how it looks like, or something else needed to make the mod works

Posted
17 minutes ago, CeeCeeCee said:

I have read that thread. But what I want is a complete sample hook to see how it looks like, or something else needed to make the mod works

That’s how you do it dude

  • Thanks 1
Posted
8 hours ago, busmanl30 said:

That’s how you do it dude

but I am using Android Hooking Template. is that the same as MSHook?

in MSHook, there is a tweak while the one I am using has a hook.cpp file and I need to write hooks in it

may you give me a sample hook?

Posted

If you need help with homework and a list of literature, but you don’t know where to get it, then check here the site thanks to which you can find all the answers to your questions.

Posted

  

ARM V7:


#include <jni.h>
//#include <android/log.h>
#include "libs/KittyMemory/MemoryPatch.h"
#include <libs/Substrate/CydiaSubstrate.h>
#include <memory.h>
#include <dlfcn.h>
#include <cstdio>
#include <cstdlib>
#import "include/Utils.h"

//Struct for patches
struct My_Patches {

    MemoryPatch AddCoin, AddDiamond;
	
} my_cool_Patches;

int (*old_coin)(void *instance);
int (coin)(void *instance) {
	if(instance!=NULL) {
		return 999999;
	}
	return old_coin(instance);
}

int (*old_diamond)(void *instance);
int diamond(void *instance) {
	if(instance!=NULL) {
		return 9999;
	}
	return old_diamond(instance);
}

__attribute__((constructor))
void libhook_main() {

    while(libBase == 0) { 
        libBase = get_libBase(libName); 
        sleep(1); 
    }   
	
	//KittyMemory patch example.
	my_cool_Patches.AddCoin = MemoryPatch(libName, 0xC9C448, "\x3f\x12\x04\xe3\x0f\x10\x40\xe3", 8);
	my_cool_Patches.AddCoin.Modify();
	
	my_cool_Patches.AddDiamond = MemoryPatch(libName, 0xC9C4F4, "\x0f\x17\x02\xe3", 4);
	my_cool_Patches.AddDiamond.Modify();
	
	//Usual Hook example.
	MSHookFunction((void *)getRealOffset(0xC9A8DC), (void *)coin, (void **) &old_coin);
    MSHookFunction((void *)getRealOffset(0xC9AB98), (void *)diamond, (void **) &old_diamond);
}

------------------------------------------------------------------------------------------------------------
And For ARM V8:

Just Edit This Code :

From This:

MSHookFunction((void *)getRealOffset(0xC9A8DC), (void *)coin, (void **) &old_coin);
MSHookFunction((void *)getRealOffset(0xC9AB98), (void *)diamond, (void **) &old_diamond);

To THis:

A64HookFunction((void *)getRealOffset(0xEE218DC), (void *)coin, (void **) &old_coin);
A64HookFunction((void *)getRealOffset(0xEE21A98), (void *)diamond, (void **) &old_diamond);


I Write For You which one Arm V7 & which one Arm V8
And They Are not have change just a latest lines
❤❤❤❤❤❤

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

    • The Office Match +6 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: The Office Match By East Side Games Inc
      Bundle ID: com.eastsidegames.theofficematch
      App Store Link: https://apps.apple.com/ph/app/the-office-match/id6754114961?uo=4

       

      🤩 Hack Features

      - Currency Multiplier
      - Freeze Currencies
      - Unlimited Currencies -> Will increase instead of decrease.
      - Freeze Lives
      - Freeze Moves
      - Auto Win
      -- No Ads
      • 0 replies
    • UnGodly [+5 Cheats]
      Modded/Hacked App: UnGodly By Azra Games Inc
      Bundle ID: com.azragames.ungodly
      App Store Link: https://apps.apple.com/us/app/ungodly/id6740617332?uo=4

       

       

      📌 Mod Requirements

      - Non-Jailbroken/Jailed or Jailbroken iPhone or iPad.
      - Sideloadly or alternatives.
      - Computer running Windows/macOS/Linux with iTunes installed.

       

      🤩 Hack Features

      - Godmode
      - One Hit Kill 
      - No Ability Cooldown
      - No Ability Cost
      - No Stagger
       

       

      ⬇️ iOS Hack Download IPA Link


      Hidden Content

      Download via the iOSGods App







       

      📖 PC Installation Instructions

      STEP 1: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see our iOSGods App IPA Download Tutorial which includes a video example.
      STEP 2: Download Sideloadly and install it on your Windows or Mac.
      STEP 3: Open Sideloadly on your computer, connect your iOS device, and wait until your device name appears in Sideloadly.
      STEP 4: Once your iDevice is recognized, drag the modded .IPA file you downloaded and drop it into the Sideloadly application.
      STEP 5: Enter your Apple Account email, then press “Start.” You’ll then be asked to enter your password. Go ahead and provide the required information.
      STEP 6: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 7: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles / VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 8: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - @KyosukeNanbu

      - @Batch

      📷 Cheat Video/Screenshots

      N/A
      • 6 replies
    • Dead Meridian v1.1.0 [ +4 Cheats ] Never Die
      Modded/Hacked App: Dead Meridian By OBX Software Corporation
      Bundle ID: com.obxsoftware.deadmeridian
      App Store Link: https://apps.apple.com/us/app/dead-meridian/id6824602528?uo=4

      🤩 Hack Features

      - Never Die
      - Damage Max
      - Infinite Ammo
      - Premium Unlocked
      • 0 replies
    • Dead Meridian v1.1.0 [ +4 Jailed ] Never Die
      Modded/Hacked App: Dead Meridian By OBX Software Corporation
      Bundle ID: com.obxsoftware.deadmeridian
      App Store Link: https://apps.apple.com/us/app/dead-meridian/id6824602528?uo=4

      🤩 Hack Features

      - Never Die
      - Damage Max
      - Infinite Ammo
      - Premium Unlocked
      • 0 replies
    • Twinguard Tower Defense TD v0.0.9 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Twinguard: Tower Defense TD By Tu Do Anh
      Bundle ID: com.130game.doubletd.twinhold
      App Store Link: https://apps.apple.com/us/app/twinguard-tower-defense-td/id6747331836?uo=4

      🤩 Hack Features

      - Unlimited Currency
      - Never Die
      - Max Damage
      • 0 replies
    • Twinguard Tower Defense TD v0.0.9 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Twinguard: Tower Defense TD By Tu Do Anh
      Bundle ID: com.130game.doubletd.twinhold
      App Store Link: https://apps.apple.com/us/app/twinguard-tower-defense-td/id6747331836?uo=4

      🤩 Hack Features

      - Unlimited Currency
      - Never Die
      - Max Damage
      • 0 replies
    • Heroic Castle Siege v1.0 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Heroic Castle Siege By Dats Games LTD
      Bundle ID: dats.games.heroiccastlesiege
      App Store Link: https://apps.apple.com/us/app/heroic-castle-siege/id6503430922?uo=4

      🤩 Hack Features

      - Max Gold
      - Max Crystals
      - Never Die
      - Max Damage
      • 0 replies
    • Heroic Castle Siege v1.0 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Heroic Castle Siege By Dats Games LTD
      Bundle ID: dats.games.heroiccastlesiege
      App Store Link: https://apps.apple.com/us/app/heroic-castle-siege/id6503430922?uo=4

      🤩 Hack Features

      - Max Gold
      - Max Crystals
      - Never Die
      - Max Damage
      • 0 replies
    • Harvester Survival Action RPG v2.5 [ +3 Cheats ] Currency Max
      Modded/Hacked App: Harvester Survival: Action RPG By tran anh tuan
      Bundle ID: com.Hyperfun.HarvesterActionRPG
      App Store Link: https://apps.apple.com/us/app/harvester-survival-action-rpg/id6760126953?uo=4

      🤩 Hack Features

      - Add Currency
      - Never Die
      - Damage Max
      • 0 replies
    • Harvester Survival Action RPG v2.5 [ +3 Jailed ] Currency Max
      Modded/Hacked App: Harvester Survival: Action RPG By tran anh tuan
      Bundle ID: com.Hyperfun.HarvesterActionRPG
      App Store Link: https://apps.apple.com/us/app/harvester-survival-action-rpg/id6760126953?uo=4

      🤩 Hack Features

      - Add Currency
      - Never Die
      - Damage Max
      • 0 replies
    • GunShooter Idle v1.3 [ +7 Cheats ] Currency Max
      Modded/Hacked App: GunShooter Idle By KRUSTY GAMES
      Bundle ID: com.krustygames.gunshooteridle
      App Store Link: https://apps.apple.com/us/app/gunshooter-idle/id6752290406?uo=4

      🤩 Hack Features

      - Add Gold
      - Add Gems
      - Add Money
      - Premium Ticket
      - Skip Ads
      - Never Die
      - Damage Max
      • 0 replies
    • GunShooter Idle v1.3 [ +7 Jailed ] Currency Max
      Modded/Hacked App: GunShooter Idle By KRUSTY GAMES
      Bundle ID: com.krustygames.gunshooteridle
      App Store Link: https://apps.apple.com/us/app/gunshooter-idle/id6752290406?uo=4

      🤩 Hack Features

      - Add Gold
      - Add Gems
      - Add Money
      - Premium Ticket
      - Skip Ads
      - Never Die
      - Damage Max
      • 0 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