Jump to content

[Theos] Tweak doesn't do anything


Aarivex

6 posts in this topic

Recommended Posts

Posted

I've set up a theos project and wrote some hooks into the Tweak.x. It compiles fine and gives no errors.

But nothing wants to change inside the target app I'm trying to hook into - I'm using both MS Hooking and the method with MSHookFunction and MSFindSymbol.

I also have a hook written that should show an alert after a certain view gets loaded, but I won't get an alert either. UIKit is imported inside the Makefile.

 

For example, IDA gives me "___TtC5Untis6Person_firstName_" as function name, so I'm calling MSFindSymbol for that. It's an NSString so I return @"something". The default text still remains inside the app.

ARxZ561.png

This is my Tweak.x:

@interface InfoCenterViewController : UIViewController
@end

NSString* firstName()
{
    return @"lol";
}

%ctor {
    MSHookFunction(
        ((void*) MSFindSymbol(NULL, "___TtC5Untis6Person_firstName_")),
        (void*) firstName,
        NULL);
}

%hook InfoCenterViewController

-(void) viewDidLoad {
    %orig;
    
    UIAlertView *alert = [[UIAlertView alloc]
        initWithTitle: @"UntisPro"
        message: @"yo this should show up bruh"
        delegate: self
        cancelButtonTitle: @"lol"
        otherButtonTitles: nil
    ];

    [alert show];
}

%end

Is something wrong? Is it even hooking correctly into the app?

 

I've made another project, tried hooking into SBLockScreenViewController and showing the same alert. It works fine there.

The bundle identifier is correct, I also tried it without any. Still doesn't do much.

 

Thanks!

Posted
11 hours ago, Laxus said:

Why use mshookfunc when you can just simple mshook?

As said, I already tried it with the MS Hooking with taking a look on the pinned tutorial about it here. It didn't work either.

AFAIK, this should look like this:

%hook Profile
 
-(bool) isPremium
{
    return true; # or YES?
}

%end
  
%hook Person

-(id) firstName # or -(NSString*) firstName
{
    return @"test";
}

%end

 

Just tested it in Flex 3, overriding methods there doesn't do anything either. One thing that is noticable is that when I override a name (there is a shortened name and the full name after you open the table item), the full name is not loaded and the short name will stay there. But it does not show the name I'm overriding it with.

Also, I tried hooking into different viewDidLoads, none of them shows my alert.

I think Theos will not do anything here. Overriding simple strings or booleans doesn't affect anything in-app. Maybe it is server loaded?

