mirror of
https://github.com/vee1e/capa.git
synced 2026-09-01 18:57:15 +00:00
ghidra: fix IndexError exception (#1879)
* ghidra: fix IndexError exception
This commit is contained in:
parent
3f449f3c0f
commit
2dbac05716
2 changed files with 35 additions and 15 deletions
|
|
@ -61,7 +61,22 @@ var_names = ["".join(letters) for letters in itertools.product(string.ascii_lowe
|
|||
|
||||
|
||||
# this have to be the internal names used by capa.py which are sometimes different to the ones written out in the rules, e.g. "2 or more" is "Some", count is Range
|
||||
unsupported = ["characteristic", "mnemonic", "offset", "subscope", "Range", "os", "property", "format", "class", "operand[0].number", "operand[1].number", "substring", "arch", "namespace"]
|
||||
unsupported = [
|
||||
"characteristic",
|
||||
"mnemonic",
|
||||
"offset",
|
||||
"subscope",
|
||||
"Range",
|
||||
"os",
|
||||
"property",
|
||||
"format",
|
||||
"class",
|
||||
"operand[0].number",
|
||||
"operand[1].number",
|
||||
"substring",
|
||||
"arch",
|
||||
"namespace",
|
||||
]
|
||||
# further idea: shorten this list, possible stuff:
|
||||
# - 2 or more strings: e.g.
|
||||
# -- https://github.com/mandiant/capa-rules/blob/master/collection/file-managers/gather-direct-ftp-information.yml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue