Jump to content

[Tut] How to make a simple license system for deb


160 posts in this topic

Recommended Posts

Posted (edited)

@xiaov

I follow your instructions, but when it will be made to a deb file, says error like this:

- %hook does not make sense inside a block.

 

(my tweak.xm)

#import "vm_writeData.h"

#import <Foundation/Foundation.h>

#import <UIKit/UIKit.h>

#define string @"xiaov"

 

UIAlertView *a;

 

%hook AppDelegatePlus

- (char)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {

 NSString *vActivateStr = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/xiaov.txt"];

 vActivateStr= [NSString stringWithContentsOfFile:vActivateStr encoding:NSUTF8StringEncoding error:nil];

if ([vActivateStr isEqualToString:string])

{

    [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(ActivateSuccess) userInfo:nil repeats:NO];     

    return %orig;

}

else

{

    [NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(ActivateFailed) userInfo:nil repeats:NO];     

    return %orig;

}

}

 

%new -(void)ActivateSuccess {

 

%hook PGNativeAdvModel

-(bool) isVipAd {

If(hackResult == 1) {

return TRUE;

} else {

return FALSE;

}

}

 

-(void) setIsVipAd:(bool)arg1 {

If(hackResult == 1) {

arg1 = TRUE;

} else {

arg1 = FALSE;

}

}

%end

 

UIAlertView *alert = [[UIAlertView alloc] initWithTitle: @"IOSGODS" message: @"Activated Success" delegate:self cancelButtonTitle:@"ok" otherButtonTitles: nil];

[alert show];

[alert release];

}

 

%new -(void)ActivateFailed { 

 

//Added what you want to do when the code is entered wrong

 

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"IOSGODS" message:@"Please enter your password" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles: @"Login", nil];

alert.alertViewStyle = UIAlertViewStylePlainTextInput;

[alert show];

[alert release];

}

%new - (void)alertView:alert clickedButtonAtIndex:(NSInteger)buttonIndex

{

        if (buttonIndex == 0) {  

 

//set action for close button when pressed//

        }

        if (buttonIndex == 1) {  

        

//set action for button one pressed//

               NSString *passwordStr = [alert textFieldAtIndex:0].text;

            NSData *data = [passwordStr dataUsingEncoding:NSUTF8StringEncoding];

            NSString *directoryStr = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/xiaov.txt"];

            [data writeToFile:directoryStr atomically:YES];  //write plist

            exit(0);

        }

}

%end

 

- hope can u correction my tweak.xm

- thank in advance

Updated by zexmarshal

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

    • Puzzles & Cats v1.3.1 [+5 Jailed Cheats]
      Modded/Hacked App: Puzzles & Cats By Kwalee Ltd
      Bundle ID: com.kwalee.puzzlesandcatsnew
      iTunes Store Link: https://apps.apple.com/us/app/puzzles-cats/id6738574871?uo=4

       

      🤩 Hack Features

      - Free Store (Everything inside Shop. Enable and Buy)
      - Auto Win (Enable and make move)
      - Never Die
      - Infinite Heart
      - Always Can Afford (Gold, Diamond, Character Upgrade)
      • 6 replies
    • Puzzles & Cats v1.3.1 [+5 Cheats]
      Modded/Hacked App: Puzzles & Cats By Kwalee Ltd
      Bundle ID: com.kwalee.puzzlesandcatsnew
      iTunes Store Link: https://apps.apple.com/us/app/puzzles-cats/id6738574871?uo=4



      🤩 Hack Features

      - Free Store (Everything inside Shop. Enable and Buy)
      - Auto Win (Enable and make move)
      - Never Die
      - Infinite Heart
      - Always Can Afford (Gold, Diamond, Character Upgrade)

      • 3 replies
    • Gunfire Ops - War shooter v1.1.5 [+3 Jailed Cheats]
      Modded/Hacked App: Gunfire Ops - War shooter By VIVA GAMES S.L.
      Bundle ID: com.vivastudios.sniper.crisis.tactical.shooter
      App Store Link: https://apps.apple.com/us/app/gunfire-ops-war-shooter/id6476885406?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency (Enable and switch page)
      - No Reload

        • Winner
        • Like
      • 7 replies
    • Gunfire Ops - War shooter v1.1.5 [+3 Cheats]
      Modded/Hacked App: Gunfire Ops - War shooter By VIVA GAMES S.L.
      Bundle ID: com.vivastudios.sniper.crisis.tactical.shooter
      App Store Link: https://apps.apple.com/us/app/gunfire-ops-war-shooter/id6476885406?uo=4



      🤩 Hack Features

      - Never Die
      - Add Currency (Enable and switch page)
      - No Reload
        • Thanks
        • Winner
        • Like
      • 2 replies
    • Little Defenders v1.2.14 [+2 Jailed Cheats]
      Modded/Hacked App: Little Defenders By 羡龄 甄
      Bundle ID: com.sisheshidu.guardian
      App Store Link: https://apps.apple.com/us/app/little-defenders/id6740069144?uo=4



      🤩 Hack Features

      - Never Die
      - Add Coin (Inside Battle)
        • Like
      • 8 replies
    • Little Defenders v1.2.14 [+2 Cheats]
      Modded/Hacked App: Little Defenders By 羡龄 甄
      Bundle ID: com.sisheshidu.guardian
      App Store Link: https://apps.apple.com/us/app/little-defenders/id6740069144?uo=4



      🤩 Hack Features

      - Never Die
      - Add Coin (Inside Battle)

        • Agree
        • Winner
        • Like
      • 8 replies
    • Lands of Jail v1.0.18 [+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)

        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 27 replies
    • Lands of Jail v1.0.18 [+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)
       
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 30 replies
    • Run! Goddess v1.0.27 [+4 Jailed Cheats]
      Modded/Hacked App: Run! Goddess By TOP GAMES INC.
      Bundle ID: com.topgamesinc.rg
      iTunes Store Link: https://apps.apple.com/us/app/run-goddess/id6667111749?uo=4



      🤩 Hack Features

      - No Skill Cooldown
      - Slow Enemy
      - Enemy Can't Attack (Enemy Can't Do Damage)
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 119 replies
    • Run! Goddess v1.0.27 [+4 Cheats]
      Modded/Hacked App: Run! Goddess By TOP GAMES INC.
      Bundle ID: com.topgamesinc.rg
      iTunes Store Link: https://apps.apple.com/us/app/run-goddess/id6667111749?uo=4

       

      🤩 Hack Features

      - No Skill Cooldown
      - Slow Enemy
      - Enemy Can't Attack (Enemy Can't Do Damage)
       
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 88 replies
    • Last War:Survival v1.0.303 [+2 Jailed Cheats]
      Modded/Hacked App: Last War:Survival By FUNFLY PTE. LTD.
      Bundle ID: com.lastwar.ios
      App Store Link: https://apps.apple.com/us/app/last-war-survival/id6448786147?uo=4



      Important


      Only work on Pve contents

      Enable on loading screen!

       

      🤩 Hack Features

      - Never Die
       
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 51 replies
    • Last War:Survival v1.0.303 [+2 Cheats]
      Modded/Hacked App: Last War:Survival By FUNFLY PTE. LTD.
      Bundle ID: com.lastwar.ios
      App Store Link: https://apps.apple.com/us/app/last-war-survival/id6448786147?uo=4



      Important


      Only work on Pve contents

      Enable on loading screen!

       

       

      🤩 Hack Features

      - Never Die
       
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 39 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