mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
introduce flake8-simplify
This commit is contained in:
@@ -72,7 +72,7 @@ def load_analysis(bv):
|
||||
md5 = binaryninja.Transform["MD5"]
|
||||
rawhex = binaryninja.Transform["RawHex"]
|
||||
b = rawhex.encode(md5.encode(bv.parent_view.read(bv.parent_view.start, bv.parent_view.end))).decode("utf-8")
|
||||
if not a == b:
|
||||
if a != b:
|
||||
binaryninja.log_error("sample mismatch")
|
||||
return -2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user