Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix the path in run.sh #29

Merged
merged 3 commits into from
Oct 19, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion data/dyldmagic/IOKit

This file was deleted.

1 change: 1 addition & 0 deletions data/dyldmagic/IOKit
1 change: 0 additions & 1 deletion data/dyldmagic/cache

This file was deleted.

1 change: 1 addition & 0 deletions data/dyldmagic/cache
1 change: 0 additions & 1 deletion data/dyldmagic/dyld

This file was deleted.

1 change: 1 addition & 0 deletions data/dyldmagic/dyld
1 change: 0 additions & 1 deletion data/dyldmagic/libsystem_kernel.dylib

This file was deleted.

1 change: 1 addition & 0 deletions data/dyldmagic/libsystem_kernel.dylib
1 change: 1 addition & 0 deletions data/dyldmagic_amfid/IOKit
1 change: 1 addition & 0 deletions data/dyldmagic_amfid/cache
1 change: 1 addition & 0 deletions data/dyldmagic_amfid/dyld
1 change: 1 addition & 0 deletions data/dyldmagic_amfid/libsystem_kernel.dylib
14 changes: 6 additions & 8 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Initial vars ###

SCRIPTPATH=`dirname $0`
ddi="$(find /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ 2>/dev/null | grep "8.4\|.dmg'$'" || echo './data/DeveloperDiskImage.dmg' | head -1)"
ddi="$(find /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 2>/dev/null | grep "8.4/.*.dmg$" || echo './data/DeveloperDiskImage.dmg' | head -1)"

cd $SCRIPTPATH

Expand All @@ -30,9 +30,8 @@ while ! (./bin/afcclient deviceinfo | grep -q FSTotalBytes); do sleep 5; done 2>
}

### Jailbreak Functions ###

# Stage 1:
# set-up environment, install app and swap binaries
# set-up environment, install app and swap binaries

function stage1(){
echo "Setting up environment..."
Expand Down Expand Up @@ -124,13 +123,13 @@ echo "Fetching symbols..."
echo "Compiling jailbreak files..."
cd tmp
lipo -info dyld.fat | grep Non-fat >/dev/null || (lipo dyld.fat -thin "$(lipo -info dyld.fat | tr ' ' '\n' | grep v7)" -output dyld; mv dyld dyld.fat) && mv dyld.fat dyld
$SCRIPTPATH/bin/jtool -e IOKit cache
$SCRIPTPATH/bin/jtool -e libsystem_kernel.dylib cache
cd $SCRIPTPATH/data/dyldmagic
$SCRIPTPATH./bin/jtool -e IOKit cache
$SCRIPTPATH./bin/jtool -e libsystem_kernel.dylib cache
cd $SCRIPTPATH./data/dyldmagic
./make.sh

echo "Copying files to device..."
cd $SCRIPTPATH
cd $SCRIPTPATH./../
./bin/afcclient put ./data/dyldmagic/magic.dylib PhotoData/KimJongCracks/Library/PrivateFrameworks/GPUToolsCore.framework/GPUToolsCore
./bin/afcclient put ./data/untether/untether drugs
zcat ./data/bootstrap.tgz > ./tmp/bootstrap.tar
Expand All @@ -144,4 +143,3 @@ echo "Tap on the jailbreak icon to crash the kernel (or 0wn it if you're in luck
stage0 || abort

exit 0