Jump to content

[TUTORIAL] How To Hack Using Mobile Substrate (Method Hooking)


180 posts in this topic

Recommended Posts

Posted (edited)
UIAlertView *alert = [[UIAlertView alloc]
initWithTitle:@"Custom Title But Keep The Inverted Commas"
message:@"Same Situation Like The Title"
delegate:nil
cancelButtonTitle:@"This Can Be Thanks Or Dismiss"
otherButtonTitles:nil];
[alert show];
[alert release];
}
%end

Maybe this is easier to understand for you. Also remove all the comments '//'

Updated by castix
Posted (edited)

So because this tutorials is already awesome (big shoutout to evilg00d there) I will just add some notes

 

As he already mentioned in the main topic here, you can't override void but you can NULL them = disable them

- (void)enemiesShoots {    //This is the method that calls your opponents to shoot so if we disable this, they can't anymore
}

if you want to add this in a patcher, you can simply write it like this

- (void)enemyShoots {                              //Easy isn't it ?
   if(GetPrefBool(@"kEnemyShooting")) {
   return; 
   }
   return %orig;
   }

Moving on there are some more value classes, which can be modified

- (long long)Coins {    //This can obviously be treated like int
return 2222;
}
- (double)Coins {     //You can also see here that it can be overwritten really easy
return 2222;
}

Those are just a few more function methods , so if you find something like them in FLEX/Headers/Binaries you know what do do.

 

 

 

_____________________________________________________________________________________________________________________________________

 

 

Almost there, now i am getting

 

I told you to remove all backslashs.

Updated by castix
Posted

So because this tutorials is already awesome (big shoutout to evilg00d there) I will just add some notes

 

As he already mentioned in the main topic here, you can't override void but you can NULL them = disable them

- (void)enemiesShoots {    //This is the method that calls your opponents to shoot so if we disable this, they can't anymore
}

if you want to add this in a patcher, you can simply write it like this

- (void)enemyShoots {                              //Easy isn't it ?
   if(GetPrefBool(@"kEnemyShooting")) {
   return; 
   }
   return %orig;
   }

Moving on there are some more value classes, which can be modified

- (long long)Coins {    //This can obviously be treated like int
return 2222;
}
- (double)Coins {     //You can also see here that it can be overwritten really easy
return 2222;
}

Those are just a few more function methods , so if you find something like them in FLEX/Headers/Binaries you know what do do.

 

I told you to remove all backslashs.

:goodjob:

 

Do you want me to add them to the first post?

Posted

I think o see my problem. Are the // use to comment? I am a beginner sorry for the dump question. And do i have to keep the // and ". In the code?

Not necessarily. The // are simply comments made by the author which do not get executed when you compile the project but the // are for single line comments only.

Posted

:goodjob:

Do you want me to add them to the first post?

yes that would be nice of you

 

I think o see my problem. Are the // use to comment? I am a beginner sorry for the dump question. And do i have to keep the // and ". In the code?

 

 Yes you start comments in MS with that and yes you should remove them all especially between code lines.

Not necessarily. The // are simply comments made by the author which do not get executed when you compile the project but the // are for single line comments only.

They have to be removed, trust me.

Posted

yes that would be nice of you

 

 

 Yes you start comments in MS with that and yes you should remove them all especially between code lines.

 

They have to be removed, trust me.

Oh okay :3

 

I'll add it to the first post right now :)

Posted

Thanks :- i got it and also i couldnt copy/paste properly cuz i am using taptalk and it was adding or ignoring some characters :-)

501b937c8306868e17ea9a9ac46b320c.jpg

 

I am so happy this is the start of something big for me :-)

 

