diff options
| author | KyleMiles <krm504@nyu.edu> | 2023-06-29 20:49:26 -0400 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2023-07-10 12:58:24 -0400 |
| commit | 04bc6f11ae0289aae57d63d4cd32f4ef305d1a7a (patch) | |
| tree | 46f06280b13fb80f2aebf0eea9b52f884e698d0c /python/examples/print_syscalls.py | |
| parent | 7598688466960427890036590239565364310171 (diff) | |
Move binary view loading in to the core; deprecate open_view in favor of load; update examples
Diffstat (limited to 'python/examples/print_syscalls.py')
| -rw-r--r-- | python/examples/print_syscalls.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/examples/print_syscalls.py b/python/examples/print_syscalls.py index a16cd8f9..7f10fdd0 100644 --- a/python/examples/print_syscalls.py +++ b/python/examples/print_syscalls.py @@ -25,13 +25,13 @@ import sys from itertools import chain -from binaryninja.binaryview import BinaryViewType +from binaryninja import load from binaryninja.enums import LowLevelILOperation def print_syscalls(fileName): """ Print Syscall numbers for a provided file """ - bv = BinaryViewType.get_view_of_file(fileName) + bv = load(fileName) calling_convention = bv.platform.system_call_convention if calling_convention is None: print('Error: No syscall convention available for {:s}'.format(bv.platform)) |
