Improvements to query and self event detection, implement all command and debug flags
This commit is contained in:
6
main.py
6
main.py
@@ -1,6 +1,8 @@
|
||||
from json import load, dump, loads
|
||||
from redis import StrictRedis
|
||||
from string import digits
|
||||
from os import urandom
|
||||
|
||||
from utils.logging.log import *
|
||||
|
||||
configPath = "conf/"
|
||||
@@ -31,6 +33,10 @@ CommandMap = {}
|
||||
runningSample = 0
|
||||
lastMinuteSample = 0
|
||||
|
||||
# Generate 16-byte hex key for message checksums
|
||||
hashKey = urandom(16)
|
||||
lastEvents = {}
|
||||
|
||||
def nets():
|
||||
if not "pool" in globals():
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user