Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void __cdecl -[StartupViewController viewDidLoad](StartupViewController *self, SEL a2)
- {
- StartupViewController *v2; // x19
- void *v3; // x0
- void *v4; // x0
- float v5; // s0
- void *v6; // x0
- void *v7; // x21
- void *v8; // x0
- void *v9; // x0
- double v10; // d0
- void *v11; // x0
- void *v12; // x0
- void *v13; // x0
- void *v14; // x0
- void *v15; // x0
- void *v16; // x0
- void *v17; // x0
- void *v18; // x0
- void *v19; // x0
- void *v20; // x0
- OHttpClient *v21; // x20
- void *v22; // x0
- void *v23; // x19
- void *v24; // x0
- double v25; // d2
- void *v26; // x19
- void *v27; // x19
- void *v28; // x0
- double v29; // d2
- void *v30; // x0
- void *v31; // x0
- void *v32; // x0
- void *v33; // x0
- void *v34; // x0
- void *v35; // x0
- StartupViewController *v36; // [xsp+10h] [xbp-60h]
- __objc2_class *v37; // [xsp+18h] [xbp-58h]
- v2 = self;
- v36 = self;
- v37 = &OBJC_CLASS___StartupViewController;
- objc_msgSendSuper2(&v36, "viewDidLoad");
- v3 = objc_msgSend(&OBJC_CLASS___UIDevice, "currentDevice");
- v4 = objc_msgSend(v3, "systemVersion");
- objc_msgSend(v4, "floatValue");
- if ( v5 >= 7.0 )
- {
- v6 = objc_msgSend(&OBJC_CLASS___UIApplication, "sharedApplication");
- objc_msgSend(v6, "setStatusBarStyle:animated:", 0LL, 0LL);
- if ( (unsigned int)objc_msgSend(v2, "respondsToSelector:", "edgesForExtendedLayout") )
- objc_msgSend(v2, "setEdgesForExtendedLayout:", 0LL);
- }
- v7 = objc_msgSend(&OBJC_CLASS___UIColor, "blackColor");
- v8 = objc_msgSend(v2, "view");
- objc_msgSend(v8, "setBackgroundColor:", v7);
- v9 = objc_msgSend((void *)v2->_imageView, "layer");
- LODWORD(v10) = 0;
- objc_msgSend(v9, "setOpacity:", v10);
- v11 = objc_msgSend(&OBJC_CLASS___UIApplication, "sharedApplication");
- v12 = objc_msgSend(v11, "delegate");
- v13 = objc_msgSend(v12, "settings");
- objc_msgSend(v13, "userId");
- v14 = objc_msgSend(&OBJC_CLASS___UIApplication, "sharedApplication");
- v15 = objc_msgSend(v14, "delegate");
- v16 = objc_msgSend(v15, "settings");
- v17 = objc_msgSend(v16, "isCorporateUser");
- if ( (_DWORD)v17 )
- {
- v18 = objc_msgSend(&OBJC_CLASS___UIApplication, "sharedApplication");
- v19 = objc_msgSend(v18, "delegate");
- v20 = objc_msgSend(v19, "settings");
- v17 = objc_msgSend(v20, "companyId");
- }
- if ( (unsigned int)sub_100037950(v17) ) // <-------------------------- HERE IS THE JAILBREAK DETECTION
- {
- +[OAlertView showWithTag:title:message:delegate:buttonTitle:](
- &OBJC_CLASS___OAlertView,
- "showWithTag:title:message:delegate:buttonTitle:",
- 444LL,
- CFSTR("Jailbreak Detected"),
- CFSTR("This app is not supported on jailbroken devices."),
- v2,
- CFSTR("Exit")); // <--------------- The ONLY button on the AlertView will terminate/exit app.
- }
- else
- {
- v21 = v2->_httpClient1;
- v22 = objc_msgSend(
- CFSTR("http://smtpush.doortodoor.co.kr"),
- "stringByAppendingString:",
- CFSTR("/NPLUS_emergency.htm"));
- -[OHttpClient requestWithUrl:screenId:params:httpMethod:delegate:](
- v21,
- "requestWithUrl:screenId:params:httpMethod:delegate:",
- v22,
- 0LL,
- 0LL,
- CFSTR("GET"),
- v2);
- }
- v23 = objc_msgSend(&OBJC_CLASS___UILabel, "alloc");
- v24 = objc_msgSend(&OBJC_CLASS___UIScreen, "mainScreen");
- objc_msgSend(v24, "bounds");
- v26 = objc_msgSend(v23, "initWithFrame:", 0.0, 22.0, v25 + -3.0, 10.0);
- if ( (unsigned int)+[OUtils isIPhoneX](&OBJC_CLASS___OUtils, "isIPhoneX") )
- {
- NSLog(CFSTR("x x x"));
- v27 = objc_msgSend(&OBJC_CLASS___UILabel, "alloc");
- v28 = objc_msgSend(&OBJC_CLASS___UIScreen, "mainScreen");
- objc_msgSend(v28, "bounds");
- v26 = objc_msgSend(v27, "initWithFrame:", 0.0, 66.0, v29 + -3.0, 10.0);
- }
- v30 = objc_msgSend(&OBJC_CLASS___NSBundle, "mainBundle");
- v31 = objc_msgSend(v30, "infoDictionary");
- v32 = objc_msgSend(v31, "objectForKey:", CFSTR("CFBundleShortVersionString"));
- v33 = objc_msgSend(&OBJC_CLASS___NSString, "stringWithFormat:", CFSTR("v%@ "), v32);
- objc_msgSend(v26, "setText:", v33);
- v34 = objc_msgSend(&OBJC_CLASS___UIFont, "systemFontOfSize:", 11.0);
- objc_msgSend(v26, "setFont:", v34);
- objc_msgSend(v26, "setNumberOfLines:", 1LL);
- v35 = objc_msgSend(&OBJC_CLASS___UIColor, "darkGrayColor");
- objc_msgSend(v26, "setTextColor:", v35);
- objc_msgSend(v26, "setTextAlignment:", 2LL);
- }
- bool sub_100037950()
- {
- void *v0; // x0
- void *v1; // x0
- void *v2; // x0
- void *v3; // x0
- void *v4; // x0
- void *v5; // x0
- void *v6; // x20
- void *v7; // x0
- FILE *v8; // x0
- void *v10; // x0
- __int64 v11; // [xsp+8h] [xbp-28h]
- v0 = objc_msgSend(&OBJC_CLASS___NSFileManager, "defaultManager");
- if ( (unsigned __int64)objc_msgSend(v0, "fileExistsAtPath:", CFSTR("/Applications/Cydia.app")) & 1 )
- return 1LL;
- v1 = objc_msgSend(&OBJC_CLASS___NSFileManager, "defaultManager");
- if ( (unsigned __int64)objc_msgSend(v1, "fileExistsAtPath:", CFSTR("/Library/MobileSubstrate/MobileSubstrate.dylib")) & 1 )
- return 1LL;
- v2 = objc_msgSend(&OBJC_CLASS___NSFileManager, "defaultManager");
- if ( (unsigned __int64)objc_msgSend(v2, "fileExistsAtPath:", CFSTR("/bin/bash")) & 1 )
- return 1LL;
- v3 = objc_msgSend(&OBJC_CLASS___NSFileManager, "defaultManager");
- if ( (unsigned __int64)objc_msgSend(v3, "fileExistsAtPath:", CFSTR("/usr/sbin/sshd")) & 1 )
- return 1LL;
- v4 = objc_msgSend(&OBJC_CLASS___NSFileManager, "defaultManager");
- if ( (unsigned __int64)objc_msgSend(v4, "fileExistsAtPath:", CFSTR("/etc/apt")) & 1 )
- return 1LL;
- v5 = objc_msgSend(&OBJC_CLASS___NSFileManager, "defaultManager");
- if ( (unsigned __int64)objc_msgSend(v5, "fileExistsAtPath:", CFSTR("/private/var/lib/apt/")) & 1 )
- return 1LL;
- v6 = objc_msgSend(&OBJC_CLASS___UIApplication, "sharedApplication");
- v7 = objc_msgSend(&OBJC_CLASS___NSURL, "URLWithString:", CFSTR("cydia://package/com.example.package"));
- if ( (unsigned __int64)objc_msgSend(v6, "canOpenURL:", v7) & 1 )
- return 1LL;
- v8 = fopen("/bin/bash", "r");
- if ( v8
- || (v8 = fopen("/Applications/Cydia.app", "r")) != 0LL
- || (v8 = fopen("/Library/MobileSubstrate/MobileSubstrate.dylib", "r")) != 0LL
- || (v8 = fopen("/usr/sbin/sshd", "r")) != 0LL
- || (v8 = fopen("/etc/apt", "r")) != 0LL )
- {
- fclose(v8);
- return 1LL;
- }
- fclose(0LL);
- objc_msgSend(
- CFSTR("This is a test."),
- "writeToFile:atomically:encoding:error:",
- CFSTR("/private/jailbreak.txt"),
- 1LL,
- 4LL,
- &v11);
- v10 = objc_msgSend(&OBJC_CLASS___NSFileManager, "defaultManager");
- objc_msgSend(v10, "removeItemAtPath:error:", CFSTR("/private/jailbreak.txt"), 0LL);
- return v11 == 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement