Jump to content

Need help making game hack


El Antraxs

8 posts in this topic

Recommended Posts

Posted

First time making a game hack and trying to convert my flex hack into a .deb but I’m having a couple of problems. I’m using my JB iPhone 6+ on iOS 11.3 and using the 3.1 NIC Template provided on here. I’m also doing MS hacking

My first issue is I can’t get bools to work, I looked at the MS hooking method but can’t get mine to work for some reason. I know I have the right target class and target method since it worked on flex.

second issue is I want the user to be able to set a custom amoun of money. I did look at the tut that showed how to do it but I wasn’t able to get it working, I got the text cell to appear but it didn’t work and I got kinda lost since I’m using the preset template. 

If someone can help me out that would be great. 

Posted
  On 1/30/2019 at 7:06 PM, Amuyea said:

Show your Flex cheat & Tweak.xm

Expand  

Hidden Content
    Tweak.xm

    @import Foundation;

    @import UIKit;

    #import <substrate.h>

    #import "vm_writeData.h"

     

    // To MSHook Offsets, use https://iosgods.com/topic/22718-mshook-offsets/

    // To Generate Tweak.xm and Preferences Plist https://iosgods.com/topic/24138-code-inject/

     

    #define PLIST_PATH @"/var/mobile/Library/Preferences/com.elantraxs.bitlifehacks.plist"

     

    inline bool GetPrefBool(NSString *key) {

            return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];

    }

     

     

    // Add your MS/Flex/MSHook Code here. Examples can be found on iOSGods.

     

    %hook Apollo16SimFinances

     

    -(bool) willAgreeToSpendTime {

     

    return TRUE;

     

    }

     

    -(bool) shouldSufferMiscarriage {

     

    return FALSE;

     

    }

     

    -(bool) willAcceptMarriageProposal {

     

    return TRUE;

     

    }

     

    -(bool) willAgreeToHaveBaby {

     

    return TRUE;

     

    }

     

    -(bool) willAgreeToRenewWeddingVows {

     

    return TRUE;

     

    }

     

    -(bool) willAcceptToDateHero {

     

    return TRUE;

     

    }

     

    -(bool) willAgreeToThreesome {

     

    return TRUE;

     

    }

     

    -(bool) willAgreeToChangeNameAfterMarriage {

     

    return TRUE;

     

    }

     

    -(bool) willAgreeToSignPrenup {

     

    return TRUE;

     

    }

     

    -(bool) willInsistOnPrenup {

     

    return FALSE;

     

    }

     

    -(bool) demandedWedding {

     

    return FALSE;

     

    }

     

    -(bool) demandedHouse {

     

    return FALSE; 

     

    }

     

    -(bool) demandedCar {

     

    return FALSE;

     

    }

     

    %end

     

    // Automatic Popup Code

    void setup() {

        UIAlertController *igcredits = [UIAlertController alertControllerWithTitle:@"Made for iOSGods.com" message:@"Bitlife Cheats by El Antraxs for iOSGods.com!\n\nVisit the hack's official topic on iOSGods for more information and updates!" preferredStyle:UIAlertControllerStyleAlert];

     

     

        UIAlertAction *iosgods = [UIAlertAction actionWithTitle:@"Visit iOSGods.com!" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action){

            UIApplication *application = [UIApplication sharedApplication];

            NSURL *URL = [NSURL URLWithString:@"https://iosgods.com/forum/13-free-jailbroken-cydia-cheats/"];

            [application openURL:URL options:@{} completionHandler:^(BOOL success) {

                if (success) {

                    //NSLog(@"Opened url");

                }

            }];

            

        }];

        

        UIAlertAction *clubs = [UIAlertAction actionWithTitle:@"Visit the Clubs!" style:UIAlertActionStyleDefault handler:^(UIAlertAction *action){

            UIApplication *application = [UIApplication sharedApplication];

            NSURL *URL = [NSURL URLWithString:@"https://iosgods.com/clubs/"];

            [application openURL:URL options:@{} completionHandler:^(BOOL success) {

                if (success) {

                    //NSLog(@"Opened url");

                }

            }];

        }];

        

        UIAlertAction *thankyou = [UIAlertAction actionWithTitle:@"Thank you!" style:UIAlertActionStyleCancel handler:nil];

        

        [igcredits addAction:iosgods];

        [igcredits addAction:clubs];

        [igcredits addAction:thankyou];

     

     

        [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:igcredits animated:true completion:nil];

    }

     

    void unsubscribeToLaunchEvent(void);

     

    static void didFinishLaunching(CFNotificationCenterRef center, void *observer,

                                   CFStringRef name, const void *object, CFDictionaryRef info) {

        setup();

        unsubscribeToLaunchEvent();

    }

     

    const char *authObserver = "authObserver";

     

    void subscribeToLaunchEvent() {

        CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), authObserver, &didFinishLaunching,

                                        (CFStringRef)UIApplicationDidFinishLaunchingNotification,

                                        NULL, CFNotificationSuspensionBehaviorDrop);

    }

     

    void unsubscribeToLaunchEvent() {

        CFNotificationCenterRemoveObserver(CFNotificationCenterGetLocalCenter(), authObserver,

                                           (CFStringRef)UIApplicationDidFinishLaunchingNotification, NULL);

    }

     

    __attribute__((constructor)) static void initialize() {

        subscribeToLaunchEvent();

    }

     

    https://gyazo.com/ed45680af63a1510497a3a2db1609e33

 

