-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathintegrity_proxy.conf
108 lines (87 loc) · 1.79 KB
/
integrity_proxy.conf
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
proxy_buffers 8 256k;
server {
listen 80 default;
server_name cs;
location / {
content_by_lua_file /root/integrity_proxy/insert_and_tamper.lua;
}
location /proxy {
rewrite ^/proxy(.*) $1 break;
more_clear_input_headers Accept-Encoding;
proxy_pass http://127.0.0.1:8000;
}
}
server {
listen 80;
listen 81;
server_name attack1.cs;
location / {
content_by_lua_file /root/integrity_proxy/insert_ad.lua;
}
location /proxy {
rewrite ^/proxy(.*) $1 break;
more_clear_input_headers Accept-Encoding;
proxy_pass http://127.0.0.1:8080;
}
}
server {
listen 80;
listen 8181;
server_name defend1.cs;
location / {
content_by_lua_file /root/integrity_proxy/insert_ad.lua;
}
location /proxy {
rewrite ^/proxy(.*) $1 break;
more_clear_input_headers Accept-Encoding;
proxy_pass http://127.0.0.1:8000;
}
}
server {
listen 80;
listen 82;
server_name attack2.cs;
location / {
content_by_lua_file /root/integrity_proxy/tamper_content.lua;
}
location /proxy {
rewrite ^/proxy(.*) $1 break;
more_clear_input_headers Accept-Encoding;
proxy_pass http://127.0.0.1:8080;
}
}
server {
listen 80;
listen 8282;
server_name defend2.cs;
location / {
content_by_lua_file /root/integrity_proxy/tamper_content.lua;
}
location /proxy {
rewrite ^/proxy(.*) $1 break;
more_clear_input_headers Accept-Encoding;
proxy_pass http://127.0.0.1:8000;
}
}
server {
listen 80;
listen 8000;
server_name protected.cs;
location / {
content_by_lua_file /root/integrity_proxy/integrity_proxy.lua;
}
location /proxy {
rewrite ^/proxy(.*) $1 break;
more_clear_input_headers Accept-Encoding;
proxy_pass http://127.0.0.1:8080;
}
}
server {
listen 80;
listen 8080;
server_name origin.cs;
root /root/html;
location / {
proxy_pass https://www.cs.stonybrook.edu;
}
}