forked from zauceee/PPLGPwn
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathinstall.sh
More file actions
148 lines (128 loc) · 4.6 KB
/
install.sh
File metadata and controls
148 lines (128 loc) · 4.6 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#!/usr/bin/env bash
# please use the dejavuln installer, this will not be mantained
# for now this will be keepped as legacy to be removed in a future update
#
# PPLGPwn is a project created by zauceee (aka Kodeine) valeu mano.
# I contributed to his project with some ideas
# so I started my own fork 'cos at some point our project was aiming different settings/configs I guess
# even tho we still share our ideas or even discuss some new features.
#
# FabulosoDev also have his fork of the project with some interesting features
# some codes here, in the "installer.sh" or in the "run.sh" was made by him.
#
# Thanks to:
# @TheOfficialFloW @zauceee @FabulosoDev @SiSTR0 @xfangfang @EchoStretch @LightningMods @kmeps4 @ModdedWarfare @mbcrump and all contributors that made pppwn and PPLGPwn possible
# - Jacob Clayden (https://jacobcx.dev/) for discovering DejaVuln
clear
repo=llbranco
RED='\033[0;91m'
GREEN='\033[0;92m'
YELLOW='\033[0;93m'
BLUE='\033[0;94m'
PURPLE='\033[0;95m'
CYAN='\033[0;96m'
NC='\033[0m' # No Color
echo -e "${GREEN}
8888888b. 8888888b. 888 .d8888b. 8888888b. 888 888 888b 888
888 Y88b 888 Y88b 888 d88P Y88b 888 Y88b 888 o 888 8888b 888
888 888 888 888 888 888 888 888 888 888 d8b 888 88888b 888
888 d88P 888 d88P 888 888 888 d88P 888 d888b 888 888Y88b 888
8888888P 8888888P 888 888 88888 8888888P 888d88888b888 888 Y88b888
888 888 888 888 888 888 88888P Y88888 888 Y88888
888 888 888 Y88b d88P 888 8888P Y8888 888 Y8888
888 888 88888888 Y8888P88 888 888P Y888 888 Y888
${NC}
Designed for LG webOS TVs! Ported by ${PURPLE}Kodeine${NC} & ${PURPLE}Contributors${NC}, with ${RED}luv <3${NC}
Version: v1.3.2 (${BLUE}modded by llbranco${NC})
${CYAN}-------
INSTALLATION
-------${NC}
"
reinstall=false
cpu_arch=`uname -m`
if [ -d /media/internal/downloads/PPLGPwn ]
then
read -p "PPLGPwn already installed. Reinstall? [Y/N] " response
case "$response" in
[yY][eE][sS]|[yY]) echo "Removing PPLGPwn to reinstall..."
pkill -f "pppwn"
pkill -f "pppwn_$cpu_arch"
rm -rf /media/internal/downloads/PPLGPwn
reinstall=true
echo "Done!" ;;
esac
else
reinstall=true
fi
if [ -d /media/internal/downloads/PPLGPwn-main ]
then
read -p "PPLGPwn already installed. Reinstall? [Y/N] " response
case "$response" in
[yY][eE][sS]|[yY]) echo "Removing PPLGPwn to reinstall..."
pkill -f "pppwn"
pkill -f "pppwn_$cpu_arch"
rm -rf /media/internal/downloads/PPLGPwn-main
reinstall=true
echo "Done!" ;;
esac
else
reinstall=true
fi
#(re)install
if [ "$reinstall" = true ]
then
cpu_arch=`uname -m`
if [ $cpu_arch = "armv7" ] || [ $cpu_arch = "armv7l" ]
then
cpu_arch='armv7'
elif [ $cpu_arch = "aarch64" ]; then
cpu_arch='aarch64'
else
echo "
Unsupported CPU architecture, please report onto the issues tab in the GitHub repo with your cpu arch!
Cpu architecture = $cpu_arch
"
return
fi
echo -e "
${CYAN}-------
Supported firmwares 9.00 9.60 10.00 10.01 10.50 10.70 10.71 11.00
Choose firmware version...
-------${NC}
"
read -p "Firmware version (900-1100): " fmv
echo -e "
${CYAN}-------
Downloading files...
-------${NC}
"
mkdir -p /media/internal/downloads/PPLGPwn
curl -fsSL -o /media/internal/downloads/PPLGPwn/pppwn https://github.com/$repo/PPLGPwn/raw/main/pppwn_$cpu_arch
curl -fsSL -o /media/internal/downloads/PPLGPwn/run.sh https://github.com/$repo/PPLGPwn/raw/main/run.sh
curl -fsSL -o /media/internal/downloads/PPLGPwn/stage1.bin https://github.com/$repo/PPLGPwn/raw/main/stage1/$fmv/stage1.bin
curl -fsSL -o /media/internal/downloads/PPLGPwn/stage2.bin https://github.com/$repo/PPLGPwn/raw/main/stage2/$fmv/stage2.bin
echo -e "Done!
${CYAN}-------
Writing settings...
-------${NC}
"
echo "
interface=eth0
firmver=$fmv
stage1=/media/internal/downloads/PPLGPwn/stage1.bin
stage2=/media/internal/downloads/PPLGPwn/stage2.bin
" > /media/internal/downloads/PPLGPwn/settings.config
echo "Done!
"
echo "If you wish to change the stage2.bin go into /media/internal/downloads/PPLGPwn and replace the exisiting stage2.bin!
"
echo "To run the exploit execute "run.sh" present in the mentioned directory! But to make it simplier follow the steps to execute the exploit with the click of a button! :)"
echo "Enjoy ;)"
luna-send -a webosbrew -f -n 1 luna://com.webos.notification/createToast '{"sourceId":"webosbrew","message": "<b>PPLGPwn installed.</b>"}'
fi
#(re)install end
echo "Running PPLGPWN in 3 seconds..."
sleep 3
cd /media/internal/downloads/PPLGPwn
chmod +x ./run.sh
./run.sh