artlas.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:ARTLAS 作者: mthbernardes 项目源码 文件源码
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')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号