Created
June 16, 2013 10:19
-
-
Save wakinchan/5791620 to your computer and use it in GitHub Desktop.
assist to libcreverdump
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
#!/bin/bash | |
function dump { | |
if [ ! -e /usr/bin/class-dump ]; then | |
echo | |
echo "Cannot find Class Dump install it to use this option" | |
echo | |
exit 1 | |
fi | |
echo | |
echo decrypting... | |
DYLD_INSERT_LIBRARIES=/usr/lib/libcleverdump.dylib $1 | |
echo | |
dumpDir=$(ls -d -p -t $loc/* | grep dump | head -1) | |
echo | |
mv $dumpDir /var/root/$appName/ | |
echo "Moved /var/root/$appName/" | |
echo | |
echo "***** DUMP FINISH *****" | |
echo | |
} | |
function app { | |
echo "Locating $1 ..." | |
appName=$1 | |
loc=$(find /var/mobile/Applications -iname $1.app) | |
echo | |
dump $loc/$1 | |
} | |
case $1 in | |
-dump) | |
dump $2 | |
;; | |
''|-h) | |
echo Usage : libcleverdumphelper [option] [file] | |
echo -e '\t -h \t\tto Help' | |
echo -e '\t -app [AppName]\tto Find an App Path' | |
echo | |
;; | |
-app) | |
app $2 | |
echo $dir | |
;; | |
*) | |
dump $1 | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment