• Stars
    star
    283
  • Rank 146,066 (Top 3 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created almost 11 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A jailbreak detection library for iOS

DTTJailbreakDetection

Version License Platform Carthage compatible

TL;DR

A library to detect if an iOS device is jailbroken or not.

The good

Checking whether a device is jailbroken or not can have many advantages for your application. As we have already seen, an attacker can run tools like Cycript, GDB, Snoop-it etc to perform runtime analysis and steal sensitive data from within your application. If you are really looking to add an extra layer of security for your application, you should not allow your application to be run on a jailbroken device. [Prateek Gianchandani]

The bad

Please note that millions of users jailbreak their devices and hence not allowing an application to be run on a jailbroken device could have a significant impact on your user base. Another thing you can do is instead block some of the features in your application rather than disabing it entirely. [Prateek Gianchandani]

Installation

The easiest way to install DTTJailbreakDetection is to use CocoaPods. Just add the following line to your Podfile:

pod 'DTTJailbreakDetection'

Usage

To start using DTTJailbreakDetection:

#import <DTTJailbreakDetection/DTTJailbreakDetection.h>

Example

iOS 7 or older

if ([DTTJailbreakDetection isJailbroken]) {
    UIAlertView * alert =[[UIAlertView alloc ] initWithTitle:@"System Requirements"
                                                     message:@"This app is only supported on unmodified versions of iOS."
                                                    delegate:self
                                           cancelButtonTitle:@"OK"
                                           otherButtonTitles:nil];
    [alert show];
    // End your app
}

iOS 8 or newer

if ([DTTJailbreakDetection isJailbroken]) {
    UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"System Requirements"
                                                                             message:@"This app is only supported on unmodified versions of iOS."
                                                                      preferredStyle:UIAlertControllerStyleAlert];
    UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"OK"
                                                           style:UIAlertActionStyleDefault
                                                         handler:^(UIAlertAction *action) {
        // End your app
    }];
    [alertController addAction:cancelAction];
    [self presentViewController:alertController animated:YES completion:nil];
}

License

MIT

More Repositories

1

FontAwesome.swift

Use FontAwesome in your Swift projects
Swift
1,574
star
2

SwiftHEXColors

HEX color handling as an extension for UIColor.
Swift
693
star
3

aws-codebuild-extras

Add extra information of your AWS CodeBuild build via environment variables.
Shell
150
star
4

Notie

In-app notification in Swift, with customizable buttons and input text field.
Swift
84
star
5

TextEthan

Clone of TextEthan - a messaging app that allows anyone to message you, written in Swift.
Swift
47
star
6

Unxip

A Swift command line tool to extract signed archives (.xip files).
Swift
31
star
7

rules_swiftlint

Run SwiftLint in your Bazel build efficiently.
Starlark
25
star
8

AlertKit

Alert with a single line of Swift.
Swift
21
star
9

iOS8Colors

A category on UIColor which provides you some of the standard colors used throughout iOS 8
Objective-C
10
star
10

thinkpython

Source code with fixes and precompiled EPUB and MOBI of the "Think Python" book
TeX
9
star
11

docker-platex

Docker image for pLaTeX
Shell
8
star
12

rules_apple_extras

Extra Bazel rules for Apple platforms.
C
7
star
13

abbajs

A/B test analysis library in JavaScript
JavaScript
6
star
14

rules_objc

[DEPRECATED] Experimental Starlark implementation of Objective-C rules for Bazel.
Starlark
5
star
15

packup

Scaffold out a Swift package.
Swift
4
star
16

binomjs

A binomial distribution testing library in JavaScript
JavaScript
4
star
17

BINList

BIN lookup library in Swift
Swift
2
star
18

docker-nginx

Blazing fast nginx with latest stable version of nginx, memcached, PHP and HHVM
Nginx
2
star
19

homebrew-swift-runtime

Swift 5 Runtime Support for Command Line Tools
Ruby
2
star
20

CloudFlareDDNS

Dynamic DNS for CloudFlare
Shell
2
star
21

objective-c-style-guide

Objective-Cスタむルガむド
1
star
22

DummyFacebook

Shouldn't you be working?
Swift
1
star
23

HTTPMethod

Just an enum of HTTP request methods.
Swift
1
star
24

signifyd-node

Node.js Client for Signifyd API
CoffeeScript
1
star
25

homebrew-fonts

A custom Cask tap for installing Apple's new San Francisco font use in ο£ΏWatch
Ruby
1
star
26

bug-fixes-and-performance-improvements

Verified localization of "Bug fixes and performance improvements" release notes. Ready to use with fastlane.
Ruby
1
star
27

yes

yes command line tool written in Swift. 60+ times faster than macOS built-in yes.
Swift
1
star
28

docker-swift

A Docker container of Swift built from source from the latest commit on official Swift's repo.
1
star
29

altconf-2019-labs-bazel-starting-point

AltConf 2019 Labs - Fast iOS build with Bazel - Sample project starting point
Makefile
1
star