-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
config.php
executable file
·188 lines (176 loc) · 3.33 KB
/
config.php
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<?php
//ini_set( 'display_errors', false );
//error_reporting( 0 );
// DO NOT TOUCH THIS
spl_autoload_register(function ( $c ) {
$f = __DIR__.'/class/class.'.strtolower($c).'.php';
if( is_file($f) ) {
require_once( __DIR__.'/class/class.'.strtolower($c).'.php' );
}
});
// function __autoload( $c ) {
// $f = __DIR__.'/class/class.'.strtolower($c).'.php';
// if( is_file($f) ) {
// require_once( __DIR__.'/class/class.'.strtolower($c).'.php' );
// }
// }
$demo = (isset($_GET) && isset($_GET['demo'])) ? '.demo' : '';
define( 'APP_PATH', __DIR__ );
define( 'CLASS_PATH', APP_PATH.'/class' );
define( 'INCLUDE_PATH', APP_PATH.'/include' );
define( 'GRAPH_PATH', APP_PATH.'/graph' );
define( 'DATABASE_PATH', APP_PATH.'/data' );
define( 'DATABASE_FILE', DATABASE_PATH.'/db.json'.$demo );
// don't dig too much the rabbit hole!
// to hide a graph, simply comment the corresponding line or set the value to false
define( 'GRAPH_BOUNTIES', true );
define( 'GRAPH_BOUNTIES_REPORTS_REPUTATION', true );
define( 'GRAPH_REPORTS_RATINGS', true );
define( 'GRAPH_RATINGS_PIE', true );
define( 'GRAPH_PROGRAMS_PIE', true );
define( 'GRAPH_PLATFORMS_PIE', false );
define( 'GRAPH_STATE_PIE', true );
define( 'GRAPH_TAGS_PIE', true );
define( 'GRAPH_TOP_PROGRAMS', true );
define( 'GRAPH_TOP_TAGS', true );
define( 'GRAPH_TAGS_EVOLUTION', true );
/*
initial_rate_value (1>5) => [
'tag_name' => [
'tag_terms' => [ // regexp used to tag the report
'term1',
'term2',
'term3',
'...',
],
'rate_terms => [ // regexp used to rate the report, added to the initial_rate_value
'term1' => 0,
'term2' => +1,
'term3' => -2,
'...',
]
]
]
*/
define( 'AUTO_RATE_TAG', [
1 => [
'rce' => [
'tag_terms' => [
'\s+rce\s+',
'^rce\s+',
'remote command execution',
'remote command injection',
],
],
],
2 => [
'sqli' => [
'tag_terms' => [
'sql',
'sqli',
'sql injection',
],
'rate_terms' => [
'read' => 0,
'write' => -1,
'possible' => +1,
],
],
'ssrf' => [
'tag_terms' => [
'ssrf',
'server side request forgery',
],
'rate_terms' => [
],
],
'lfd' => [
'tag_terms' => [
'lfd',
'local file disclosure',
],
],
'lfi' => [
'tag_terms' => [
'lfi',
'local file inclusion',
],
],
'rfi' => [
'tag_terms' => [
'rfi',
'remote file inclusion',
],
],
],
3 => [
'xss' => [
'tag_terms' => [
'xss',
'cross site scripting',
'Cross-Site Scripting',
],
],
'csrf' => [
'tag_terms' => [
'csrf',
'cross site request forgery',
],
],
'idor' => [
'tag_terms' => [
'idor',
'insecure direct object reference',
],
],
'bucket' => [
'tag_terms' => [
'bucket',
],
],
'cors' => [
'tag_terms' => [
'cors',
'cross origin',
],
],
],
4 => [
'ratel' => [
'tag_terms' => [
'rate limit',
'ratelimit',
'brute force',
'bruteforce',
],
],
'subto' => [
'tag_terms' => [
'subdomain takeover',
'subdomain take over',
],
],
'openr' => [
'tag_terms' => [
'open redirect',
],
],
],
5 => [
'infod' => [
'tag_terms' => [
'phpinfo',
'server-?status',
'server-?info',
'directory listing',
'information disclosure',
'htaccess',
],
],
'fpd' => [
'tag_terms' => [
'full path disclosure',
],
],
],
] );