mirror of https://github.com/CIRCL/AIL-framework
update: removed useless comments
parent
f603a7f44b
commit
83e082e62a
|
@ -66,14 +66,6 @@ class ObjectWrapper:
|
||||||
|
|
||||||
self.mispObject = AilleakObject(self.moduleName, self.p_source, self.p_date, self.p_content, self.p_duplicate, self.p_duplicate_number)
|
self.mispObject = AilleakObject(self.moduleName, self.p_source, self.p_date, self.p_content, self.p_duplicate, self.p_duplicate_number)
|
||||||
|
|
||||||
'''
|
|
||||||
# duplicated
|
|
||||||
duplicate_list = json.loads(paste._get_p_duplicate())
|
|
||||||
is_duplicate = True if len(duplicate_list) > 0 else False
|
|
||||||
self.add_attribute('duplicate', value=is_duplicate)
|
|
||||||
'''
|
|
||||||
|
|
||||||
|
|
||||||
def date_to_str(self, date):
|
def date_to_str(self, date):
|
||||||
return "{0}-{1}-{2}".format(date.year, date.month, date.day)
|
return "{0}-{1}-{2}".format(date.year, date.month, date.day)
|
||||||
|
|
||||||
|
@ -137,21 +129,3 @@ class ObjectWrapper:
|
||||||
print(r)
|
print(r)
|
||||||
else:
|
else:
|
||||||
print('Pushed:', self.moduleName, '->', self.p_source)
|
print('Pushed:', self.moduleName, '->', self.p_source)
|
||||||
|
|
||||||
'''
|
|
||||||
if __name__ == "__main__":
|
|
||||||
|
|
||||||
import sys
|
|
||||||
sys.path.append('../')
|
|
||||||
from mispKEYS import misp_url, misp_key, misp_verifycert
|
|
||||||
from pymisp import PyMISP
|
|
||||||
|
|
||||||
pymisp = PyMISP(misp_url, misp_key, misp_verifycert)
|
|
||||||
|
|
||||||
moduleName = "credentials"
|
|
||||||
path = "/home/sami/git/AIL-framework/PASTES/archive/pastebin.com_pro/2017/08/23/bPFaJymf.gz"
|
|
||||||
|
|
||||||
wrapper = ObjectWrapper(pymisp)
|
|
||||||
wrapper.add_new_object(moduleName, path)
|
|
||||||
wrapper.pushToMISP()
|
|
||||||
'''
|
|
||||||
|
|
Loading…
Reference in New Issue