Skip to content

Instantly share code, notes, and snippets.

@alessaba
Created October 19, 2015 18:40
Show Gist options
  • Save alessaba/a4f597e719404ce7b307 to your computer and use it in GitHub Desktop.
Save alessaba/a4f597e719404ce7b307 to your computer and use it in GitHub Desktop.
JailbreakTest.py
# coding: utf-8
import subprocess
jailbroken=True
try:
subprocess.call(["ls", "-l"])
except OSError:
jailbroken=False
print 'Is my device jailbroken: '+ str(jailbroken)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment