Jump to content

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


160 posts in this topic

Recommended Posts

Posted
1 hour ago, klashksa said:

When I click on cancel the app is working and the hack is working automatically. can u help me plz  :cry:    @xiaov  

what happen?

Posted

 @xiaov

I made unlocked VIP hack for AutoRap App after that I uploaded Dylib file in  CPloader License .  see the video 

 My question is Why The hack is working when I click on Cancel ?  

 

Sorry  my English is not good I hope you understand >_<

 

Posted
55 minutes ago, klashksa said:

 @xiaov

I made unlocked VIP hack for AutoRap App after that I uploaded Dylib file in  CPloader License .  see the video 

 My question is Why The hack is working when I click on Cancel ?  

 

Sorry  my English is not good I hope you understand >_<

 

Ya, understand.

Pm me whole code inside your Tweak.xm then i will check for u .

 

Posted

This is My tweak.xm @xiaov

 

 

#import "vm_writeData.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>


#define string @"Jdcc@4723"

 


UIAlertView *alert;
%hook AutoRapAppDelegate

- (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 {

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];  //AutoRapVIP.plist

            exit(0);
        }

}

 

%end

 

%hook AutoRapStyle
-(bool)isFree
{
        return true;
}
%end

%hook Listing
-(bool)isFree
{
        return true;
}
%end

%hook MagicSubscriptionManager
-(bool)isSubscriptionActive
{
        return true;
}

-(bool)isActive
{
        return true;
}

-(bool)loaded
{
        return true;
}

-(bool)isPromo
{
        return true;
}

-(bool)isPromoSubscription
{
        return true;
}
%end 

Posted (edited)

 

On 2017/12/15 at 4:23 PM, klashksa said:

When I click on cancel the app is working and the hack is working automatically. can u help me plz  :cry:    @xiaov  

I get the same error, I did not enter my "password / code".
Then when I click the "Cancel" button, the game loads normally, "Hack" is also working

I need tweak not to load "writeData" code when I click the "cancel" button (hack do not work)

@xiaov plz help me, thx so much .

This is my Tweak.xm :

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];
}

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

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

}


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 {

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 you have to do :

1- upload your dylib file on CPLoader Online use CPloader 8.5 License

2- create any password of 4 numbers like this 9340

3- now download your new dylib file

4- put it in your project  ( delete your old dylib file from your project and paste new dylib file )

5- open Mobile Terminal or MTerminal and go to /var/mobile/YOUR_PORJECT_NAME

6- finally make package

 

 

NOTE : this way works on ios8  because when you make package you can see the dylib file but on ios9 mabye will not work because i'm now using ios9 and when i make package cannot see the dylib file in my project 

 

 

if you get a answer PM me plz 

  • Like 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 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)
        • Informative
      • 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)
        • Winner
        • Like
      • 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
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 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
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 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
        • Informative
        • Haha
        • Thanks
        • Like
      • 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.
        • Winner
      • 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.
        • Informative
        • Thanks
        • Like
      • 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 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