Browse Source

fix: Making pep8 happy + added joe_import module in the init list

pull/305/head
chrisr3d 3 years ago
parent
commit
aa3e873845
No known key found for this signature in database GPG Key ID: 6BBED1B63A6D639F
  1. 3
      misp_modules/modules/expansion/__init__.py
  2. 4
      misp_modules/modules/expansion/joesandbox_query.py
  3. 5
      misp_modules/modules/import_mod/__init__.py
  4. 3
      misp_modules/modules/import_mod/joe_import.py

3
misp_modules/modules/expansion/__init__.py

@ -1,4 +1,7 @@
from . import _vmray # noqa
import os
import sys
sys.path.append('{}/lib'.format('/'.join((os.path.realpath(__file__)).split('/')[:-3])))
__all__ = ['cuckoo_submit', 'vmray_submit', 'bgpranking', 'circl_passivedns', 'circl_passivessl',
'countrycode', 'cve', 'dns', 'btc_steroids', 'domaintools', 'eupi',

4
misp_modules/modules/expansion/joesandbox_query.py

@ -1,9 +1,6 @@
# -*- coding: utf-8 -*-
import jbxapi
import json
import os
import sys
sys.path.append('{}/lib'.format('/'.join((os.path.realpath(__file__)).split('/')[:-3])))
from joe_parser import JoeParser
misperrors = {'error': 'Error'}
@ -58,6 +55,7 @@ def handler(q=False):
def introspection():
return mispattributes
def version():
moduleinfo['config'] = moduleconfig
return moduleinfo

5
misp_modules/modules/import_mod/__init__.py

@ -1,3 +1,6 @@
from . import _vmray # noqa
import os
import sys
sys.path.append('{}/lib'.format('/'.join((os.path.realpath(__file__)).split('/')[:-3])))
__all__ = ['vmray_import', 'ocr', 'cuckooimport', 'goamlimport', 'email_import', 'mispjson', 'openiocimport', 'threatanalyzer_import', 'csvimport']
__all__ = ['vmray_import', 'ocr', 'cuckooimport', 'goamlimport', 'email_import', 'mispjson', 'openiocimport', 'threatanalyzer_import', 'csvimport', 'joe_import']

3
misp_modules/modules/import_mod/joe_import.py

@ -1,9 +1,6 @@
# -*- coding: utf-8 -*-
import base64
import json
import os
import sys
sys.path.append('{}/lib'.format('/'.join((os.path.realpath(__file__)).split('/')[:-3])))
from joe_parser import JoeParser
misperrors = {'error': 'Error'}

Loading…
Cancel
Save