initial commit

This commit is contained in:
Shane Peters
2019-01-11 10:45:03 -05:00
commit b89ba1ad5a
18 changed files with 3408 additions and 0 deletions

18
extra/bro_api.py Normal file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env python3
import sys
import base64
from subprocess import check_output
from flask import Flask
BRO_CONFIG='/opt/bro/share/bro/site/local.bro'
@app.route('/config')
def config_get():
cmd = ['cat', BRO_CONFIG]
res = check_output(cmd)
res = base64.b64encode(res)
data = {'acknowledged':'true', 'config':str(res)}
return data
app = Flask(__name__)