Skip to content

Commit ceaf864

Browse files
Support for checkra1n 0.12.2 beta
1 parent 7d3e93d commit ceaf864

12 files changed

+70
-34
lines changed

ReleaseNotes.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
- Support for checkra1n 0.12.1 beta
1+
- Support for checkra1n 0.12.2 beta
2+
- Add an option to ssh into an iDevice
23

34
**SHA-256:**

TODO.md

-2
This file was deleted.

build.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
[[ $EUID -ne 0 ]] && { echo 'Please run as root'; exit 1; }
99

1010
# Change these variables to modify the version of checkra1n
11-
checkra1n_amd64='https://assets.checkra.in/downloads/linux/cli/x86_64/63282886157dd08079c8e41522fdc6d58cfecda783ea8cca79ffc1116f13c355/checkra1n'
12-
checkra1n_i686='https://assets.checkra.in/downloads/linux/cli/i486/7ea7cc69d58308e2e96bc9f40f63f4f135d3b8fafd49a1bb4f4a849876f49fdb/checkra1n'
11+
checkra1n_amd64='https://assets.checkra.in/downloads/linux/cli/x86_64/4bf2f7e1dd201eda7d6220350db666f507d6f70e07845b772926083a8a96cd2b/checkra1n'
12+
checkra1n_i686='https://assets.checkra.in/downloads/linux/cli/i486/7926a90f4d0b73bdc514bd813e1443e4fc579e1674e34622b4bd1002a3322e0f/checkra1n'
1313

1414
echo -e "\033[0;32m############################################"
1515
echo -e "\033[0;32m# #\033[0m"
@@ -19,13 +19,13 @@ echo -e "\033[0;32m############################################\033[0m"
1919

2020
# Ask for the version and architecture if variables are empty
2121
while [[ -z $VERSION ]]; do
22-
read -p 'What is the version? ' VERSION
22+
read -rp 'What is the version? ' VERSION
2323
done
2424
echo ''
2525
until [[ $ARCH = 'amd64' || $ARCH = 'i686' ]]; do
2626
echo '1 For amd64'
2727
echo '2 For i686'
28-
read -p 'Build for amd64 or for i686? (default: amd64) ' input_arch
28+
read -rp 'Build for amd64 or for i686? (default: amd64) ' input_arch
2929
[[ $input_arch = 1 ]] && ARCH='amd64'
3030
[[ $input_arch = 2 ]] && ARCH='i686'
3131
[[ -z $input_arch ]] && ARCH='amd64'

scripts/common

+18-8
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,26 @@ PURPLE='\033[0;35m'
88
NC='\033[0m'
99
BOLD='\033[1;37m'
1010

11-
function whatstep() {
11+
whatstep() {
1212
echo -e "${BLUE}${message}...${NC}"
1313
}
1414

15-
function successful() {
15+
successful() {
1616
echo -e "${GREEN}Done ${message,}.${NC}\n"
1717
}
1818

19-
function failed() {
19+
failed() {
2020
{
2121
killall iproxy
2222
killall checkra1n
2323
} > /dev/null 2>&1
2424
message_uncapitalised="${message,}"
2525
echo -e "${RED}Failed to ${message_uncapitalised//ing/}.${NC}"
26-
read -p 'Press enter to quit'
26+
read -rp 'Press enter to quit'
2727
exit 1
2828
}
2929

30-
function android_logo() {
30+
android_logo() {
3131
echo -e "${GREEN} # #${NC}"
3232
echo -e "${GREEN} ###########${NC}"
3333
echo -e "${GREEN} ### ####### ###${NC}"
@@ -46,7 +46,7 @@ function android_logo() {
4646
echo ''
4747
}
4848

49-
function linux_logo() {
49+
linux_logo() {
5050
echo -e "${YELLOW} @@@@@@@@@@${NC}"
5151
echo -e "${YELLOW} %@@@@@@@@@@@${NC}"
5252
echo -e "${YELLOW} @ @ @ .@ @@@${NC}"
@@ -65,19 +65,29 @@ function linux_logo() {
6565
echo ''
6666
}
6767

68-
function odysseyn1x_logo() {
68+
odysseyn1x_logo() {
6969
echo ' ___ __| |_ _ ___ ___ ___ _ _ _ __ / |_ __'
7070
echo ' / _ \ / _` | | | / __/ __|/ _ \ | | | `_ \| \ \/ /'
7171
echo '| (_) | (_| | |_| \__ \__ \ __/ |_| | | | | |> < '
7272
echo ' \___/ \__,_|\__, |___/___/\___|\__, |_| |_|_/_/\_\'
7373
echo ' |___/ |___/ '
7474
}
7575

76-
function odysseyra1n_logo() {
76+
odysseyra1n_logo() {
7777
echo -e "${PURPLE} ___ __| |_ _ ___ ___ ___ _ _ _ __ __ _/ |_ __ ${NC}"
7878
echo -e "${PURPLE} / _ \ / _\` | | | / __/ __|/ _ \ | | | '__/ _\` | | '_ \ ${NC}"
7979
echo -e "${PURPLE}| (_) | (_| | |_| \__ \__ \ __/ |_| | | | (_| | | | | |${NC}"
8080
echo -e "${PURPLE} \___/ \__,_|\__, |___/___/\___|\__, |_| \__,_|_|_| |_|${NC}"
8181
echo -e "${PURPLE} |___/ |___/ ${NC}"
8282
echo ''
8383
}
84+
85+
ssh_logo() {
86+
echo ' _ '
87+
echo ' ___ ___| |__ '
88+
echo "/ __/ __| '_ \ "
89+
echo '\__ \__ \ | | |'
90+
echo '|___/___/_| |_|'
91+
echo ''
92+
93+
}

scripts/odysseyn1x_menu

+16-10
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,45 @@ source /usr/bin/common
44
export NEWT_COLORS='root=,black border=white,black window=white,black title=white,black textbox=white,black listbox=white,black'
55

66
while true; do
7-
CHOICE=$(whiptail --nocancel --title "Odysseyn1x" --menu "" 13 40 6 \
7+
CHOICE=$(whiptail --nocancel --title "Odysseyn1x" --menu "" 13 40 7 \
88
"1" "Checkra1n" \
99
"2" "Odysseyra1n" \
1010
"3" "Project Sandcastle" \
1111
"4" "Shut down" \
1212
"5" "Reboot" \
13-
"6" "Shell" 3>&1 1>&2 2>&3)
13+
"6" "SSH" \
14+
"7" "Shell" 3>&1 1>&2 2>&3)
1415
case $CHOICE in
1516
1)
1617
clear
1718
/usr/bin/checkra1n
1819
;;
1920
2)
21+
clear
2022
/usr/bin/odysseyra1n
2123
;;
2224
3)
2325
/usr/bin/projectsandcastle_menu
2426
;;
2527
4)
26-
clear
27-
echo -e "${BLUE}I hope you enjoyed using odysseyn1x, see you soon!${NC}\n"
28-
odysseyn1x_logo
29-
sleep 0.5
28+
{
29+
clear
30+
odysseyn1x_logo
31+
} &
3032
/usr/sbin/shutdown now
3133
;;
3234
5)
33-
clear
34-
echo -e "${BLUE}I hope you enjoyed using odysseyn1x, see you soon!${NC}\n"
35-
odysseyn1x_logo
36-
sleep 0.5
35+
{
36+
clear
37+
odysseyn1x_logo
38+
} &
3739
/usr/sbin/reboot
3840
;;
3941
6)
42+
clear
43+
/usr/bin/ssh_into_ios
44+
;;
45+
7)
4046
clear
4147
break
4248
;;

scripts/odysseyra1n

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
clear
32
# Load functions and variables
43
source /usr/bin/common
54
cd /root/odysseyra1n/

scripts/projectsandcastle_menu

+3
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ CHOICE=$(whiptail --cancel-button "Back" --title "Project Sandcastle" --menu ""
77
"3" "Start Linux" 3>&1 1>&2 2>&3)
88
case $CHOICE in
99
1)
10+
clear
1011
/usr/bin/setup_android-sandcastle
1112
;;
1213
2)
14+
clear
1315
/usr/bin/start_android-sandcastle
1416
;;
1517
3)
18+
clear
1619
/usr/bin/start_linux-sandcastle
1720
;;
1821
esac

