Skip to content

Instantly share code, notes, and snippets.

Created July 11, 2011 05:41
Show Gist options
  • Save anonymous/1075359 to your computer and use it in GitHub Desktop.
Save anonymous/1075359 to your computer and use it in GitHub Desktop.
A simple script to search for pirated apps (unencrypted Apps), break them, then remove installous. It depends on ericautilities, Darwin cc tools, apt-get, grep, gawk and coreutils.
#!/bin/bash
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
for App in $(find /var/mobile/Applications -maxdepth 3 -type f -name Info.plist); do
     if [ "$(otool -l "`dirname $App`/`plutil -key CFBundleExecutable "$App"`" | grep cryptid | awk '{print $2}')" = "0" ]; then
#Break app
rm -rf "`dirname '$App'`"
#Remove installous scum
          apt-get remove us.hackulo.* -y 
     fi
done
IFS=$SAVEIFS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment