Jump to content

What am I doing wrong?


Go to solution Solved by mitosis,

6 posts in this topic

Recommended Posts

Posted (edited)

App: Betternet VPN

//Begin BetternetUser
%hook BetternetUser
-(void) setIsPremium:(bool) {
  %orig(TRUE);
}
-(bool) isPremium {
  return TRUE;
}
-(bool) allowedPremium {
  return TRUE;
}
%end
//Begin CRFLabelUpdater
%hook CRFLabelUpdater
+(void) setPremiumStage:(int) {
  %orig(1);
}
%end
Attempted making an MSHook - tested in flex (working) I have no idea why this isn't working and honestly just need some help.
Updated by Mocha
Posted

*10 hour bump.

The code with the void methods aren't right :p You're supposed to set the argument to true then call %orig() with it.

 

Like so:

 

%hook BetterNetuser

- (void)setIsPremium:(BOOL)arg1 {
arg1 = true;
%orig(arg1);
}

and

 

%hook CRFLabelUpdater
+ (void)setPremiumStage:(int)arg1 {
arg1 = 1;
%orig(arg1);
}

arg1 could be any name it doesn't matter.

Posted (edited)

The code with the void methods aren't right :p You're supposed to set the argument to true then call %orig() with it.

 

Like so:

 

%hook BetterNetuser

- (void)setIsPremium:(BOOL)arg1 {
arg1 = true;
%orig(arg1);
}
and

 

%hook CRFLabelUpdater
+ (void)setPremiumStage:(int)arg1 {
arg1 = 1;
%orig(arg1);
}
arg1 could be any name it doesn't matter.

 

//Begin BetternetUser
%hook BetternetUser
- (void)setIsPremium:(BOOL)arg1 {
arg1 = true;
%orig(arg1);
}
- (bool)isPremium {
return true;
}
- (bool)allowedPremium {
return true;
}
%end
//Begin CRFLabelUpdater
%hook CRFLabelUpdater
+ (void)setPremiumStage:(int)arg1 {
arg1 = 1;
%orig(arg1);
}
%end
Still can't get it to work D:
Updated by Mocha
  • Solution
Posted (edited)
//Begin BetternetUser
%hook BetternetUser
- (void)setIsPremium:(BOOL)arg1 {
arg1 = true;
%orig(arg1);
}
- (bool)isPremium {
return true;
}
- (bool)allowedPremium {
return true;
}
%end
//Begin CRFLabelUpdater
%hook CRFLabelUpdater
+ (void)setPremiumStage:(int)arg1 {
arg1 = 1;
%orig(arg1);
}
%end
Still can't get it to work D:

 

//Begin BetternetUser
%hook BetternetUser
- (void)setIsPremium:(BOOL)arg1 {
arg1 = true;
%orig(arg1);
}
- (bool)isPremium {
return true;
}
- (bool)allowedPremium {
return true;
}
%end
//Begin CRFLabelUpdater
%hook CRFLabelUpdater
+ (void)setPremiumStage:(int)arg2 {
arg2 = 1;
%orig(arg2);
}
%end

I am not sure about this, but try it out

Updated by mitosis

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

    • Modern Ops: Online Shooter FPS v9.53 +6 Jailed Cheats [ No Recoil + More ]
      Modded/Hacked App: Modern Ops: Online Shooter FPS By Edkon Games GmbH
      Bundle ID: com.edkongames.mobs
      App Store Link: https://apps.apple.com/us/app/modern-ops-online-shooter-fps/id1415791453?uo=4

       


      🤩 Hack Features

      - No Recoil
      - No Spread
      - No Flashbang Effect
      - No Smoke Effect
      - Red Crosshair
      - Field of View Modifier
      • 0 replies
    • FIFA Rivals - Mobile Football v1.0.2 +2 Jailed Cheats [ Auto Win ]
      Modded/Hacked App: FIFA Rivals - Mobile Football By Mythical Games
      Bundle ID: com.mythical.fifarivals
      iTunes Store Link:https://apps.apple.com/us/app/fifa-rivals-mobile-football/id6746578704

       
       

      🤩 Hack Features

      - Auto Win -> Linked to yourself & opponent. Every goal scored will result in a win.
      - Season Pass Unlocked -> Will let you claim all rewards from all passes.
      • 9 replies
    • FIFA Rivals - Mobile Football v1.0.2 +2 Cheats [ Auto Win ]
      Modded/Hacked App: FIFA Rivals - Mobile Football By Mythical Games
      Bundle ID: com.mythical.fifarivals
      iTunes Store Link:https://apps.apple.com/us/app/fifa-rivals-mobile-football/id6746578704

       
       

      🤩 Hack Features

      - Auto Win -> Linked to yourself & opponent. Every goal scored will result in a win.
      - Season Pass Unlocked -> Will let you claim all rewards from all passes.
      • 19 replies
    • Modern Ops: Online Shooter FPS v9.53 +6 Cheats [ No Recoil + More ]
      Modded/Hacked App: Modern Ops: Online Shooter FPS By Edkon Games GmbH
      Bundle ID: com.edkongames.mobs
      App Store Link: https://apps.apple.com/us/app/modern-ops-online-shooter-fps/id1415791453?uo=4

       
       

      🤩 Hack Features

      - No Recoil
      - No Spread
      - No Flashbang Effect
      - No Smoke Effect
      - Red Crosshairs
      - Field of View Modifier
      • 0 replies
    • Hanuman & Fighters Versus Evil v1.1 [+3 Jailed Cheats]
      Modded/Hacked App: Hanuman & Fighters Versus Evil By VOJOY GAMES PRIVATE LIMITED
      Bundle ID: com.vojoygames.hanumangame.ios
      App Store Link: https://apps.apple.com/us/app/hanuman-fighters-versus-evil/id6737682082?uo=4

       

      🤩 Hack Features

      - Enemy Can't Attack
      - Unlimited Gold
      - Unlock All Levels
      • 1 reply
    • Hanuman & Fighters Versus Evil v1.1 [+3 Cheats]
      Modded/Hacked App: Hanuman & Fighters Versus Evil By VOJOY GAMES PRIVATE LIMITED
      Bundle ID: com.vojoygames.hanumangame.ios
      App Store Link: https://apps.apple.com/us/app/hanuman-fighters-versus-evil/id6737682082?uo=4



      🤩 Hack Features

      - Enemy Can't Attack
      - Unlimited Gold
      - Unlock All Levels
       
      • 1 reply
    • Idle Army: Trading Weapons v1.12.2 [+5 Jailed Cheats]
      Modded/Hacked App: Idle Army: Trading Weapons By UNIMOB VIET NAM COMPANY LIMITED
      Bundle ID: com.unimob.idle.army
      App Store Link: https://apps.apple.com/us/app/idle-army-trading-weapons/id6670773625?uo=4



      🤩 Hack Features

      - Always Enough Resources (Gem, Skip Ads etc.)
      - Max Gold (Enable inside game)
      - 2x Game Speed (Enable inside game)
      - Kill Monster (Enable inside game)
      - Add All Pet

      • 1 reply
    • Idle Army: Trading Weapons v1.12.2 [+5 Cheats]
      Modded/Hacked App: Idle Army: Trading Weapons By UNIMOB VIET NAM COMPANY LIMITED
      Bundle ID: com.unimob.idle.army
      App Store Link: https://apps.apple.com/us/app/idle-army-trading-weapons/id6670773625?uo=4

       

      🤩 Hack Features

      - Always Enough Resources (Gem, Skip Ads etc.)
      - Max Gold (Enable inside game)
      - 2x Game Speed (Enable inside game)
      - Kill Monster (Enable inside game)
      - Add All Pet

      • 1 reply
    • Margonem Adventures v1.16.2 [+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
      • 18 replies
    • Margonem Adventures v1.16.2 [+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
      • 11 replies
    • XP Hero v9.0.0 [+3 Cheats]
      Modded/Hacked App: XP Hero By Supercent Inc.
      Bundle ID: io.supercent.weaponrpg
      iTunes Store Link: https://apps.apple.com/us/app/xp-hero/id6740618570?uo=4



      🤩 Hack Features

      - Add Currency (Enable and You'll Recieve All Currency)
      - Add Xp
      - Enemy Can't Attack
       
      • 7 replies
    • XP Hero v9.0.0 [+3 Jailed Cheats]
      Modded/Hacked App: XP Hero By Supercent Inc.
      Bundle ID: io.supercent.weaponrpg
      iTunes Store Link: https://apps.apple.com/us/app/xp-hero/id6740618570?uo=4



      🤩 Hack Features

      - Add Currency (Enable and You'll Recieve All Currency)
      - Add Xp
      - Enemy Can't Attack
      • 6 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