def __init__(self, *args, **kwargs): NetModule.__init__(self, updatetime=5, protocol='http', *args, **kwargs) self.last = list()
def __init__(self, *args, **kwargs): NetModule.__init__(self, updatetime=1, savecode=('m', 30), protocol='packet_loss', *args, **kwargs) # packets stats self.sniff = GetSniffer() state = self.sysState() # init self.oldValues = state self.oldTotstats = state
def __init__(self, *args, **kwargs): NetModule.__init__(self, updatetime=1, protocol='attack', *args, **kwargs) self.alert_mode = False self.smac = set() self.mac_evol = Evolution() self.dmac = dict() self.alert = set() self.dip_info = dict()
def __init__(self, *args, **kwargs): NetModule.__init__(self, updatetime=10, savecode=('m', 30), protocol='bandwidth', *args, **kwargs) if psutil.__version__ < '0.7.0': print "Update psutil to 0.7.1" # packet data self.data = dict() self.data["net_load_loc"] = 0 self.data["net_load_in"] = 0 self.data["net_load_out"] = 0 stat = self.sysState() # init self.oldValues = stat self.oldTotstats = stat
def __init__(self, *args, **kwargs): NetModule.__init__(self, updatetime=30, savecode=('m', 30), protocol='protocols', *args, **kwargs) # packet data self.lEtherProtocol = dict() # list protocol ethernet self.lIPProtocol = dict() # list protocol ip self.lPortProtocol = dict() # list ports services self.lEtherList = list() self.lIPList = list() # stats val = self.get_state() self.save_oldstats = val self.update_oldstats = val # clear time self.max_live_port = 10 self.add_conf_override("max_live_port") self.display_port_number = True self.add_conf_override("display_port_number") # Limit SVG self.bdd_max_ethertype = 5 self.add_conf_override("bdd_max_ethertype") self.bdd_max_ipprotocol = 6 self.add_conf_override("bdd_max_ipprotocol") self.bdd_max_port = 10 self.add_conf_override("bdd_max_port") self.ignore_ipprotocol = list() self.add_conf_override("ignore_ipprotocol") self.ignore_port = list() self.add_conf_override("ignore_port")
def __init__(self, *args, **kwargs): NetModule.__init__(self, updatetime=5, savecode=('m', 30), protocol='skeleton', savebdd=True, *args, **kwargs) # module variable embed in configuration file self.myConfigVariable = 10 self.add_conf_override("myConfigVariable")
def __init__(self, *args, **kwargs): NetModule.__init__(self, updatetime=5, protocol='dns', *args, **kwargs) self.l_dns_name = list()
def __init__(self, *args, **kwargs): NetModule.__init__(self, updatetime=1, protocol='server_stat', *args, **kwargs) if psutil.__version__ < '0.7.0': self.logger.warning("Update psutil to 0.7.1")
def __init__(self, *args, **kwargs): NetModule.__init__(self, updatetime=1, protocol='local_communication', *args, **kwargs) # packet data self.dIP_loccomm = dict() self.oldIPList = set()
def __init__(self, *args, **kwargs): NetModule.__init__(self, updatetime=5, protocol='iplist', *args, **kwargs) self.last_ip = set()