forked from RossDarker/A5-A6X-Blobs-Dumper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenterkdfu
executable file
·57 lines (51 loc) · 1.31 KB
/
enterkdfu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
if [ $# -lt 1 ]; then
echo ""
echo "[DESCRIPTION]"
echo "Put device into kDFU mode using pwnediBSS"
echo ""
echo "[USAGE]"
echo "./enterkdfu <device IP>"
echo ""
echo "[EXAMPLE]"
echo "./enterkdfu 192.168.1.88"
echo ""
exit
fi
if [ $# -gt 1 ]; then
echo "[ERROR] Too many arguments"
exit
fi
ip=$1
if [ $OSTYPE = msys ]; then
echo "WINDOWS DETECTED"
path="/c/Users/`whoami`/Downloads"
platform="win"
elif [[ $OSTYPE == "darwin"* ]]; then
echo "MAC OS DETECTED"
path="/Users/`whoami`/Downloads"
platform="macos"
else
echo "Not supported"
exit
fi
cd "$path/blobs/odysseus-0.999.0/$platform"
if [ -e "pwnediBSS" ]; then
echo ""
echo "Found pwnediBSS"
else
echo ""
echo "Did not find pwnediBSS, have you ran ./patchipsw?"
exit 1
fi
echo ""
echo "Attempting to enter kDFU"
echo ""
echo "If asked, type yes, then the default password is \"alpine\""
echo ""
echo "WHEN YOUR DEVICE TURNS OFF, (RE)PLUG YOUR DEVICE INTO YOUR COMPUTER, PRESS CONTROL+C, AND PROCEED TO \"./dumpblobs\". ALSO DON'T TOUCH ITUNES"
echo ""
./sshtool -k ../kloader -b pwnediBSS -p 22 $ip
echo ""
echo "IF YOUR DEVICE DID NOT TURN OFF, INSTALL \"Core Utilities\" AND \"Core Utilities (/bin)\" AND \"OpenSSH\" FROM CYDIA AND THEN RUN \"./enterkdfu\" AGAIN"
echo ""