forked from Graph3x/tcproxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.txt
40 lines (39 loc) · 1.45 KB
/
config.txt
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
{
"remote_host": "127.0.0.1", //self-explanatory
"remote_port": "9000", //self-explanatory
"proxy_host": "127.0.0.1", //self-explanatory
"proxy_port": "9001", //self-explanatory
"rules":
{
"client": //rules applied to traffic from client
[
{
"name": "Adore is better than like", //name is not actually used, just organizational
"type": "regex2string", //type of the rule - currently just regex2string
"case_sensitive": "false", //self-explanatory
"from": "like", //the filtered regex
"to": "adore", //what should the matches be replaced with
"alert": "" //empty does not send any alerts
}
],
"server": //rules applied to responses from server
[
{
"name": "Adore is better than like",
"type": "regex2string",
"case_sensitive": "false",
"from": "like",
"to": "adore",
"alert": ""
},
{
"name": "I dont like flags",
"type": "regex2string",
"case_sensitive": "true",
"from": "FLAG{[^}]+}",
"to": "not_today_crocodile",
"alert": "FLAG OUT+" //on every rule break, prints FLAG OUT, "+" gets replaced with the traffic that broke the rule
}
]
}
}