-
Notifications
You must be signed in to change notification settings - Fork 0
/
probecap.conf
53 lines (47 loc) · 1.45 KB
/
probecap.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
"""
code sources
https://stackoverflow.com/questions/8225954/python-configuration-file-any-file-format-recommendation-ini-format-still-appr
# general
use_sudo
0 you will run the script entirely as root
1 run script as normal user and use sudo
mon_if - wlan interface used for capture (must be in monitor mode!).
# db_conf
db_type
0 none (not supported yet)
1 postgresql
2 sqlite
pg_host - postgresql host
pg_user - postgresql user
pg_pass - postgresql pass
pg_db - postgresql db
db_sqlite_db - path to sqlite db (if it doens't exist, it will create it if it has the permissions to do so.)
"""
general = { 'use_sudo' : True,
'dumpfile' : 'dump.dump', # File to dump to if dump is True (for debugging)
'dump' : False,
'mon_if' : 'wlan0',
'cap_size' : 256 # Make it bigger if you get truncated packets and you don't want that.
}
output = { 'height' : 0, # 0 means auto else use screen height in characters
'width' : 0,
'log_file' : 'probecap.log',
'log_debug' : '0', # 0 means false 1 means true
'log_error' : '1',
'log_warn' : '1',
'log_info' : '0',
'log_notice' : '0',
'out_debug' : '0',
'out_error' : '1',
'out_warn' : '0',
'out_info' : '1',
'out_notice' : '1',
'disable_color' : True,
'time_ago_format': True
}
db_conf = { 'db_type' : '2',
'pg_host' : '127.0.0.1',
'pg_user' : 'probe_toolkit',
'pg_pass' : 'password',
'pg_db' : 'probe',
'db_sqlite_db' : 'probe.db' }