-
Notifications
You must be signed in to change notification settings - Fork 116
/
config.py
70 lines (63 loc) · 1.52 KB
/
config.py
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
import os
# Logger Configuration
LOG_LEVEL = 'INFO'
# Webserver Configuration
WEB_HOST = '0.0.0.0'
WEB_PORT = 8080
WEB_DEBUG = False
WEB_USER = os.environ.get('username', 'admin')
WEB_PASSW = os.environ.get('password', 'admin')
WEB_LOG = 'nerve.log'
# Web Security
# Setting this to True will return all responses with security headers.
WEB_SECURITY = True
WEB_SEC_HEADERS = {
'CSP':'default-src \'self\' \'unsafe-inline\'; object-src \'none\'; img-src \'self\' data:',
'CTO':'nosniff',
'XSS':'1; mode=block',
'XFO':'DENY',
'RP':'no-referrer',
'Server':'NERVE'
}
# Maximum allowed attempts before banning the remote origin
MAX_LOGIN_ATTEMPTS = 5
# Redis Configuration
# This should not be set to anything else except localhost unless you want to do a multi-node deployment.
RDS_HOST = '127.0.0.1'
RDS_PORT = 6379
RDS_PASSW = None
# Scan Configuration
USER_AGENT = 'NERVE'
# Default scan configuration
# This will be used in the "Quick Start" scan.
DEFAULT_SCAN = {
'targets':{
'networks':[],
'excluded_networks':[],
'domains':[]
},
'config':{
'name':'Default',
'description':'My Default Scan',
'engineer':'John Doe',
'allow_aggressive':3,
'allow_dos':False,
'allow_bf':False,
'allow_internet':True,
'dictionary':{
'usernames':[],
'passwords':[]
},
'scan_opts':{
'interface':None,
'max_ports':100,
'custom_ports':[],
'parallel_scan':50,
'parallel_attack':30,
},
'post_event':{
'webhook':None
},
'frequency':'once'
}
}