@@ -185,7 +185,7 @@ def hook_execution(
185185 def exec_hook(zelos, address, size):
186186 print(address)
187187
188- z = ("binary_to_emulate")
188+ z = Zelos ("binary_to_emulate")
189189 z.hook_execution(
190190 HookType.EXEC.BLOCK, exec_hook
191191 )
@@ -219,7 +219,7 @@ def hook_close(self, closure: Callable[[], Any]) -> HookInfo:
219219 def close_cleanup():
220220 file.close()
221221
222- z = ("binary_to_emulate")
222+ z = Zelos ("binary_to_emulate")
223223 z.hook_close(close_cleanup)
224224 z.start()
225225
@@ -258,7 +258,7 @@ def hook_syscalls(
258258 def syscall_hook(zelos, sys_name, args, ret_val):
259259 syscall_return_values.append((sys_name, ret_val))
260260
261- z = ("binary_to_emulate")
261+ z = Zelos ("binary_to_emulate")
262262 z.hook_syscalls(
263263 HookType.SYSCALL.AFTER, syscall_hook
264264 )
@@ -289,7 +289,7 @@ def start(self, timeout: float = 0) -> None:
289289
290290 from zelos import Zelos
291291
292- z = ("binary_to_emulate")
292+ z = Zelos ("binary_to_emulate")
293293
294294 # Start execution from the entry point
295295 z.start()
@@ -365,7 +365,7 @@ def set_breakpoint(self, address: int, temporary: bool = False):
365365
366366 from zelos import Zelos
367367
368- z = ("binary_to_emulate")
368+ z = Zelos ("binary_to_emulate")
369369
370370 z.set_breakpoint(0xdeadbeef)
371371
@@ -401,7 +401,7 @@ def remove_breakpoint(self, address: int):
401401
402402 from zelos import Zelos
403403
404- z = ("binary_to_emulate")
404+ z = Zelos ("binary_to_emulate")
405405
406406 z.set_breakpoint(0xdeadbeef)
407407
@@ -425,7 +425,7 @@ def set_syscall_breakpoint(self, syscall_name: str):
425425
426426 from zelos import Zelos
427427
428- z = ("binary_to_emulate")
428+ z = Zelos ("binary_to_emulate")
429429
430430 z.set_syscall_breakpoint("write")
431431
@@ -446,7 +446,7 @@ def remove_syscall_breakpoint(self, syscall_name: str):
446446
447447 from zelos import Zelos
448448
449- z = ("binary_to_emulate")
449+ z = Zelos ("binary_to_emulate")
450450
451451 z.set_syscall_breakpoint("write")
452452
@@ -477,7 +477,7 @@ def set_watchpoint(
477477
478478 from zelos import Zelos
479479
480- z = ("binary_to_emulate")
480+ z = Zelos ("binary_to_emulate")
481481
482482 # Break at any read or write to memory address 0xdeadbeef
483483 z.set_watchpoint(0xdeadbeef, True, True)
@@ -530,7 +530,7 @@ def remove_watchpoint(self, address: int):
530530
531531 from zelos import Zelos
532532
533- z = ("binary_to_emulate")
533+ z = Zelos ("binary_to_emulate")
534534
535535 z.set_watchpoint(0xdeadbeef, True, True)
536536
@@ -574,7 +574,7 @@ def date(self, date_str: str):
574574
575575 from zelos import Zelos
576576
577- z = ("binary_to_emulate")
577+ z = Zelos ("binary_to_emulate")
578578
579579 z.date = "2020-03-04"
580580
0 commit comments