-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathinput.js
59 lines (58 loc) · 1.55 KB
/
input.js
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
const FIREWALL = [
{ depth: 0, range: 4 },
{ depth: 1, range: 2 },
{ depth: 2, range: 3 },
{ depth: 4, range: 4 },
{ depth: 6, range: 8 },
{ depth: 8, range: 5 },
{ depth: 10, range: 8 },
{ depth: 12, range: 6 },
{ depth: 14, range: 6 },
{ depth: 16, range: 8 },
{ depth: 18, range: 6 },
{ depth: 20, range: 6 },
{ depth: 22, range: 12 },
{ depth: 24, range: 12 },
{ depth: 26, range: 10 },
{ depth: 28, range: 8 },
{ depth: 30, range: 12 },
{ depth: 32, range: 8 },
{ depth: 34, range: 12 },
{ depth: 36, range: 9 },
{ depth: 38, range: 12 },
{ depth: 40, range: 8 },
{ depth: 42, range: 12 },
{ depth: 44, range: 17 },
{ depth: 46, range: 14 },
{ depth: 48, range: 12 },
{ depth: 50, range: 10 },
{ depth: 52, range: 20 },
{ depth: 54, range: 12 },
{ depth: 56, range: 14 },
{ depth: 58, range: 14 },
{ depth: 60, range: 14 },
{ depth: 62, range: 12 },
{ depth: 64, range: 14 },
{ depth: 66, range: 14 },
{ depth: 68, range: 14 },
{ depth: 70, range: 14 },
{ depth: 72, range: 12 },
{ depth: 74, range: 14 },
{ depth: 76, range: 14 },
{ depth: 80, range: 14 },
{ depth: 84, range: 18 },
{ depth: 88, range: 14 },
];
module.exports = {
input: FIREWALL,
sampleInput: {
config: [
{ depth: 0, range: 3 },
{ depth: 1, range: 2 },
{ depth: 4, range: 4 },
{ depth: 6, range: 4 },
],
severity: 24, // 0 * 3 + 6 * 4
delay: 10,
},
};