Jump to content

11 posts in this topic

Recommended Posts

Posted (edited)

Since it's been a while - I forgot how to actually code stuff, could you please tell me how do properly I implement that?

bool (*get_isEnemy)(void *instance) = (bool (*)(void *))getRealOffset(0x101FB0804); 

float (*old_getDamage)(void *e);
float getDamage(void *e){
bool enemy = get_isEnemy(e);
if (e && enemy == false) {
return 9999.0f;
}
return old_getDamage(e);
}
///

 

HOOK(0xaddress, old_getDamage, getDamage);

 

Currently that just crashes the game.

Updated by Laxus
Posted

Nothing wrong, if you are using unc0ver hooking may not work sometimes

Posted (edited)
6 minutes ago, Laxus said:

Nothing wrong, if you are using unc0ver hooking may not work sometimes

Thanks, I guess its' just the address being wrong then. 

I'm using oddysey tho

if I comment these out it works as intended 

https://codeshare.io/YLb90R

Updated by n1ce0n3
Posted

Try changing get_isenemy function pointer *instance to *e

Try changing if(e && enemy == false) to if(!enemy)

Posted
4 minutes ago, Laxus said:

Try changing get_isenemy function pointer *instance to *e

Try changing if(e && enemy == false) to if(!enemy)

I  tried (!enemy)  before adding (e && enemy == false), that crashed it too.

that actually was a bad address, I've checked this by changing both of the functions body to return old_get and it still crashed.

so I changed the addresses and it worked. (well it didn't work, but it didn't crash either)

Posted

Use something like Cr4shed to see exactly where it crashes. It's probably an issue with the function prototype or with the address itself. The NULL check should also be done before you call the actual function but eitherway the original function would get a NULL pointer so there's no reason to check.

Posted (edited)
2 minutes ago, bR34Kr said:

Use something like Cr4shed to see exactly where it crashes. It's probably an issue with the function prototype or with the address itself. The NULL check should also be done before you call the actual function but eitherway the original function would get a NULL pointer so there's no reason to check.

I have Crash Reporter which gives me a syslog of the crash, but I never even thought about checking it after a crash like this.

I don't think it will show anything relatively useful? Except for when the address is null?

Updated by n1ce0n3
Posted

It'll show you the tracelog which is pretty useful. You can try opening your binary in IDA afterwards and seeing exactly where the crash is unless you have debug info turned on.

Posted
1 minute ago, bR34Kr said:

It'll show you the tracelog which is pretty useful. You can try opening your binary in IDA afterwards and seeing exactly where the crash is unless you have debug info turned on.

