mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-18 04:21:50 +01:00
Re-add some stuff
for iOS 10 activation workaround
This commit is contained in:
parent
10ce7f9f93
commit
dd8a3449be
16
restore.sh
16
restore.sh
@ -200,21 +200,29 @@ function kDFU {
|
|||||||
Log "Patching iBSS..."
|
Log "Patching iBSS..."
|
||||||
bspatch tmp/iBSS.dec tmp/pwnediBSS resources/patches/$iBSS.patch
|
bspatch tmp/iBSS.dec tmp/pwnediBSS resources/patches/$iBSS.patch
|
||||||
|
|
||||||
# Regular kloader only works on iOS 6 to 9, so other versions are provided for iOS 5 and 10
|
|
||||||
[[ $VersionDetect == 1 ]] && kloader='kloader_hgsp'
|
[[ $VersionDetect == 1 ]] && kloader='kloader_hgsp'
|
||||||
[[ $VersionDetect == 5 ]] && kloader='kloader5'
|
[[ $VersionDetect == 5 ]] && kloader='kloader5'
|
||||||
[[ ! $kloader ]] && kloader='kloader'
|
[[ ! $kloader ]] && kloader='kloader'
|
||||||
|
|
||||||
# SSH kloader and pwnediBSS
|
|
||||||
echo "* Make sure OpenSSH/Dropbear is installed on the device!"
|
|
||||||
iproxy 2222:22 &>/dev/null &
|
iproxy 2222:22 &>/dev/null &
|
||||||
iproxyPID=$!
|
iproxyPID=$!
|
||||||
|
WifiAddr=$(echo "$ideviceinfo" | grep 'WiFiAddress' | cut -c 14-)
|
||||||
|
WifiAddrDecr=$(echo $(printf "%x\n" $(expr $(printf "%d\n" 0x$(echo "${WifiAddr}" | tr -d ':')) - 1)) | sed 's/\(..\)/\1:/g;s/:$//')
|
||||||
|
echo '#!/bin/bash' > tmp/pwn.sh
|
||||||
|
echo "nvram wifiaddr=$WifiAddrDecr" >> tmp/pwn.sh
|
||||||
|
chmod +x tmp/pwn.sh
|
||||||
|
|
||||||
|
echo "* Make sure OpenSSH/Dropbear is installed on the device!"
|
||||||
Log "Copying stuff to device via SSH..."
|
Log "Copying stuff to device via SSH..."
|
||||||
echo "* (Enter root password of your iOS device when prompted, default is 'alpine')"
|
echo "* (Enter root password of your iOS device when prompted, default is 'alpine')"
|
||||||
scp -P 2222 resources/tools/$kloader tmp/pwnediBSS root@127.0.0.1:/
|
scp -P 2222 resources/tools/$kloader tmp/pwnediBSS tmp/pwn.sh root@127.0.0.1:/
|
||||||
[ $? == 1 ] && Error "Cannot connect to device via SSH." "Please check your ~/.ssh/known_hosts file and try again"
|
[ $? == 1 ] && Error "Cannot connect to device via SSH." "Please check your ~/.ssh/known_hosts file and try again"
|
||||||
Log "Entering kDFU mode..."
|
Log "Entering kDFU mode..."
|
||||||
|
if [[ $VersionDetect == 1 ]]; then
|
||||||
|
ssh -p 2222 root@127.0.0.1 "/pwn.sh; /$kloader /pwnediBSS" &
|
||||||
|
else
|
||||||
ssh -p 2222 root@127.0.0.1 "/$kloader /pwnediBSS" &
|
ssh -p 2222 root@127.0.0.1 "/$kloader /pwnediBSS" &
|
||||||
|
fi
|
||||||
echo
|
echo
|
||||||
echo "* Press POWER or HOME button when screen goes black on the device"
|
echo "* Press POWER or HOME button when screen goes black on the device"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user