[Bug] - AttributeError 'capa.render.result_document' has no attribute 'convert_capabilities_to_result_document'
See original GitHub issueDescription
When using capa_as_library
, error is raised on convert_capabilities_to_result_document
Steps to Reproduce
A naive test case:
>>> from scripts.capa_as_library import *
>>> results = capa_details('tests/data/mimikatz.exe_')
CB is None in graph building?!?! (0x41d286)
(fva: 0x0041d251 cbva: 0x0041d286)
FB is None in graph building!??!
..snipped...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "capa/scripts/capa_as_library.py", line 178, in capa_details
doc = capa.render.result_document.convert_capabilities_to_result_document(meta, rules, capabilities)
AttributeError: module 'capa.render.result_document' has no attribute 'convert_capabilities_to_result_document'
Expected behavior: Return dict of capa_output to caller
Actual behavior: AttributeError is raised
Versions
Build from latest master
Additional Information
n/a
Issue Analytics
- State:
- Created a year ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
AttributeError: 'str' object has no attribute 'target_people'
since bug 1197879 landed i see the following in the rb logs when refreshing the docker container: 2016-05-19 06:02:41,750 - ERROR - -...
Read more >'NoneType' object has no attribute 'title' on bulk management
AttributeError while rendering: 'NoneType' object has no attribute 'title' on bulk management ; Component/s. Apps - Confluence Questions ; Affected version/s. No- ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
also, welcome back 😃
good catch, thanks!
i’ll make the fix here and also add this script into the CI testing so something like this doesn’t happen again.