Well, that actually makes some sense, I guess. Thanks for the tip.

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

    • Mob Control v2.89.4 +7 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mob Control By Voodoo
      Bundle ID: com.vincentb.MobControl
      iTunes Store Link: https://apps.apple.com/us/app/mob-control/id1562817072?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Skip'Its -> Earn or spend some.
      - Unlimited Stars -> Earn some.
      - Unlimited Bricks
      - Unlimited Earnt Bricks
      - Unlimited Cards -> Will increase instead of decrease.
      - No Card Requirement


      Jailbreak required hack(s): [Mod Menu Hack] Mob Control v2.78.0 +7 Cheats [ 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/
      • 224 replies
    • Mob Control v2.89.4 +7 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mob Control By Voodoo
      Bundle ID: com.vincentb.MobControl
      iTunes Store Link: https://apps.apple.com/us/app/mob-control/id1562817072?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Skip'Its -> Earn or spend some.
      - Unlimited Stars -> Earn some.
      - Unlimited Bricks
      - Unlimited Earnt Bricks
      - Unlimited Cards -> Will increase instead of decrease.
      - No Card Requirement


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Mob Control v2.78.0 +7 Jailed Cheats [ 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/
      • 128 replies
    • Grimguard Tactics: Fantasy RPG v1.14.0 +3 Jailed Cheats [ Auto Win ]
      Modded/Hacked App: Grimguard Tactics: Fantasy RPG By Outerdawn Limited
      Bundle ID: com.outerdawn.grimguard
      iTunes Store Link: https://apps.apple.com/us/app/grimguard-tactics-fantasy-rpg/id1496893856?uo=4


      Hack Features:
      - Auto Win
      - Unlimited Daily Rewards
      - No Stamina Cost


      Jailbreak required hack(s): [Mod Menu Hack] Grimguard Tactics: Fantasy RPG v1.1.10 +3 Cheats [ Auto Win ] - ViP 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/
      • 123 replies
    • Grimguard Tactics: Fantasy RPG v1.14.0 +3 Cheats [ Auto Win ]
      Modded/Hacked App: Grimguard Tactics: Fantasy RPG By Outerdawn Limited
      Bundle ID: com.outerdawn.grimguard
      iTunes Store Link: https://apps.apple.com/us/app/grimguard-tactics-fantasy-rpg/id1496893856?uo=4


      Hack Features:
      - Auto Win
      - Unlimited Daily Rewards
      - No Stamina Cost


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] Grimguard Tactics: Fantasy RPG v1.1.10 +3 Jailed Cheats [ Auto Win ] - ViP Non-Jailbroken Hacks & 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/
      • 96 replies
    • Modern Community v1.17004.194765 +1++ Jailed Cheat [ Unlimited Everything ]
      Modded/Hacked App: Modern Community By Magic Tavern, Inc.
      Bundle ID: com.sts.vision
      iTunes Store Link: https://apps.apple.com/us/app/modern-community/id6447748647?uo=4


      Hack Features:
      - Unlimited Everything


      Jailbreak required hack(s): [Mod Menu Hack] Modern Community v1.1008.81088 +1++ Cheat [ Unlimited Everything ] - ViP 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/
      • 102 replies
    • Modern Community v1.17004.194765 +1++ Cheat [ Unlimited Everything ]
      Modded/Hacked App: Modern Community By Magic Tavern, Inc.
      Bundle ID: com.sts.vision
      iTunes Store Link: https://apps.apple.com/us/app/modern-community/id6447748647?uo=4


      Hack Features:
      - Unlimited Everything


      Non-Jailbroken & No Jailbreak required hack(s): [No Jailbreak Required] Modern Community v1.1008.81088 +1++ Jailed Cheat [ Unlimited Everything ] - ViP Non-Jailbroken Hacks & 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/
      • 62 replies
    • MIST: Horror Idle Survival RPG v1.8.3 +4 Jailed Cheats [ Damage + More ]
      Modded/Hacked App: MIST: Horror Idle Survival RPG By Anton Nazarov
      Bundle ID: com.eg.mist.horror.idle.rpg
      iTunes Store Link: https://apps.apple.com/us/app/mist-horror-idle-survival-rpg/id6499312165?uo=4


      Hack Features:
      - God Mode
      - Damage Multiplier
      - Unlimited Resources/Currencies -> Will not decrease.
      - Unlock All Skill Slots -> Slots will cost nothing to unlock then after disable this feature to use the slots.


      Jailbreak required hack(s): [Mod Menu Hack] MIST: Horror Idle Survival RPG v1.2 +4 Cheats [ Damage Multiplier ] - 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/
      • 19 replies
    • MIST: Horror Idle Survival RPG v1.8.3 +4 Cheats [ Damage + More ]
      Modded/Hacked App: MIST: Horror Idle Survival RPG By Anton Nazarov
      Bundle ID: com.eg.mist.horror.idle.rpg
      iTunes Store Link: https://apps.apple.com/us/app/mist-horror-idle-survival-rpg/id6499312165?uo=4


      Hack Features:
      - God Mode
      - Damage Multiplier
      - Unlimited Resources/Currencies -> Will not decrease.
      - Unlock All Skill Slots -> Slots will cost nothing to unlock then after disable this feature to use the slots.


      Non-Jailbroken & No Jailbreak required hack(s): [IPA Mod Menu] MIST: Horror Idle Survival RPG v1.2 +4 Jailed Cheats [ Damage Multiplier ] - 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/
      • 47 replies
    • Nuclear Day Survival v0.139.7 +5 Jailed Cheats [ Unlimited Stats ]
      Modded/Hacked App: Nuclear Day Survival By APPWILL COMPANY LTD
      Bundle ID: com.somniumfabri.nuclearday
      iTunes Store Link: https://apps.apple.com/us/app/nuclear-day-survival/id1666266916?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Unlimited Hunger
      - Unlimited Water
      - Unlimited Health
      - Unlimited Energy
      - No Radiation
      • 12 replies
    • Nuclear Day Survival v0.139.7 +5 Cheats [ Unlimited Stats ]
      Modded/Hacked App: Nuclear Day Survival By APPWILL COMPANY LTD
      Bundle ID: com.somniumfabri.nuclearday
      iTunes Store Link: https://apps.apple.com/us/app/nuclear-day-survival/id1666266916?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Unlimited Hunger
      - Unlimited Water
      - Unlimited Health
      - Unlimited Energy
      - No Radiation
      • 14 replies
    • Lost Enders v1.9.6 +3 Jailed Cheats [ God / O-HK ]
      Modded/Hacked App: Lost Enders By makoto takeuchi
      Bundle ID: jp.co.kurukurugames.lostenders
      iTunes Store Link: https://apps.apple.com/us/app/lost-enders/id6502868763?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill


      Jailbreak required hack(s): [Mod Menu Hack] Lost Enders v1.0.4 +2 Cheats [ God / O-HK ] - 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/
      • 37 replies
    • Lost Enders v1.9.6 +3 Cheats [ God / O-HK ]
      Modded/Hacked App: Lost Enders By makoto takeuchi
      Bundle ID: jp.co.kurukurugames.lostenders
      iTunes Store Link: https://apps.apple.com/us/app/lost-enders/id6502868763?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Lost Enders v1.0.4 +2 Jailed Cheats [ God / O-HK ] - 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/
      • 70 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