Jump to content

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


160 posts in this topic

Recommended Posts

Posted (edited)

@klashksa

I PM xiaov, got a reply and solved my problem,

This is xiaov gave me the solution, for my very suitable, provide you with reference:

Quote

 

remove %ctor 

and move your all writedata to inside gameActivatesuccess.

%new -(void)gameActivateSucess {

//alertcode blahh blahh (same with top)

 

//all the writedata here

if(getPrefBool(@"key") {

writedata...

}else {

 }

 

This is my New Tweak.xm :(Works fine on iOS9.x and later)

Spoiler

#import "writeData.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <substrate.h>

#define string @"iosgods_xiaov"
#define PLIST_PATH @"/var/mobile/Library/Preferences/com.hack.gdjhtbhack.plist"

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

UIAlertView *alert;
%hook AppDelegate

- (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(gameActivateSucess) userInfo:nil repeats:NO];     
	return %orig;
}
else
{
	[NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(gameActivateFailed) userInfo:nil repeats:NO];     
	return %orig;
}
}


%new -(void)gameActivateSucess {

if(GetPrefBool(@"kCD"))
{
writeData(0x11A00C2, 0x00207047);
} else {
}

if(GetPrefBool(@"kMp"))
{
writeData(0x1571DE, 0x00207047);
} else {
}

UIAlertView *alert = [[UIAlertView alloc] initWithTitle: @"title" message: @"Activated Sucess" delegate:self cancelButtonTitle:@"ok" otherButtonTitles: nil];
[alert show];
[alert release];

}

