@@ -8,6 +8,39 @@ if [[ "$1" == "3.00j" || "$1" == "3.00J" ]]; then
88elif [[ " $1 " == " 3.00u" || " $1 " == " 3.00U" ]]; then
99 echo " Building for DVD Player v3.00U"
1010 dvd_ver=" 300U"
11+ elif [[ " $1 " == " 3.02e" || " $1 " == " 3.02E" ]]; then
12+ echo " Building for DVD Player v3.02E"
13+ dvd_ver=" 302E"
14+ elif [[ " $1 " == " 3.02c" || " $1 " == " 3.02C" ]]; then
15+ echo " Building for DVD Player v3.02C"
16+ dvd_ver=" 302C"
17+ elif [[ " $1 " == " 3.02d" || " $1 " == " 3.02D" ]]; then
18+ echo " Building for DVD Player v3.02D"
19+ dvd_ver=" 302D"
20+ elif [[ " $1 " == " 3.02g" || " $1 " == " 3.02G" ]]; then
21+ echo " Building for DVD Player v3.02G"
22+ dvd_ver=" 302G"
23+ elif [[ " $1 " == " 3.02j" || " $1 " == " 3.02J" ]]; then
24+ echo " Building for DVD Player v3.02J"
25+ dvd_ver=" 302J"
26+ elif [[ " $1 " == " 3.02k" || " $1 " == " 3.02K" ]]; then
27+ echo " Building for DVD Player v3.02K"
28+ dvd_ver=" 302K"
29+ elif [[ " $1 " == " 3.02u" || " $1 " == " 3.02U" ]]; then
30+ echo " Building for DVD Player v3.02U"
31+ dvd_ver=" 302U"
32+ elif [[ " $1 " == " 3.03e" || " $1 " == " 3.03E" ]]; then
33+ echo " Building for DVD Player v3.03E"
34+ dvd_ver=" 303E"
35+ elif [[ " $1 " == " 3.03j" || " $1 " == " 3.03J" ]]; then
36+ echo " Building for DVD Player v3.03J"
37+ dvd_ver=" 303J"
38+ elif [[ " $1 " == " 3.04m" || " $1 " == " 3.04M" ]]; then
39+ echo " Building for DVD Player v3.04M"
40+ dvd_ver=" 304M"
41+ elif [[ " $1 " == " 3.04j" || " $1 " == " 3.04J" ]]; then
42+ echo " Building for DVD Player v3.04J"
43+ dvd_ver=" 304J"
1144else
1245 echo " Building for DVD Player v3.00E/A"
1346fi
@@ -17,9 +50,17 @@ mkdir build
1750rm -f fs/VIDEO_TS/VTS_01_0.IFO
1851rm -f fs/VIDEO_TS/VTS_02_0.BUP
1952rm -f fs/VIDEO_TS/VTS_02_0.IFO
53+ rm -f fs/VIDEO_TS/VTS_03_0.BUP
54+ rm -f fs/VIDEO_TS/VTS_03_0.IFO
55+ rm -f fs/VIDEO_TS/VTS_04_0.BUP
56+ rm -f fs/VIDEO_TS/VTS_04_0.IFO
2057cp fs/VIDEO_TS/VTS_01_0.BUP fs/VIDEO_TS/VTS_01_0.IFO
2158cp fs/VIDEO_TS/VTS_01_0.BUP fs/VIDEO_TS/VTS_02_0.BUP
2259cp fs/VIDEO_TS/VTS_01_0.BUP fs/VIDEO_TS/VTS_02_0.IFO
60+ cp fs/VIDEO_TS/VTS_01_0.BUP fs/VIDEO_TS/VTS_03_0.BUP
61+ cp fs/VIDEO_TS/VTS_01_0.BUP fs/VIDEO_TS/VTS_03_0.IFO
62+ cp fs/VIDEO_TS/VTS_01_0.BUP fs/VIDEO_TS/VTS_04_0.BUP
63+ cp fs/VIDEO_TS/VTS_01_0.BUP fs/VIDEO_TS/VTS_04_0.IFO
2364
2465mipsel-none-elf-gcc \
2566 -T src/ld/code.ld \
@@ -79,11 +120,18 @@ cp --recursive fs build/
79120
80121./build/injector.elf
81122
82- truncate -s 6144 build/code.bin
123+ truncate -s 8192 build/code.bin
83124cp build/code.bin build/fs/VIDEO_TS/VIDEO_TS.BUP
84125cp build/fs/VIDEO_TS/VTS_01_1.VOB build/fs/VIDEO_TS/VTS_02_1.VOB
126+ cp build/fs/VIDEO_TS/VTS_01_1.VOB build/fs/VIDEO_TS/VTS_03_1.VOB
127+ cp build/fs/VIDEO_TS/VTS_01_1.VOB build/fs/VIDEO_TS/VTS_04_1.VOB
128+ cp build/fs/VIDEO_TS/VTS_04_0.IFO build/fs/VIDEO_TS/VTS_04_0.BUP
85129
86130genisoimage -dvd-video -V " " -o build/exploit.iso build/fs/
87131rm fs/VIDEO_TS/VTS_01_0.IFO
88132rm fs/VIDEO_TS/VTS_02_0.BUP
89133rm fs/VIDEO_TS/VTS_02_0.IFO
134+ rm fs/VIDEO_TS/VTS_03_0.BUP
135+ rm fs/VIDEO_TS/VTS_03_0.IFO
136+ rm fs/VIDEO_TS/VTS_04_0.BUP
137+ rm fs/VIDEO_TS/VTS_04_0.IFO
0 commit comments