-
Notifications
You must be signed in to change notification settings - Fork 60
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
Unexpected Error: list index out of range #27
Comments
Can you test it outside of thehive? Does that work or produce the same error? Try increasing the loglevel. |
I ran the script from 'Example on how to use:' quoted here def json_serial(obj): with open('sample.eml', 'rb') as fhdl: parsed_eml = eml_parser.eml_parser.decode_email_b(raw_email) print(json.dumps(parsed_eml, default=json_serial))` Running this returns a proper JSON output. However i'm not sure how to run the actual 'parse.py' that comes with the analyzers outside of thehive. |
Ok so eml_parser does work then, it is more related to the integration to thehive, correct? I have not worked with it yet, could you give me more pointers on what that "parse.py" is (+link) and what you are trying to do? |
Looking at the analyzer requirements here https://github.com/TheHive-Project/CortexDocs/blob/master/analyzer_requirements.md#emlparser it makes me think i'm using this GOVCERT-LU/eml_parser |
Ok I see. I guess it would be best to open an issue regarding your experience with thehive project as this is more related to their analyser than to this library. Please do reference that issue in this one, as it might help others who land here as well. |
Closing issue - see issue at TheHive-Project/Cortex-Analyzers#352 |
I'm using eml_parser with TheHive project and all analysis fails with
Unexpected Error: list index out of range
I'm not sure where else to find any other logging or info to troubleshoot this.
The text was updated successfully, but these errors were encountered: