forked from tharina/34c3ctf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
78 lines (47 loc) · 2.16 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
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
CC=gcc
CFLAGS=-Wall -O1
.PHONY: default
default:
$(error No target specified.)
.PHONY: billboard
billboard: billboard/server
billboard/server: server.c billboard/billboard.so
$(CC) -no-pie -DPORT=12345 -DLIB=\"./billboard.so\" -o ./billboard/server server.c $(CFLAGS) -ldl
cp server.c billboard/server.c
billboard/billboard.so: billboard.c
$(CC) -o ./billboard/billboard.so -shared -fPIC billboard.c $(CFLAGS)
.PHONY: giftwrapper
giftwrapper: giftwrapper/server
giftwrapper/server: server.c giftwrapper/giftwrapper.so
$(CC) -no-pie -fno-stack-protector -D_FORTIFY_SOURCE=0 -DPORT=12345 -DLIB=\"./giftwrapper.so\" -o ./giftwrapper/server server.c $(CFLAGS) -ldl
cp server.c giftwrapper/server.c
giftwrapper/giftwrapper.so: giftwrapper.c
$(CC) -fno-stack-protector -D_FORTIFY_SOURCE=0 -o ./giftwrapper/giftwrapper.so -shared -fPIC giftwrapper.c $(CFLAGS)
.PHONY: giftwrapper2
giftwrapper2: giftwrapper2/server
giftwrapper2/server: server.c giftwrapper2/giftwrapper2.so
$(CC) -no-pie -fno-stack-protector -D_FORTIFY_SOURCE=0 -DPORT=12345 -DLIB=\"./giftwrapper2.so\" -o ./giftwrapper2/server server.c $(CFLAGS) -ldl
cp server.c giftwrapper2/server.c
giftwrapper2/giftwrapper2.so: giftwrapper2.c
$(CC) -fno-stack-protector -D_FORTIFY_SOURCE=0 -o ./giftwrapper2/giftwrapper2.so -shared -fPIC giftwrapper2.c $(CFLAGS)
.PHONY: mate
mate: mate/server
mate/server: server.c mate/mate.so
$(CC) -no-pie -DPORT=12345 -DLIB=\"./mate.so\" -o ./mate/server server.c $(CFLAGS) -ldl
cp server.c mate/server.c
mate/mate.so: mate.c
$(CC) -o ./mate/mate.so -shared -fPIC mate.c $(CFLAGS)
.PHONY: mate2
mate: mate2/server
mate2/server: server.c mate2/mate2.so
$(CC) -no-pie -DPORT=12345 -DLIB=\"./mate2.so\" -o ./mate2/server server.c $(CFLAGS) -ldl
cp server.c mate2/server.c
mate2/mate2.so: mate2.c
$(CC) -o ./mate2/mate2.so -shared -fPIC mate2.c $(CFLAGS)
.PHONY: shredder
shredder: shredder/server
shredder/server: server.c shredder/shredder.so
$(CC) -no-pie -DPORT=12345 -DLIB=\"./shredder.so\" -o ./shredder/server server.c $(CFLAGS) -ldl
cp server.c shredder/server.c
shredder/shredder.so: shredder.c
$(CC) -o ./shredder/shredder.so -shared -fPIC shredder.c $(CFLAGS)