Posted

Where's your text input?

1. Also, are you sure all functions are in the Apollo16SimFinances class?

2. in the .plist in the root of your project, do you have the CORRECT bundle ID same as the app?
- if not, get it from: https://www.armconverter.com/appinfo

 

3. You know that you're directly patching the funcs? This here:

inline bool GetPrefBool(NSString *key) {
        return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

is never used.

 

Posted
  On 1/30/2019 at 9:54 PM, Joey said:

Where's your text input?

1. Also, are you sure all functions are in the Apollo16SimFinances class?

2. in the .plist in the root of your project, do you have the CORRECT bundle ID same as the app?
- if not, get it from: https://www.armconverter.com/appinfo

 

3. You know that you're directly patching the funcs? This here:

inline bool GetPrefBool(NSString *key) {
        return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

is never used.

 

Expand  

I started fresh so I didn’t add the text input as I just wanted to get it all working first. I did notice I wrote the wrong class target for the target method. That’s the website I used to get my bundle ID, only thing I deleted from the preset template was the example cheats, so I can delete the “inline bool”?

Posted
  On 1/30/2019 at 10:29 PM, El Antraxs said:

I started fresh so I didn’t add the text input as I just wanted to get it all working first. I did notice I wrote the wrong class target for the target method. That’s the website I used to get my bundle ID, only thing I deleted from the preset template was the example cheats, so I can delete the “inline bool”?

Expand  

Yea, but you can leave it too, doesn't do any harm.

Archived

This topic is now archived and is closed to further replies.

  • Our picks

    • Margonem Adventures v1.16.0 [+3 Jailed Cheats]
      Modded/Hacked App: Margonem Adventures By GARMORY sp. z o.o. sp. k.
      Bundle ID: pl.Garmory.MargonemAdventures
      iTunes Store Link: https://apps.apple.com/us/app/margonem-adventures/id6444410609?uo=4

       

      🤩 Hack Features

      - Enemy Can't Move
      - Enemy Can't Attack
      - Unlimited Mana
        • Like
      • 14 replies
    • Margonem Adventures v1.16.0 [+3 Cheats]
      Modded/Hacked App: Margonem Adventures By GARMORY sp. z o.o. sp. k.
      Bundle ID: pl.Garmory.MargonemAdventures
      iTunes Store Link: https://apps.apple.com/us/app/margonem-adventures/id6444410609?uo=4



      🤩 Hack Features

      - Enemy Can't Move
      - Enemy Can't Attack
      - Unlimited Mana
        • Agree
        • Winner
        • Like
      • 9 replies
    • Final Outpost v2.3.6 [+3 Jailed Cheats]
      Modded/Hacked App: Final Outpost By Exabyte Games Ltd
      Bundle ID: com.samclothier.DEADfense
      iTunes Store Link: https://apps.apple.com/us/app/final-outpost/id1425444801?uo=4



      🤩 Hack Features

      -  Always Enough Resources
      -  Always Attain Skill
      -  No Food Consume
        • Informative
        • Winner
        • Like
      • 6 replies
    • Final Outpost v2.3.6 [+3 Cheats]
      Modded/Hacked App: Final Outpost By Exabyte Games Ltd
      Bundle ID: com.samclothier.DEADfense
      iTunes Store Link: https://apps.apple.com/us/app/final-outpost/id1425444801?uo=4

       

      🤩 Hack Features

      -  Always Enough Resources
      -  Always Attain Skill
      -  No Food Consume
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 6 replies
    • Lands of Jail v1.0.10 [+1 Jailed Cheats]
      Modded/Hacked App: Lands of Jail By SINGAPORE JUST GAME TECHNOLOGY PTE. LTD.
      Bundle ID: com.justgame.jails.global
      App Store Link: https://apps.apple.com/us/app/lands-of-jail/id6738469826?uo=4



      🤩 Hack Features

      - Enemy Can't Attack (Enable Before Enter the Stage)

        • Agree
        • Winner
        • Like
      • 6 replies
    • Lands of Jail v1.0.10 [+1 Cheats]
      Modded/Hacked App: Lands of Jail By SINGAPORE JUST GAME TECHNOLOGY PTE. LTD.
      Bundle ID: com.justgame.jails.global
      App Store Link: https://apps.apple.com/us/app/lands-of-jail/id6738469826?uo=4



      🤩 Hack Features

      - Enemy Can't Attack (Enable Before Enter the Stage)
       
        • Winner
        • Like
      • 11 replies
    • Viking Island: Defense game v0.21 [+2 Cheats]
      Modded/Hacked App: Viking Island: Defense game By GLOBAL ADVERTISING NETWORK LTD EOOD
      Bundle ID: viking.island.conquest.command
      App Store Link: https://apps.apple.com/us/app/viking-island-defense-game/id6740436892?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency
       
        • Agree
        • Winner
        • Like
      • 7 replies
    • Viking Island: Defense game v0.21 [+2 Jailed Cheats]
      Modded/Hacked App: Viking Island: Defense game By GLOBAL ADVERTISING NETWORK LTD EOOD
      Bundle ID: viking.island.conquest.command
      App Store Link: https://apps.apple.com/us/app/viking-island-defense-game/id6740436892?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency 
        • Winner
        • Like
      • 1 reply
    • King of Crabs - Invasion v1.0.0 +2 Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: King of Crabs - Invasion By Robot Squid Limited
      Bundle ID: com.robotsquid.kingofcrabs.invasion
      App Store Link: https://apps.apple.com/us/app/king-of-crabs-invasion/id6476405143?uo=4

       


      🤩 Hack Features

      - Unlimited Everything -> Earn some.
      - Free In-App Purchases
        • Winner
      • 1 reply
    • King of Crabs - Invasion v1.0.0 +3 Cheats [ Unlimited Everything ]
      Modded/Hacked App: King of Crabs - Invasion By Robot Squid Limited
      Bundle ID: com.robotsquid.kingofcrabs.invasion
      App Store Link: https://apps.apple.com/us/app/king-of-crabs-invasion/id6476405143?uo=4

       
       

      🤩 Hack Features

      - Unlimited Everything -> Earn some.
      - Free In-App Purchases

      VIP
      - Auto Win -> Enable pre-game then disable in-game to trigger.
        • Winner
        • Like
      • 1 reply
    • Plants vs. Zombies v3.9.0 Jailed Cheats +5
      Modded/Hacked App: Plants vs. Zombies™ By EA Swiss Sarl
      Bundle ID: com.ea.pvzfree.bv
      iTunes Store Link: https://apps.apple.com/us/app/plants-vs-zombies/id893677096?uo=4


      Hack Features

      - Infinite Sun
      - Infinite Fertilizer, BugSpray, and Chocolate
      - Infinite Coins
      - Infinite Plants Life
      - No Cooldown

      Author: https://iosgods.com/profile/37846-asianqueen/

      Complete tutorial before using any hacked features or you will stuck forever



      iOS Hack Download IPA Link https://iosgods.com/topic/191088-plants-vs-zombies%E2%84%A2-v381-jailed-cheats-5/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 21 replies
    • Dragons: Rise of Berk v1.96.7 +5 Cheats
      Modded/Hacked App: Dragons: Rise of Berk By Jam City, Inc.
      Bundle ID: com.ludia.dragons
      iTunes Store Link: https://apps.apple.com/us/app/dragons-rise-of-berk/id667461862?uo=4


      Hack Features:
      - Free Shopping (shows original cost but able to purchase regardless)
      - Free Skipping
      - Free Odin's Market Shopping
      - Odin's Market Packs Never Reduce
      - Currency Hack [Spend to Gain - reverts to zero on next launch]
      - Enable Rider's Club


      Non-Jailbroken & No Jailbreak required hack(s):  https://iosgods.com/topic/79228-dragons-rise-of-berk-v1794-4-cheats-for-jailed-idevices/


      iOS Hack Download Link: https://iosgods.com/topic/139612-dragons-rise-of-berk-v1794-6-cheats/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 676 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