We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The current json output by capa seems to be different from what is expected by the script.
capa.exe --json a.exe > a.json
Expected behavior:
Capa comments being applied on the sub functions.
Actual behavior:
Error in the python code on line 96 rule["matches"].keys() 'list' object has no attribute 'keys'
rule["matches"].keys()
capa.exe 5.0.0 (standalone tool), Python version = 3.8.1, OS = Win10
Seems like currently it is expecting something like for va in rule["matches"][0]: addr = va["value"]
for va in rule["matches"][0]: addr = va["value"]
The text was updated successfully, but these errors were encountered:
i'm able to reproduce this
Sorry, something went wrong.
import-to-ida: update to use v5 JSON format
169b3d6
closes #1584
there's a fixed version here: https://github.com/mandiant/capa/blob/19a5ef8/scripts/import-to-ida.py give it a shot and see if it works for the json reports you have locally.
we'll merge a fix for this issue on master, which will apply to v6 onwards.
williballenthin
Successfully merging a pull request may close this issue.
Description
The current json output by capa seems to be different from what is expected by the script.
Steps to Reproduce
capa.exe --json a.exe > a.json
Expected behavior:
Capa comments being applied on the sub functions.
Actual behavior:
Error in the python code on line 96
rule["matches"].keys()
'list' object has no attribute 'keys'Versions
capa.exe 5.0.0 (standalone tool), Python version = 3.8.1, OS = Win10
Additional Information
Seems like currently it is expecting something like
for va in rule["matches"][0]: addr = va["value"]
The text was updated successfully, but these errors were encountered: