-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathTables.py
executable file
·89 lines (83 loc) · 3.21 KB
/
Tables.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# this list declares main tables in the database
tables = ['dhcp',
"smtp",
"irc",
"weird",
"ssh",
"conn",
'ftp',
"http",
"dns",
"signature",
"ssl",
"ids",
"files",
'ssh',
'main']
table_created ={'dhcp':False,
'smtp':False,
'irc':False,
'weird':False,
"ssh":False,
"conn":False,
'ftp':False,
"http":False,
"dns":False,
"signature":False,
"ssl":False,
"ids":False,
"files":False,
'ssh':False,
'main':False}
# the following dictionary denotes normalized FIELDS
normalized_fields = {'fuids': 'fuid',
'path': 'path',
'to': 'to',
'rcptto': 'receipent',
'analyzers': 'analyzer',
'conn_uids': 'conn_uid',
'rx_hosts': 'rx_host',
'tx_hosts': 'tx_host',
"tunnel_parents": 'parent',
"ttls": 'ttl',
'answers': 'answer',
'resp_meme_types': 'resp_meme_type',
'resp_fuids': 'resp_fuid',
'orig_meme_types': 'orig_meme_types',
'orig_fuids': 'orig_fuid',
'proxied_headers': 'header',
'tags': 'tag',
'validation_status': 'validation_status'}
#the following list shows the names of normalized tables
normalized_tables = ['http_proxied_headers',
'http_resp_meme_types',
'http_tags',
'http_orig_meme_types',
'http_orig_fuids',
'http_resp_fuids',
'files_tx_hosts',
'files_conn_uids',
'files_analyzers',
'files_rx_hosts',
'ftp_data_channel',
'conn_tunnel_parents',
'dns_ttls',
'dns_answers',
'smtp_analyzers',
'smtp_rcptto',
'smtp_to',
'smtp_fuids',
'smtp_path',
'ssl_validation_status']
valid = ['conn.log', 'dhcp.log', 'dns.log', 'ftp.log', 'http.log', 'irc.log',
'smtp.log', 'ssl.log', 'files.log', 'signatures.log', 'weird.log',
'ssh.log'] # this list stores the valid log files bila currently supports
#the fol;owing line declares the files bila doesnt currently support
UnsupportedFiles = ['x509.log', 'packet_filter.log', 'app_stats.log', 'capture_loss.log', 'dnp3.log', 'intel.log',
'known_certs.log', 'radius.log', 'modbus.log', 'notice.log', 'reporter.log',
'notice.log', 'software.log', 'snmp.log', 'socks.log',
'syslog.log', 'traceroute.log',
'known_hosts.log']
defaultColors=['#F16745','#FFC65D','#7BC8A4','#4CC3D9','#93648D','#404040'
,'#FF6600',' #C0C0C0','#040F01','#83831F','#FF5EAA','#CC1559','#01B6AD','#0A4958'
'#FF0000','#400D12' ]