Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andrewhillsc
Copy link

…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