Skip to content

Instantly share code, notes, and snippets.

View vladkorotnev's full-sized avatar
💭
What's happening?

Akasaka Ryuunosuke vladkorotnev

💭
What's happening?
View GitHub Profile
anonymous
anonymous / Pirate This.sh
Created July 11, 2011 05:41
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