mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-30 01:37:17 +00:00
update: removed useless comments
This commit is contained in:
parent
f603a7f44b
commit
83e082e62a
1 changed files with 0 additions and 26 deletions
|
@ -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)
|
||||
|
||||
'''
|
||||
# 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):
|
||||
return "{0}-{1}-{2}".format(date.year, date.month, date.day)
|
||||
|
||||
|
@ -137,21 +129,3 @@ class ObjectWrapper:
|
|||
print(r)
|
||||
else:
|
||||
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 a new issue