Git Product home page Git Product logo

isjailbroken's Introduction

isJailbroken

Detect whether iOS device is jailbroken. iPX

Improvement:

  • Immune to Shadow & Liberty Lite (as per Oct 11, 2019)
  • Immune to UnSub (as per Jan 1, 2020)
  • Adding application origin (appstore or not) (as per Jan 1, 2020) (NOT TESTED)

Donate to me:

isjailbroken's People

Contributors

alexmay23 avatar avltree9798 avatar hdsenevi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

isjailbroken's Issues

How to implement in Swift?

I tried to convert your project into swift and my current project doesn't have any objective-c classes, so I do not want to use your project as it is. My only task is to protect my app from liberty lite bypass. Can you please help me to get rid of it or if you can help me to do it in a swift way that will be great?

Crash when Liberty Lite Block Jailbreak Detection

HI @avltree9798 , thank you so much for your awesome work.
I've some issue when i try to target the app to block jailbreak detection with liberty lite then the app will crash, do you have any solution to prevent the crash? and detect that the app is already inject by some tools such as liberty lite instead of crash.

Undefined symbol: _isSecurityCheckPassed

Hi,

Can you help me? i got error Undefined symbol: _isSecurityCheckPassed when building iOS app.
All function of JB.m is the same error undefined symbol

isRunningOnMac();
isJb();
isInjectedWithDynamicLibrary();
isSecurityCheckPassed();
isDebugged();
isFromAppStore();

Screen Shot 2021-03-01 at 10 36 57

Here is my code in AppDelegate.m

#import "JB.h"
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
#if DEBUG
  InitializeFlipper(application);
#endif

  RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
  RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
                                                   moduleName:@"ABC"
                                            initialProperties:nil];

  rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];

  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  UIViewController *rootViewController = [UIViewController new];
  rootViewController.view = rootView;
  self.window.rootViewController = rootViewController;
  [self.window makeKeyAndVisible];
  [RNSplashScreen show];
  
  // Jailbreak detection, if it is true, show alert, then exit app
  if (!isSecurityCheckPassed()) {
      UIAlertController *alertController = [UIAlertController
                                            alertControllerWithTitle:@"Jailbroken device is detected"
       message:@"Sorry, you cannot use this app as we have detected that your device has been jailbroken."
       preferredStyle:UIAlertControllerStyleAlert];
      UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"OK"
                                                             style:UIAlertActionStyleDefault
                                                           handler:^(UIAlertAction *action) {
        exit(1);
      }];
      [alertController addAction:cancelAction];
      [self.window.rootViewController presentViewController:alertController animated:YES completion:nil];
  }
  
  return YES;
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.