Jump to content

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


xiaov

156 posts in this topic

Recommended Posts

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

@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  ? 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

    • TALION By GAMEVIL Inc. v5.7.80 +1 [Speed multiplier]
      Modded/Hacked App: TALION By GAMEVIL Inc.
      Bundle ID: com.gamevil.talion.ios.apple.global.normal
      iTunes Store Link: https://apps.apple.com/us/app/talion/id1258046552?uo=4



      Hack Features:
      - Attack Speed Multiplier Unlinked
      - More coming later


      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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 295 replies
    • SpearKnight Kr - 창술사 키우기-방치형RPG v2.0.38 +3 Cheat
      Modded/Hacked App: 창술사 키우기-방치형RPG By Changgon Woo
      Bundle ID: com.dragonheart.spearknighrpg
      iTunes Store Link: https://apps.apple.com/kr/app/%EC%B0%BD%EC%88%A0%EC%82%AC-%ED%82%A4%EC%9A%B0%EA%B8%B0-%EB%B0%A9%EC%B9%98%ED%98%95rpg/id1584649578?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:
      - Loot Multiplier


      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/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above. Use Safari/Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If necessary, tap on the downloaded file, and then, you will need to press 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 56 replies
    • NecroMerger - Idle Merge Game v1.49 +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: NecroMerger - Idle Merge Game By Grumpy Rhino Games LTD
      Bundle ID: com.grumpyrhinogames.necromerger
      iTunes Store Link: https://apps.apple.com/us/app/necromerger-idle-merge-game/id1611769159
       

      Hack Features:
      - Unlimited Currencies -> Will not decrease and can always afford whatever you're buying.


      Jailbreak required hack(s): [Mod Menu Hack] NecroMerger - Idle Merge Game v1.01 +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/
        • Informative
        • Agree
        • Thanks
        • Like
      • 18 replies
    • NecroMerger - Idle Merge Game v1.49 +1++ Cheat [ Unlimited Currencies ]
      Modded/Hacked App: NecroMerger - Idle Merge Game By Grumpy Rhino Games LTD
      Bundle ID: com.grumpyrhinogames.necromerger
      iTunes Store Link: https://apps.apple.com/us/app/necromerger-idle-merge-game/id1611769159
       

      Hack Features:
      - Unlimited Currencies -> Will not decrease and can always afford whatever you're buying.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] NecroMerger - Idle Merge Game v1.01 +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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 14 replies
    • MineGeon: Space Mining Dungeon v1.16.4 +6 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: MineGeon: Space Mining Dungeon By KICKSTONE STUDIO SPA
      Bundle ID: com.KickStoneStudios.MineGeon
      iTunes Store Link: https://apps.apple.com/us/app/minegeon-space-mining-dungeon/id6443925239?uo=4


      Hack Features:
      - Unlimited Currencies -> Earn some.
      - God Mode
      - One-Hit Kill
      - Unlimited Ammo -> Will not decrease.
      - Unlimited Stamina -> Will not decrease.


      Jailbreak required hack(s): [Mod Menu Hack] MineGeon: Space Mining Dungeon v1.15.6 +6 Cheats [ 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/
        • Informative
        • Agree
        • Thanks
        • Like
      • 9 replies
    • MineGeon: Space Mining Dungeon v1.16.4 +6 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: MineGeon: Space Mining Dungeon By KICKSTONE STUDIO SPA
      Bundle ID: com.KickStoneStudios.MineGeon
      iTunes Store Link: https://apps.apple.com/us/app/minegeon-space-mining-dungeon/id6443925239?uo=4


      Hack Features:
      - Unlimited Currencies -> Earn some.
      - God Mode
      - One-Hit Kill
      - Unlimited Ammo -> Will not decrease.
      - Unlimited Stamina -> Will not decrease.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] MineGeon: Space Mining Dungeon v1.15.6 +6 Jailed Cheats [ 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/
        • Informative
        • Agree
        • Like
      • 17 replies
    • Forza Customs - Restore Cars v4.0.10087 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Forza Customs - Restore Cars By Hutch Games Ltd
      Bundle ID: com.hutchgames.ccw
      iTunes Store Link: https://apps.apple.com/us/app/forza-customs-restore-cars/id6448070968?uo=4


      Hack Features:
      - Unlimited Currencies
      - Unlimited Lives -> Spend some.


      Jailbreak required hack(s): [Mod Menu Hack] Forza Customs - Restore Cars v0.9.6395 +2 Cheats [ 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 55 replies
    • Forza Customs - Restore Cars v4.0.10087 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Forza Customs - Restore Cars By Hutch Games Ltd
      Bundle ID: com.hutchgames.ccw
      iTunes Store Link: https://apps.apple.com/us/app/forza-customs-restore-cars/id6448070968?uo=4


      Hack Features:
      - Unlimited Currencies
      - Unlimited Lives -> Spend some.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Forza Customs - Restore Cars v0.9.6395 +2 Jailed Cheats [ 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/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 33 replies
    • Modern Community v1.4006.107228 +1++ Jailed Cheat [ Unlimited Everything ]
      Modded/Hacked App: Modern Community By Magic Tavern, Inc.
      Bundle ID: com.sts.vision
      iTunes Store Link: https://apps.apple.com/us/app/modern-community/id6447748647?uo=4


      Hack Features:
      - Unlimited Everything


      Jailbreak required hack(s): [Mod Menu Hack] Modern Community v1.1008.81088 +1++ Cheat [ Unlimited Everything ] - ViP 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
        • Thanks
        • Winner
        • Like
      • 36 replies
    • Modern Community v1.4006.107228 +1++ Cheat [ Unlimited Everything ]
      Modded/Hacked App: Modern Community By Magic Tavern, Inc.
      Bundle ID: com.sts.vision
      iTunes Store Link: https://apps.apple.com/us/app/modern-community/id6447748647?uo=4


      Hack Features:
      - Unlimited Everything


      Non-Jailbroken & No Jailbreak required hack(s): [No Jailbreak Required] Modern Community v1.1008.81088 +1++ Jailed Cheat [ Unlimited Everything ] - ViP Non-Jailbroken Hacks & 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/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 41 replies
    • Garden Affairs: Design & Match v2.5604 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Garden Affairs: Design & Match By JUDIAN TECHNOLOGY INTERNATIONAL PTE. LTD.
      Bundle ID: com.huayuan.xiaochu
      iTunes Store Link: https://apps.apple.com/us/app/garden-affairs-design-match/id1514355595?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Stars


      Jailbreak required hack(s): [Mod Menu Hack] Garden Affairs: Design & Match v2.4601 +2 Cheats [ 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/
        • Informative
        • Haha
        • Thanks
        • Like
      • 36 replies
    • Garden Affairs: Design & Match v2.5604 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Garden Affairs: Design & Match By JUDIAN TECHNOLOGY INTERNATIONAL PTE. LTD.
      Bundle ID: com.huayuan.xiaochu
      iTunes Store Link: https://apps.apple.com/us/app/garden-affairs-design-match/id1514355595?uo=4


      Hack Features:
      - Unlimited Coins
      - Unlimited Stars


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Garden Affairs: Design & Match v2.4601 +2 Jailed Cheats [ 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/
        • Haha
        • 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