Skip to content

update ioc_api.make_indicatoritem_node call to match the case of the …#19

Open
andrewhillsc wants to merge 1 commit into
stephenbrannon:masterfrom
andrewhillsc:master
Open

update ioc_api.make_indicatoritem_node call to match the case of the …#19
andrewhillsc wants to merge 1 commit into
stephenbrannon:masterfrom
andrewhillsc:master

Conversation

@andrewhillsc

Copy link
Copy Markdown

…function

I was receiving the following error:

Exception in Tkinter callback
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1536, in __call__
    return self.func(*args)
  File "IOCextractor.py", line 382, in export_openioc
    indicator_node = make_email_from(value)
  File "IOCextractor.py", line 341, in make_email_from
    IndicatorItem_node = ioc_api.make_IndicatorItem_node(condition, document, search, content_type, content, negate=negate, preserve_case=preserve_case, context_type = None)
AttributeError: 'module' object has no attribute 'make_IndicatorItem_node'

After some digging it looks like ioc_writer updated the function name, note that it's all lower case now:

def make_indicatoritem_node(condition,
                            document,
                            search,
                            content_type,
                            content,
                            preserve_case=False,
                            negate=False,
                            context_type='mir',
                            nid=None):

Quick fix - it can now successfully output the IOC file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant