Changes with some jailbreak stuff and device

This commit is contained in:
LukeZGD 2022-07-29 10:58:15 +08:00
parent 1e378c8506
commit bbb11ea01f
4 changed files with 19 additions and 9 deletions

2
.gitignore vendored
View File

@ -9,6 +9,7 @@
*.shsh2 *.shsh2
*.txt *.txt
Cydia* Cydia*
exploit
first_run first_run
iP*Custom*/ iP*Custom*/
iP*Restore/ iP*Restore/
@ -20,5 +21,6 @@ resources/jailbreak/untether.tar
resources/libimobiledevice*/ resources/libimobiledevice*/
resources/ramdisk/ resources/ramdisk/
saved/ saved/
sshdeb.tar
tmp/ tmp/
version.xml version.xml

View File

@ -42,16 +42,20 @@ FindDevice() {
GetDeviceValues() { GetDeviceValues() {
local ideviceinfo2 local ideviceinfo2
local version local version
Log "Finding device in Normal mode..."
DeviceState= DeviceState=
ideviceinfo2=$($ideviceinfo -s)
if [[ $? != 0 && $NoDevice != 1 ]]; then if [[ $NoDevice == 1 ]]; then
Log "Finding device in DFU/recovery mode..."
DeviceState="$($irecovery -q 2>/dev/null | grep -w "MODE" | cut -c 7-)"
elif [[ $NoDevice == 1 ]]; then
Log "NoDevice argument detected. Skipping device detection" Log "NoDevice argument detected. Skipping device detection"
DeviceState="NoDevice" DeviceState="NoDevice"
else
Log "Finding device in Normal mode..."
ideviceinfo2=$($ideviceinfo -s)
opt=$?
fi
if [[ $opt != 0 && $NoDevice != 1 ]]; then
Log "Finding device in DFU/recovery mode..."
DeviceState="$($irecovery -q 2>/dev/null | grep -w "MODE" | cut -c 7-)"
elif [[ -n $ideviceinfo2 ]]; then elif [[ -n $ideviceinfo2 ]]; then
DeviceState="Normal" DeviceState="Normal"
fi fi

View File

@ -182,7 +182,7 @@ IPSW32() {
echo "nvram -d boot-partition; nvram -d boot-ramdisk" >> tmp/reboot.sh echo "nvram -d boot-partition; nvram -d boot-ramdisk" >> tmp/reboot.sh
echo "/usr/bin/haxx_overwrite -$HWModel" >> tmp/reboot.sh echo "/usr/bin/haxx_overwrite -$HWModel" >> tmp/reboot.sh
#JBFiles=("../resources/jailbreak/sshdeb.tar") # uncomment to add openssh to custom ipsw #JBFiles=("../resources/jailbreak/sshdeb.tar") # uncomment to add openssh to custom ipsw
#JailbreakFiles $JBURL/sshdeb.tar 0bffece0f8fd939c479159b57e923dd8c06191d3 # uncomment to add openssh to custom ipsw #JailbreakFiles $JBURL/sshdeb.tar sshdeb.tar 0bffece0f8fd939c479159b57e923dd8c06191d3 # uncomment to add openssh to custom ipsw
JBFiles2=("bin.tar" "cydia.tar" "untether.tar") JBFiles2=("bin.tar" "cydia.tar" "untether.tar")
JBSHA1=("98034227c68610f4c7dd48ca9e622314a1e649e7" "2e9e662afe890e50ccf06d05429ca12ce2c0a3a3" "f88ec9a1b3011c4065733249363e9850af5f57c8") JBSHA1=("98034227c68610f4c7dd48ca9e622314a1e649e7" "2e9e662afe890e50ccf06d05429ca12ce2c0a3a3" "f88ec9a1b3011c4065733249363e9850af5f57c8")
mkdir -p tmp/jailbreak mkdir -p tmp/jailbreak
@ -250,6 +250,10 @@ IPSW4() {
if [[ $OSVer == "4.3"* ]]; then if [[ $OSVer == "4.3"* ]]; then
IPSW4Cherry IPSW4Cherry
return return
else
local JBURL2="https://github.com/LukeZGD/powdersn0w_pub/raw/main/xpwn/src/target/n90/11D257/exploit"
JailbreakFiles $JBURL2 exploit bedd10a96ba0f305a0af74a15e1eee88946070a1
cp resources/jailbreak/exploit resources/firmware/src/target/n90/11D257/
fi fi
if [[ $Jailbreak == 1 ]]; then if [[ $Jailbreak == 1 ]]; then