-
Notifications
You must be signed in to change notification settings - Fork 101
/
Makefile
34 lines (30 loc) · 1.05 KB
/
Makefile
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
all:
make henkaku
make menu
make exploit
exploit:
cd payload; make; rm ../stage2/payload.bin.gz; gzip -9 -n -c payload.bin > ../stage2/payload.bin.gz
cd stage2; make
cd stage1; make
./scripts/obfuscate.py stage1/stage1.bin 1
./scripts/obfuscate.py stage2/stage2.bin 2
./scripts/trim.py stage2/stage2.bin
./scripts/generate.py stage1/stage1.bin stage2/stage2.bin system.dat
henkaku:
cd taiHEN; mkdir build; cd build; cmake ..; make; cp taihen.skprx ../../bootstrap/res/taihen.skprx
cd plugin; mkdir build; cd build; cmake ..; make; cp henkaku.skprx ../../bootstrap/res/henkaku.skprx; cp henkaku.suprx ../../bootstrap/res/henkaku.suprx
menu:
cd bootstrap; mkdir build; cd build; cmake ..; make; xxd -i bootstrap.self > ../../payload/bootstrap.h
clean:
-rm system.dat
-rm -rf taiHEN/build
-rm -rf plugin/build
-rm -rf bootstrap/build
-rm bootstrap/res/taihen.skprx
-rm bootstrap/res/henkaku.skprx
-rm bootstrap/res/henkaku.suprx
-rm payload/bootstrap.h
-rm stage2/payload.bin.gz
cd payload; make clean
cd stage2; make clean
cd stage1; make clean