Fix lint errors

This commit is contained in:
Elad Levi
2025-04-29 14:20:42 +03:00
committed by GitHub
parent 4738efefa3
commit 19b094acf6
@@ -86,17 +86,16 @@ class EtwPatch(interfaces.plugins.PluginInterface):
# Map of opcodes to their instruction names
opcode_map = {
0xc3: "RET",
0xe9: "JMP",
0xC3: "RET",
0xE9: "JMP",
}
for dll_name, functions in found_symbols.items():
for func_name, func_addr in functions:
try:
opcode = (
self.context.layers[proc_layer_name]
.read(func_addr, 1)[0]
)
opcode = self.context.layers[proc_layer_name].read(
func_addr, 1
)[0]
if opcode in opcode_map:
instruction = opcode_map[opcode]
yield (