Last active
December 24, 2015 12:11
-
-
Save alessaba/bc3421de03cb3db40be5 to your computer and use it in GitHub Desktop.
JailbreakTest.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import os | |
def is_device_jailbroken(): | |
try: | |
os.listdir('/private') | |
except OSError: | |
return False | |
return True | |
print 'Is my device jailbroken:', is_device_jailbroken() |
It would be easier to consume if it was defined as a function...
import os
def is_device_jailbroken():
try:
os.listdir('/private')
except OSError:
return False
return True
print('Is my device jailbroken: '+ str(is_device_jailbroken()))
Yea, if you want...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cool! thanks.