def __init__(self, config_file):
print('[*] Getting config...')
self.conf = dict()
self.get_conf(config_file)
print('[+] Done!\n')
# Check if CEF_Syslog is enabled
if self.conf['cef_syslog_enable']:
print '[+] Syslog Enabled'
self.syslog = syslog.Syslog(self.conf['cef_syslog_server'])
# Check if Telegram is enabled
if self.conf['telegram_enable']:
print '[+] Telegram Enabled'
self.bot = telepot.Bot(self.conf['api'])
# Check if Zabbix is enabled
if self.conf['zabbix_enable']:
print '[+] Zabbix Enabled'
print 'Notifications ',self.conf['notifications']
print 'Advanced ',self.conf['zabbix_advantage_keys']
print
print('[*] Getting rules...')
self.get_file_rules()
print('[+] Done!\n')
self.rules = json.loads(open(self.conf['rules']).read())
# List of all senders, enabled or not
self.senders = [self.send_zabbix, self.send_cef_syslog, self.send_telegram]
print('[*] A.R.T.L.A.S Started!\n')
评论列表
文章目录