Last active
June 23, 2021 09:42
-
-
Save saagarjha/339092a8a0f9a4170e23bddf20647b63 to your computer and use it in GitHub Desktop.
Allow debugserver to attach to arbitrary processes
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/sh | |
set -euo pipefail | |
cd /tmp | |
mkdir debug | |
wget https://raw.githubusercontent.com/sbingner/jailbreak-resources/master/layout/usr/share/entitlements/debugserver.xml | |
disk="$(hdik ram://100000 | xargs)" | |
echo "Using new disk at $disk" | |
newfs_hfs "$disk" | |
mount -t hfs "$disk" debug | |
cp /Developer/usr/bin/debugserver debug | |
ldid -Sdebugserver.xml debug/debugserver | |
umount debug | |
mount -t hfs -o union "$disk" /Developer/usr/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment