Browse Source

fix: Fixed vt_graph imports

pull/363/head
chrisr3d 2 years ago
parent
commit
f5452055f6
No known key found for this signature in database GPG Key ID: 6BBED1B63A6D639F
  1. 2
      misp_modules/lib/__init__.py
  2. 8
      misp_modules/lib/vt_graph_parser/__init__.py
  3. 3
      misp_modules/lib/vt_graph_parser/helpers/__init__.py
  4. 2
      misp_modules/lib/vt_graph_parser/helpers/parsers.py
  5. 7
      misp_modules/lib/vt_graph_parser/importers/__init__.py
  6. 2
      misp_modules/lib/vt_graph_parser/importers/base.py
  7. 4
      misp_modules/lib/vt_graph_parser/importers/pymisp_response.py
  8. 2
      misp_modules/modules/export_mod/vt_graph.py

2
misp_modules/lib/__init__.py

@ -1 +1,3 @@
from .vt_graph_parser import * # noqa
all = ['joe_parser', 'lastline_api']

8
misp_modules/lib/vt_graph_parser/__init__.py

@ -4,9 +4,5 @@ This module provides methods to import graph from misp.
"""
from lib.vt_graph_parser.importers import from_pymisp_response
__all__ = [
"from_pymisp_response"
]
from .helpers import * # noqa
from .importers import * # noqa

3
misp_modules/lib/vt_graph_parser/helpers/__init__.py

@ -2,3 +2,6 @@
This modules provides functions and attributes to help MISP importers.
"""
all = ["parsers", "rules", "wrappers"]

2
misp_modules/lib/vt_graph_parser/helpers/parsers.py

@ -4,7 +4,7 @@ This module provides parsers for MISP inputs.
"""
from lib.vt_graph_parser.helpers.wrappers import MispAttribute
from vt_graph_parser.helpers.wrappers import MispAttribute
MISP_INPUT_ATTR = [

7
misp_modules/lib/vt_graph_parser/importers/__init__.py

@ -4,9 +4,4 @@ This module provides methods to import graphs from MISP.
"""
from lib.vt_graph_parser.importers.pymisp_response import from_pymisp_response
__all__ = [
"from_pymisp_response"
]
__all__ = ["base", "pymisp_response"]

2
misp_modules/lib/vt_graph_parser/importers/base.py

@ -5,7 +5,7 @@ This module provides a common method to import graph from misp attributes.
import vt_graph_api
from lib.vt_graph_parser.helpers.rules import MispEventInitialRule
from vt_graph_parser.helpers.rules import MispEventInitialRule
def import_misp_graph(

4
misp_modules/lib/vt_graph_parser/importers/pymisp_response.py

@ -5,8 +5,8 @@ response payload giving by MISP API directly.
"""
from lib.vt_graph_parser.helpers.parsers import parse_pymisp_response
from lib.vt_graph_parser.importers.base import import_misp_graph
from vt_graph_parser.helpers.parsers import parse_pymisp_response
from vt_graph_parser.importers.base import import_misp_graph
def from_pymisp_response(

2
misp_modules/modules/export_mod/vt_graph.py

@ -3,7 +3,7 @@
import base64
import json
from lib.vt_graph_parser import from_pymisp_response
from vt_graph_parser.importers.pymisp_response import from_pymisp_response
misperrors = {

Loading…
Cancel
Save