scripts/setup_android-sandcastle

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
clear
32
# Load functions and variables
43
source /usr/bin/common
54
cd /root/android-sandcastle/
@@ -14,7 +13,7 @@ echo 'Connect a jailbroken iDevice with an internet connection'
1413
echo ''
1514
# Ask if the user uses odysseyra1n or checkra1n and set port to 22 for odysseyra1n or 44 for checkra1n
1615
until [[ $port = '22' || $port = '44' ]]; do
17-
read -p 'Are you using odysseyra1n or checkra1n [O/c] ' jailbreak
16+
read -rp 'Are you using odysseyra1n or checkra1n [O/c] ' jailbreak
1817
case $jailbreak in
1918
[oO][dD][yY][sS][sS][eE][yY][rR][aA][1iI][nN]|[oO])
2019
port='22' ;;
@@ -43,7 +42,7 @@ if ssh -p2222 -o "StrictHostKeyChecking no" -o "UserKnownHostsFile=/dev/null" ro
4342
successful
4443
killall iproxy
4544
echo 'Select "Start Android" to boot into Android'
46-
read -p 'Press enter to quit'
45+
read -rp 'Press enter to quit'
4746
/usr/bin/menu_projectsandcastle
4847
else
4948
failed

scripts/ssh_into_ios

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
# Load functions and variables
3+
source /usr/bin/common
4+
# Display ssh logo
5+
ssh_logo
6+
7+
echo 'Connect your iDevice to this computer'
8+
echo ''
9+
echo 'The keyboard layout is in American Qwerty.'
10+
echo "Your iDevice's default password is alpine."
11+
echo ''
12+
read -rp 'User: ' user
13+
read -rp 'Port: ' port
14+
15+
iproxy 2222 "$port" >/dev/null 2>&1 &
16+
17+
clear
18+
19+
message='SSHing into your iDevice'
20+
whatstep
21+
ssh -p2222 -o "StrictHostKeyChecking no" -o "UserKnownHostsFile=/dev/null" "$user"@127.0.0.1 || failed
22+
killall iproxy

scripts/start_android-sandcastle

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
clear
32
# Load functions and variables
43
source /usr/bin/common
54
cd /root/android-sandcastle/
@@ -24,7 +23,7 @@ whatstep
2423
if /usr/bin/load-linux Android.lzma dtbpack; then
2524
successful
2625
killall checkra1n
27-
read -p 'Press enter to quit'
26+
read -rp 'Press enter to quit'
2827
else
2928
failed
3029
fi

scripts/start_linux-sandcastle

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
clear
32
# Load functions and variables
43
source /usr/bin/common
54
cd /root/linux-sandcastle/
@@ -24,7 +23,7 @@ whatstep
2423
if /usr/bin/load-linux Linux.lzma dtbpack; then
2524
successful
2625
killall checkra1n
27-
read -p 'Press enter to quit'
26+
read -rp 'Press enter to quit'
2827
else
2928
failed
3029
fi

version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2.8
1+
v2.9

0 commit comments

Comments
 (0)