Jump to content

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


xiaov

156 posts in this topic

Recommended Posts

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 .

 

Link to comment
Share on other sites

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 

Link to comment
Share on other sites

 

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
Link to comment
Share on other sites

@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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • Cooking Wonder v1.53.0 +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Cooking Wonder By WonderLegend Games
      Bundle ID: com.wonderlegend.cookingwonder
      iTunes Store Link: https://apps.apple.com/us/app/cooking-wonder/id1638005392
       

      Hack Features:
      - Unlimited Currencies -> Use some.


      Jailbreak required hack(s): https://iosgods.com/topic/169330-cooking-wonder-v120-1-cheat-unlimited-currencies/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 48 replies
    • Cooking Wonder ( All Versions ) +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Cooking Wonder By WonderLegend Games
      Bundle ID: com.wonderlegend.cookingwonder
      iTunes Store Link: https://apps.apple.com/us/app/cooking-wonder/id1638005392
       

      Hack Features:
      - Unlimited Currencies -> Use some.


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 29 replies
    • Disney Emoji Blitz Game v62.0.2 +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Disney Emoji Blitz Game By Jam City, Inc.
      Bundle ID: com.disney.emojimatch
      iTunes Store Link: https://apps.apple.com/us/app/disney-emoji-blitz-game/id1017551780
       

      Hack Features:
      - Unlimited Currencies -> Earn some.


      Jailbreak required hack(s): https://iosgods.com/topic/168886-disney-emoji-blitz-game-all-versions-1-cheats-unlimited-currencies/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 86 replies
    • Disney Emoji Blitz Game ( All Versions ) +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Disney Emoji Blitz Game By Jam City, Inc.
      Bundle ID: com.disney.emojimatch
      iTunes Store Link: https://apps.apple.com/us/app/disney-emoji-blitz-game/id1017551780
       

      Hack Features:
      - Unlimited Currencies -> Earn some.


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/168888-disney-emoji-blitz-game-v5320-1-jailed-cheat-unlimited-currencies/
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 29 replies
    • Family Guy Freakin Mobile Game v2.62.4 +1++ Jailed Cheat [ Unlimited Coins ]
      Modded/Hacked App: Family Guy Freakin Mobile Game By Jam City, Inc.
      Bundle ID: com.sgn.familyguy
      iTunes Store Link: https://apps.apple.com/us/app/family-guy-freakin-mobile-game/id1139342866
       

      Hack Features:
      - Unlimited Coins -> Use some.
      -- Unlimited Uranium > Use the modded coins. 
      -- Unlimited Lives -> Use the modded coins.
      -- Unlimited Moves -> Use the modded coins.


      Jailbreak required hack(s): [Mod Menu Hack] Family Guy Freakin Mobile Game v2.47.8 +1++ Cheat [ 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/
      • 45 replies
    • Harekat 2 : Online v0.4.6 +3 Jailed Cheats [ God Mode ]
      Modded/Hacked App: Harekat 2 : Online By DEVLAPS YAZILIM TEKNOLOJI TICARET VE PAZARLAMA LIMITED SIRKETI
      Bundle ID: com.devlaps.harekat2
      iTunes Store Link: https://apps.apple.com/us/app/harekat-2-online/id6477324341?uo=4


      Hack Features:
      - God Mode
      - Unlimited Ammo -> Will not decrease.
      - Unlimited Stamina -> Will decrease but can still use.


      Jailbreak required hack(s): [Mod Menu Hack] Harekat 2 : Online v0.4.2 +3 Cheats [ Defence ] - 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/
      • 14 replies
    • Harekat 2 : Online v0.4.6 +3 Cheats [ God Mode ]
      Modded/Hacked App: Harekat 2 : Online By DEVLAPS YAZILIM TEKNOLOJI TICARET VE PAZARLAMA LIMITED SIRKETI
      Bundle ID: com.devlaps.harekat2
      iTunes Store Link: https://apps.apple.com/us/app/harekat-2-online/id6477324341?uo=4


      Hack Features:
      - God Mode
      - Unlimited Ammo -> Will not decrease.
      - Unlimited Stamina -> Will decrease but can still use.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Harekat 2 : Online v0.4.2 +3 Jailed Cheats [ God Mode ] - 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/
      • 35 replies
    • Star Merge: Merging Match Game v1.493 +1++ Jailed Cheat [ Unlimited Everything ]
      Modded/Hacked App: Star Merge: Merging Match Game By PLUMMY GAMES OU
      Bundle ID: com.miramerge
      iTunes Store Link: https://apps.apple.com/us/app/star-merge-merging-match-game/id1580697094?uo=4


      Hack Features:
      - Unlimited Everything


      Jailbreak required hack(s): [Mod Menu Hack] Star Merge: Merging Match Game v1.43 +1++ Cheat [ Unlimited Everything ] - 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/
        • Like
      • 6 replies
    • Star Merge: Merging Match Game v1.493 +1++ Cheat [ Unlimited Everything ]
      Modded/Hacked App: Star Merge: Merging Match Game By PLUMMY GAMES OU
      Bundle ID: com.miramerge
      iTunes Store Link: https://apps.apple.com/us/app/star-merge-merging-match-game/id1580697094?uo=4


      Hack Features:
      - Unlimited Everything


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Star Merge: Merging Match Game v1.43 +1++ Jailed Cheat [ Unlimited Everything ] - 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/
      • 11 replies
    • Family Guy Freakin Mobile Game ( All Versions ) +1++ Cheat [ Unlimited Coins ]
      Modded/Hacked App: Family Guy Freakin Mobile Game By Jam City, Inc.
      Bundle ID: com.sgn.familyguy
      iTunes Store Link: https://apps.apple.com/us/app/family-guy-freakin-mobile-game/id1139342866


      Hack Features:
      - Unlimited Coins -> Use some. This feature will auto update itself once a new version of the app is released!
      -- Unlimited Uranium > Use the modded coins. 
      -- Unlimited Lives -> Use the modded coins.
      -- Unlimited Moves -> Use the modded coins.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Family Guy Freakin Mobile Game v2.47.8 +1++ Cheat [ 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/
      • 25 replies
    • Airport Simulator: Plane City v1.03.0004 +1++ Jailed Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Airport Simulator: Plane City By Playrion SARL
      Bundle ID: com.playrion.airportmanager
      iTunes Store Link: https://apps.apple.com/us/app/airport-simulator-plane-city/id1572244031?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Unlimited Currencies -> Earn or spend some. Use Sky Coins to buy Cash.


      Jailbreak required hack(s): [Mod Menu Hack] Airport Simulator: First Class v1.01.0202 +1++ Cheat [ Unlimited Currencies ] - 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/
      • 252 replies
    • Airport Simulator: Plane City v1.03.0004 +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: Airport Simulator: Plane City By Playrion SARL
      Bundle ID: com.playrion.airportmanager
      iTunes Store Link: https://apps.apple.com/us/app/airport-simulator-plane-city/id1572244031?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Unlimited Currencies -> Earn or spend some. Use Sky Coins to buy Cash.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Airport Simulator: First Class v1.01.0202 +1++ Cheat [ Unlimited Currencies ] - 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/
      • 201 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