GantMan / jail-monkey

A React Native library for identifying if a phone is rooted or mocking locations
MIT License
583 stars 145 forks source link

Bypass Jailbreak using Liberty Lite #82

Open hanifmhd opened 3 years ago

hanifmhd commented 3 years ago

Hi,

I want to ask, can this lib be bypassed using Liberty Lite? I want to make sure that jail-monkey prevents bypass from any tools, including Liberty Lite.

Thank you.

hannigand commented 3 years ago

I tested out Liberty Lite based on this comment and I can confirm that this library can be bypassed.

Tested on iPhone 8 iOS 14.2

hanifmhd commented 3 years ago

I tested out Liberty Lite based on this comment and I can confirm that this library can be bypassed.

Tested on iPhone 8 iOS 14.2

Thanks for the answer. Do you have any suggestion how to prevent it? or any lib for jailbreak that can prevent from bypassing?

anupamhore commented 3 years ago

My Pen Test also failed because the guys were using Liberty Lite. Is there any way to prevent this

harshitDewan commented 3 years ago

My Pen Test also failed because the guys were using Liberty Lite. Is there any way to prevent this

@anupamhore did you found any possible solution yet ?

anupamhore commented 3 years ago

Hi, Yes I have found a solution. Please implement from the below steps.

  1. Add these two attached files in the xcode project2. In your AppDelegate.m do the following    import "JB.h"

{

….

 //Jailbreak detection, if it is true, show alert, then exit app

  if (!isSecurityCheckPassed()) {

      UIAlertController *alertController = [UIAlertController

                                            alertControllerWithTitle:@"Jailbroken Device is Detected"

        message:@"Your device might have been modified. In order to protect your privacy, we will not run the application on this device. It is recommended to have your device checked by the device manufacturer."

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

  }

…..

…..

}

Considering you already have the jailbreak code in the react native side with the jail monkey plugin, use this in the xcode. It will work    

On Monday, 12 April, 2021, 06:40:41 pm GMT+8, harshitDewan ***@***.***> wrote:  

My Pen Test also failed because the guys were using Liberty Lite. Is there any way to prevent this

@anupamhore did you found any possible solution yet ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

harshitDewan commented 3 years ago

"Add these two attached files in the xcode project2" @anupamhore seems attachment didn't went through! Can you please reattached files? 1) import "JB.h" is it referring to jail-monkey plugin for react native ? (I have jail-monkey installed and setup done on react-native side).

Also any idea how can we test it in iOS Simulator?

anupamhore commented 3 years ago

Share me your personal Id. I will communicate with you On Wednesday, 14 April, 2021, 04:32:51 pm GMT+8, harshitDewan @.***> wrote:

@anupamhore

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.