Archived

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

  • Our picks

    • Happy Restaurant Story v2.3.31 [ +10 Cheats ] Auto Win
      Modded/Hacked App: Happy Restaurant Story By 静聪 梁
      Bundle ID: com.galaxy.happyrestaurant
      App Store Link: https://apps.apple.com/us/app/happy-restaurant-story/id6476916734?uo=4


      🤩 Hack Features

      - Auto Win

      - Avatar Unlocked

      - Frame Unlocked

      - Gems

      - Coins

      - Lives

      - Ticket C

      - Booster

      - Customer Patience Freeze

      - Target Max
      • 2 replies
    • Happy Restaurant Story v2.3.31 [ +10 Jailed ] Auto Win
      Modded/Hacked App: Happy Restaurant Story By 静聪 梁
      Bundle ID: com.galaxy.happyrestaurant
      App Store Link: https://apps.apple.com/us/app/happy-restaurant-story/id6476916734?uo=4


      🤩 Hack Features

      - Auto Win

      - Avatar Unlocked

      - Frame Unlocked

      - Gems

      - Coins

      - Lives

      - Ticket C

      - Booster

      - Customer Patience Freeze

      - Target Max
      • 2 replies
    • Squishmallows Match v0.7.7 [ +2 Cheats ] Auto Win
      Modded/Hacked App: Squishmallows Match By East Side Games Inc
      Bundle ID: com.eastsidegames.squishmallows
      App Store Link: https://apps.apple.com/ph/app/squishmallows-match/id6450057167?uo=4

       

      🤩 Hack Features

      - Auto Win
      - Lives [ 0 Play Unlimited ]

      • 4 replies
    • Squishmallows Match v0.7.7 [ +2 Jailed ] Auto Win
      Modded/Hacked App: Squishmallows Match By East Side Games Inc
      Bundle ID: com.eastsidegames.squishmallows
      App Store Link: https://apps.apple.com/ph/app/squishmallows-match/id6450057167?uo=4
       

      🤩 Hack Features

      - Auto Win
      - Lives [ 0 Play Unlimited ]

      • 7 replies
    • NFL Rivals - Football Game v2.3.7 [ +3 Jailed ] AI Stupid
      Modded/Hacked App: NFL Rivals - Football Game By Mythical, Inc.
      Bundle ID: com.mythical.superteam
      iTunes Store Link: https://apps.apple.com/us/app/nfl-rivals-football-game/id1640028998?uo=4


      Hack Features:

      - AI ON Your Team 
      - Tackle No
      - No Interceptions
      • 27 replies
    • Tower Rush - Tower Defense TD v2.0.2 [ +2 Cheats ] AI Freeze
      Modded/Hacked App: Tower Rush - Tower Defense TD By Raw Sunshine, LLC
      Bundle ID: com.sunshine.towerrushlegend
      App Store Link: https://apps.apple.com/us/app/tower-rush-tower-defense-td/id6455461456?uo=4

       

      🤩 Hack Features

      - Elixir Freeze
      - AI Freeze [ Can't Place The Tower ] 

      • 14 replies
    • Tower Rush - Tower Defense TD v2.0.2 [ +2 Jailed ] AI Freeze
      Modded/Hacked App: Tower Rush - Tower Defense TD By Raw Sunshine, LLC
      Bundle ID: com.sunshine.towerrushlegend
      App Store Link: https://apps.apple.com/us/app/tower-rush-tower-defense-td/id6455461456?uo=4
       

      🤩 Hack Features

      - Elixir Freeze
      - AI Freeze [ Can't Place The Tower ]

      • 6 replies
    • Turret Defense King v1.2.21 [ +9 Cheats ] Gold Max
      Modded/Hacked App: Turret Defense King By MOBIRIX
      Bundle ID: com.mobirix.tdwt
      iTunes Store Link: https://apps.apple.com/us/app/turret-defense-king/id6480586157?uo=4


      🚀 Hack Features

      - ADS NO [ Rewards Free]

      - Gold [ Revive To Get ]

      - Battle Coins [ Enemy Drop Kill ]

      - Tower Cost [ Earn Battle Coins ]

      - Enemy Max [ Only Stage Mod] Easy Win

      - Wave Max [ Only Stage Mod] Easy Win

      - Tower DMG [ Just Rebuild & Upgrade ]

      - Tower ATK Range

      - Tower Fire Rate
      • 15 replies
    • Turret Defense King v1.2.21 [ +9 Jailed ] Gold Max
      Modded/Hacked App: Turret Defense King By MOBIRIX
      Bundle ID: com.mobirix.tdwt
      iTunes Store Link: https://apps.apple.com/us/app/turret-defense-king/id6480586157?uo=4


      🚀 Hack Features

      - ADS NO [ Rewards Free]

      - Gold [ Revive To Get ]

      - Battle Coins [ Enemy Drop Kill ]

      - Tower Cost [ Earn Battle Coins ]

      - Enemy Max [ Only Stage Mod] Easy Win

      - Wave Max [ Only Stage Mod] Easy Win

      - Tower DMG [ Just Rebuild & Upgrade ]

      - Tower ATK Range

      - Tower Fire Rate
      • 15 replies
    • Cooking World: Cooking Games v1.21 [ +4 Cheats ] Currency Max
      Modded/Hacked App: Cooking World: Cooking Games By MagicSeven Co., Ltd
      Bundle ID: com.cooking.world.chef.craze.restaurant.fever
      iTunes Store Link: https://apps.apple.com/us/app/cooking-world-cooking-games/id6469040590?uo=4
       

      🤩 Hack Features

      - Gems [ Earn Some ]
      - Coins [ Earn Some ]
      - Exp [ Earn Some + Rewards ] Breakable Feature

      - Lives [ Linked With Exp ]
      • 12 replies
    • Cooking World: Cooking Games v1.21 [ +4 Jailed ] Currency Max
      Modded/Hacked App: Cooking World: Cooking Games By MagicSeven Co., Ltd
      Bundle ID: com.cooking.world.chef.craze.restaurant.fever
      iTunes Store Link: https://apps.apple.com/us/app/cooking-world-cooking-games/id6469040590?uo=4

       

      🤩 Hack Features

      - Gems [ Earn Some ]
      - Coins [ Earn Some ]
      - Exp [ Earn Some + Rewards ] Breakable Feature 

      - Lives [ Linked With Exp ]
      • 15 replies
    • DEAD TARGET: FPS Zombie Games v6.153.0 [ +10 Cheats ] Currency Max
      Modded/Hacked App: DEAD TARGET: FPS Zombie Games By VNG SINGAPORE PTE LTD
      Bundle ID: com.vng.g6.a.zombie
      iTunes Store Link: https://apps.apple.com/us/app/dead-target-fps-zombie-games/id901793885?uo=4
       

      Hack Features

      - Unlimited Gold
      - Unlimited Cash

      - Unlimited Diamonds
      - Unlimited Grenades
      - Unlimited MedKits
      - Unlimited Ammo
      - One Hit Kill
      - God Mode
      - High Accuracy

      - ADS NO
      • 17 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