mirror of https://github.com/MISP/PyMISP
fix: name is passed to super
parent
309eb3e8ab
commit
3072dac568
|
@ -8,12 +8,10 @@ from pymisp.tools.abstractgenerator import AbstractMISPObjectGenerator
|
||||||
class CowrieMISPObject(AbstractMISPObjectGenerator):
|
class CowrieMISPObject(AbstractMISPObjectGenerator):
|
||||||
def __init__(self, dico_val, **kargs):
|
def __init__(self, dico_val, **kargs):
|
||||||
self._dico_val = dico_val
|
self._dico_val = dico_val
|
||||||
self.name = "cowrie"
|
|
||||||
|
|
||||||
# Enforce attribute date with timestamp
|
# Enforce attribute date with timestamp
|
||||||
super(CowrieMISPObject, self).__init__('cowrie',
|
super(CowrieMISPObject, self).__init__('cowrie',
|
||||||
default_attributes_parameters={'timestamp': int(time.time())},
|
default_attributes_parameters={'timestamp': int(time.time())},
|
||||||
**kargs)
|
**kargs)
|
||||||
self.generate_attributes()
|
self.generate_attributes()
|
||||||
|
|
||||||
def generate_attributes(self):
|
def generate_attributes(self):
|
||||||
|
|
Loading…
Reference in New Issue