コード例 #1
0
    def __init__(self, *args, **kwargs):
        NetModule.__init__(self,
                           updatetime=5,
                           protocol='http',
                           *args,
                           **kwargs)

        self.last = list()
コード例 #2
0
    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
コード例 #3
0
    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()
コード例 #4
0
    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
コード例 #5
0
    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()
コード例 #6
0
    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
コード例 #7
0
    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")
コード例 #8
0
    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
コード例 #9
0
    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")
コード例 #10
0
 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")
コード例 #11
0
    def __init__(self, *args, **kwargs):
        NetModule.__init__(self, updatetime=5, protocol='http', *args, **kwargs)

        self.last = list()
コード例 #12
0
 def __init__(self, *args, **kwargs):
     NetModule.__init__(self, updatetime=5, protocol='dns', *args, **kwargs)
     self.l_dns_name = list()
コード例 #13
0
    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")
コード例 #14
0
    def __init__(self, *args, **kwargs):
        NetModule.__init__(self, updatetime=1, protocol='local_communication', *args, **kwargs)

        # packet data
        self.dIP_loccomm = dict()
        self.oldIPList = set()
コード例 #15
0
    def __init__(self, *args, **kwargs):
        NetModule.__init__(self, updatetime=5, protocol='iplist', *args, **kwargs)

        self.last_ip = set()