I like to see how things work and then play with them. :-) my next steps will convert some of my flex tweaks and them add preferences bundle(i hope the i have the right idea of what preference bundles are, if they are the menus that add to setting and you can turn on/off the tweak k got it right lol) :-)

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

    • City Of Survivors v1.5.5 [+6 Jailed Cheats]
      Modded/Hacked App: City Of Survivors By Chengdu Pengfei Network Technology Co., Ltd.
      Bundle ID: com.gatherfun.cityofsurvivors
      App Store Link: https://apps.apple.com/us/app/city-of-survivors/id6743288723?uo=4



      Important


      Do not enable feautures on loading screen or do not keep enabled if you leave game.

      If you leave game without disabling features or enable on loading screen game will be crash.

       

      🤩 Hack Features

      - Add Gold
      - Add Diamond
      - Add Wood
      - Add Plank 
      - Add Explore Token
      - Add Skip Ads Coupon
        • Informative
        • Thanks
        • Winner
        • Like
      • 26 replies
    • City Of Survivors v1.5.5 [+6 Cheats]
      Modded/Hacked App: City Of Survivors By Chengdu Pengfei Network Technology Co., Ltd.
      Bundle ID: com.gatherfun.cityofsurvivors
      App Store Link: https://apps.apple.com/us/app/city-of-survivors/id6743288723?uo=4



      Important


      Do not enable feautures on loading screen or do not keep enabled if you leave game.

      If you leave game without disabling features or enable on loading screen game will be crash.

       

      🤩 Hack Features

      - Add Gold
      - Add Diamond
      - Add Wood
      - Add Plank 
      - Add Explore Token
      - Add Skip Ads Coupon
        • Informative
        • Winner
        • Like
      • 54 replies
    • Good Coffee, Great Coffee v1.6.1 +8 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Coffee, Great Coffee By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.coffeebusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-coffee-great-coffee/id1603584945?uo=4
       


      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gems
      - Unlimited Energy
      - Unlimited Brew Points
      - Unlimited Daily Rewards
      - All Decor Unlocked
      - All Equipment Unlocked
      - All Equipment Upgrades Unlocked
      - All Shop Upgrades Unlocked
      - Perfect Drinks
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 117 replies
    • Good Coffee, Great Coffee v1.6.1 +8 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Coffee, Great Coffee By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.coffeebusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-coffee-great-coffee/id1603584945?uo=4

       
       

      🤩 Hack Features

      - Unlimited Cash
      - Unlimited Gems
      - Unlimited Energy
      - Unlimited Brew Points
      - Unlimited Daily Rewards
      - All Decor Unlocked
      - All Equipment Unlocked
      - All Equipment Upgrades Unlocked
      - All Shop Upgrades Unlocked
      - Perfect Drinks
        • Informative
        • Agree
        • Haha
        • Winner
        • Like
      • 85 replies
    • Cozy Town: Build Explore Game v2.2.0 +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Cozy Town: Build Explore Game By Sparkling Society Games B.V.
      Bundle ID: com.sparklingsocietysims.cozytownbuildexploregame
      iTunes Store Link: https://apps.apple.com/us/app/cozy-town-build-explore-game/id6657973290?uo=4


      Hack Features:
      - Unlimited Currencies -> Spend some.


      Jailbreak required hack(s): [Mod Menu Hack] Cozy Town: Build Explore Game v1.3.3 +1++ Cheat [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Thanks
        • Like
      • 3 replies
    • Goblins Wood: Tycoon Idle Sim v2.53.1 +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Goblins Wood: Tycoon Idle Sim By ProGamesLab LTD
      Bundle ID: idle.goblins.wood.tycoon
      iTunes Store Link: https://apps.apple.com/us/app/goblins-wood-tycoon-idle-sim/id6446766326?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Jailbreak required hack(s): [Mod Menu Hack] Goblins Wood: Tycoon Idle Sim v2.42.0 +1++ Cheat [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Thanks
        • Winner
        • Like
      • 48 replies
    • Goblins Wood: Tycoon Idle Sim v2.53.1 +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Goblins Wood: Tycoon Idle Sim By ProGamesLab LTD
      Bundle ID: idle.goblins.wood.tycoon
      iTunes Store Link: https://apps.apple.com/us/app/goblins-wood-tycoon-idle-sim/id6446766326?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Goblins Wood: Tycoon Idle Sim v2.42.0 +1++ Jailed Cheat [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      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
      • 59 replies
    • Cozy Town: Build Explore Game v2.2.0 +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Cozy Town: Build Explore Game By Sparkling Society Games B.V.
      Bundle ID: com.sparklingsocietysims.cozytownbuildexploregame
      iTunes Store Link: https://apps.apple.com/us/app/cozy-town-build-explore-game/id6657973290?uo=4


      Hack Features:
      - Unlimited Currencies -> Spend some.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Cozy Town: Build Explore Game v1.3.3 +1++ Jailed Cheat [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Haha
        • Winner
        • Like
      • 3 replies
    • Royal Kingdom v22272 +4 Jailed Cheats [ Coins + More ]
      Modded/Hacked App: Royal Kingdom By Dream Games
      Bundle ID: com.dreamgames.royalkingdom
      iTunes Store Link: https://apps.apple.com/ph/app/royal-kingdom/id1606549505
       

      Hack Features:
      - Freeze Coins
      - Freeze Lives
      - Freeze Boosters
      - Freeze Moves


      Jailbreak required hack(s): [Mod Menu Hack] Royal Kingdom v3987 +4 Cheats [ Unlimited Coins ] - Free Jailbroken Cydia Cheats - iOSGods
      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
        • Haha
        • Thanks
        • Winner
        • Like
      • 156 replies
    • Royal Kingdom v22272 +4 Cheats [ Coins + More ]
      Modded/Hacked App: Royal Kingdom By Dream Games
      Bundle ID: com.dreamgames.royalkingdom
      iTunes Store Link: https://apps.apple.com/ph/app/royal-kingdom/id1606549505
       

      Hack Features:
      - Freeze Coins
      - Freeze Lives
      - Freeze Boosters
      - Freeze Moves


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Royal Kingdom v3987 +4 Jailed Cheats [ Unlimited Coins ] - Free Non-Jailbroken IPA Cheats - iOSGods
      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
        • Haha
        • Thanks
        • Winner
        • Like
      • 113 replies
    • Ghost Invasion: Idle Hunter v1.7.1 +5 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Ghost Invasion: Idle Hunter By Miniclip SA
      Bundle ID: com.miniclip.ghostinvasion
      App Store Link: https://apps.apple.com/us/app/ghost-invasion-idle-hunter/id6502696892?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Freeze Currencies
      - XP Multiplier
        • Agree
        • Winner
        • Like
      • 12 replies
    • Ghost Invasion: Idle Hunter v1.7.1 +5 Cheats [ Damage & Defence ]
      Modded/Hacked App: Ghost Invasion: Idle Hunter By Miniclip SA
      Bundle ID: com.miniclip.ghostinvasion
      App Store Link: https://apps.apple.com/us/app/ghost-invasion-idle-hunter/id6502696892?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Freeze Currencies
      - XP Multiplier
        • Agree
        • Winner
        • Like
      • 13 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