%new -(void)gameActivateFailed {

alert = [[UIAlertView alloc] initWithTitle:@"Title" 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) {  

            
        }
        if (buttonIndex == 1) {  
        
            
           	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

 

Updated by Hackjoy
Posted

@Hackjoy Thank u pro it is worked fine On my device. But how can i add this code inside it ?

Because i'm always using this way 

%hook xxxxxx

-(void)xxxxx(bool)arg

{

arg = TRUE;

}

%end 

 

I didn't use this way never 

if(GetPrefBool(@"kMp"))
{
writeData(0x1571DE, 0x00207047);
} else {
}

I hope u understand me . Because i speak English a little  ? 

Posted
On 2/16/2018 at 5:34 PM, klashksa said:

@Hackjoy Thank u pro it is worked fine On my device. But how can i add this code inside it ?

Because i'm always using this way 

%hook xxxxxx

-(void)xxxxx(bool)arg

{

arg = TRUE;

}

%end 

 

I didn't use this way never 


if(GetPrefBool(@"kMp"))
{
writeData(0x1571DE, 0x00207047);
} else {
}

I hope u understand me . Because i speak English a little  ? 

Did you get you're answer yet?

Posted
On 2/17/2018 at 6:34 AM, klashksa said:

@Hackjoy Thank u pro it is worked fine On my device. But how can i add this code inside it ?

Because i'm always using this way 

%hook xxxxxx

-(void)xxxxx(bool)arg

{

arg = TRUE;

}

%end 

 

I didn't use this way never 


if(GetPrefBool(@"kMp"))
{
writeData(0x1571DE, 0x00207047);
} else {
}

I hope u understand me . Because i speak English a little  ? 

 

int hackResult = 0;

%hook AppDelegate

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

use same code in my tut;

}

%new -(void)gameActivateSucess {

hackResult = 1;

}

%end

 

%hook xxxxxx

-(void)xxxxx(bool)arg

{

if(hackResult == 1) {

arg = TRUE;

} else {

arg = FALSE;

}

%end

On 4/5/2018 at 4:53 AM, Pradeep6868 said:

if you do please send me a pm because I also don't understand this.

check on top replied

  • Thanks 1

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

    • Capy Gears v1.00.001 [ +7 Cheats ] Battle Coin
      Modded/Hacked App: Capy Gears By HARVEST STAR INTERACTIVE LIMITED
      Bundle ID: com.qxgame.gear
      App Store Link: https://apps.apple.com/us/app/capy-gears/id6744058532?uo=4
       

      🤩 Hack Features

      - Battle Coin

      - Enemy ATK No

      - Enemy Delay [ Sometime Issue ]

      - Base HP

      - Moving Speed

      - Capy Hero ATK

      - Capy Hero HP
      • 0 replies
    • Capy Gears v1.00.001 [ +7 Jailed ] Battle Coin
      Modded/Hacked App: Capy Gears By HARVEST STAR INTERACTIVE LIMITED
      Bundle ID: com.qxgame.gear
      App Store Link: https://apps.apple.com/us/app/capy-gears/id6744058532?uo=4
       

      🤩 Hack Features

      - Battle Coin

      - Enemy ATK No

      - Enemy Delay [ Sometime Issue ]

      - Base HP

      - Moving Speed

      - Capy Hero ATK

      - Capy Hero HP
      • 0 replies
    • Cooking Diary Restaurant Game v2.39.1 Jailed Cheats +3
      Modded/Hacked App: Cooking Diary® Restaurant Game by MyTona Pte Ltd
      Bundle ID: com.mytonallc.cookingdiary
      iTunes Store Link: https://apps.apple.com/us/app/cooking-diary-restaurant-game/id1214763610?uo=4&at=1010lce4


      Hack Features:
      - Infinite Currencies (Get some)
      - Freeze Boosters


      iOS Hack Download Link: https://iosgods.com/topic/110310-arm64-cooking-diary-restaurant-game-v1160-3/
      • 672 replies
    • Bunker: Zombie Survival Games v5.1.15 [+4 Cheats]
      Modded/Hacked App: Bunker: Zombie Survival Games By APPWILL COMPANY LTD
      Bundle ID: bunker.zombie.survival.games
      App Store Link: https://apps.apple.com/us/app/bunker-zombie-survival-games/id1642910762?uo=4



      🤩 Hack Features

      - Remove Ads (Not Rewarded)
      - Never Die
      - Unlimited Ammo
      - Add Money (Enable Inside Game)
      • 2 replies
    • Bunker: Zombie Survival Games v5.1.15 [+4 Jailed Cheats]
      Modded/Hacked App: Bunker: Zombie Survival Games By APPWILL COMPANY LTD
      Bundle ID: bunker.zombie.survival.games
      App Store Link: https://apps.apple.com/us/app/bunker-zombie-survival-games/id1642910762?uo=4



      🤩 Hack Features

      - Remove Ads (Not Rewarded)
      - Never Die
      - Unlimited Ammo
      - Add Money (Enable Inside Game)
      • 4 replies
    • Plants vs. Zombies™ 2 v12.2.1 +4 Cheats [Unlimited Currencies]
      Modded/Hacked App: Plants vs. Zombies™ 2 By PopCap
      Bundle ID: com.popcap.ios.PvZ2
      iTunes Store Link: https://itunes.apple.com/us/app/plants-vs-zombies-2/id597986893
       

      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Cydia Impactor.
      - A Computer Running Windows/Mac/Linux.


      Hack Features:
      - Unlimited Coins
      - Unlimited Gems
      - Unlimited Mints
      • 3,679 replies
    • Five Hearts Under One Roof v1.0.6 +3 Jailed Cheats [ All Chapters Unlocked ]
      Modded/Hacked App: Five Hearts Under One Roof By Storytaco.inc
      Bundle ID: com.storytaco.pc01mclient
      iTunes Store Link: https://apps.apple.com/us/app/five-hearts-under-one-roof/id6742767401?uo=4

       


      🤩 Hack Features

      - Unlimited Love Letters & All Scenes Unlocked
      - All Chapters Unlocked
      - All Ranking Characters Unlocked
      • 25 replies
    • Five Hearts Under One Roof v1.0.6 +3 Cheats [ All Chapters Unlocked ]
      Modded/Hacked App: Five Hearts Under One Roof By Storytaco.inc
      Bundle ID: com.storytaco.pc01mclient
      iTunes Store Link: https://apps.apple.com/us/app/five-hearts-under-one-roof/id6742767401?uo=4

       


      🤩 Hack Features

      - Unlimited Love Letters & All Scenes Unlocked
      - All Chapters Unlocked
      - All Ranking Characters Unlocked
      • 10 replies
    • Solitaire Story: Ava's Manor v48.5.0 +1++ Jailed Cheat [ Unlimited Everything ]
      Modded/Hacked App: Solitaire Story: Ava's Manor By Uken Inc.
      Bundle ID: com.uken.solitaire.story
      iTunes Store Link: https://apps.apple.com/us/app/solitaire-story-avas-manor/id1479573445?uo=4

       


      🤩 Hack Features

      - Unlimited Everything -> Will increase instead of decrease.
      • 3 replies
    • Solitaire Story: Ava's Manor v48.5.0 +1++ Cheat [ Unlimited Everything ]
      Modded/Hacked App: Solitaire Story: Ava's Manor By Uken Inc.
      Bundle ID: com.uken.solitaire.story
      iTunes Store Link: https://apps.apple.com/us/app/solitaire-story-avas-manor/id1479573445?uo=4

       


      🤩 Hack Features

      - Unlimited Everything -> Will increase instead of decrease.
      • 3 replies
    • Royal Kingdom v17824 +4 Jailed Cheats [ Coins + More ]
      Modded/Hacked App: Royal Kingdom By Dream Games
      Bundle ID: com.dreamgames.royalkingdom
      iTunes Store Link: https://apps.apple.com/ph/app/royal-kingdom/id1606549505
       

      Hack Features:
      - Freeze Coins
      - Freeze Lives
      - Freeze Boosters
      - Freeze Moves


      Jailbreak required hack(s): [Mod Menu Hack] Royal Kingdom v3987 +4 Cheats [ Unlimited Coins ] - 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/
      • 118 replies
    • Royal Kingdom v17824 +4 Cheats [ Coins + More ]
      Modded/Hacked App: Royal Kingdom By Dream Games
      Bundle ID: com.dreamgames.royalkingdom
      iTunes Store Link: https://apps.apple.com/ph/app/royal-kingdom/id1606549505
       

      Hack Features:
      - Freeze Coins
      - Freeze Lives
      - Freeze Boosters
      - Freeze Moves


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Royal Kingdom v3987 +4 Jailed Cheats [ Unlimited Coins ] - 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/
      • 69 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