diff options
Diffstat (limited to 'python/examples/print_syscalls.py')
| -rw-r--r-- | python/examples/print_syscalls.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/python/examples/print_syscalls.py b/python/examples/print_syscalls.py index 0ed40fb9..9956636f 100644 --- a/python/examples/print_syscalls.py +++ b/python/examples/print_syscalls.py @@ -19,7 +19,6 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. - # Thanks to @theqlabs from arm.ninja for the nice writeup and idea for this plugin: # http://arm.ninja/2016/03/08/intro-to-binary-ninja-api/ @@ -41,8 +40,7 @@ def print_syscalls(fileName): register = calling_convention.int_arg_regs[0] for func in bv.functions: - syscalls = (il for il in chain.from_iterable(func.low_level_il) - if il.operation == LowLevelILOperation.LLIL_SYSCALL) + syscalls = (il for il in chain.from_iterable(func.low_level_il) if il.operation == LowLevelILOperation.LLIL_SYSCALL) for il in syscalls: value = func.get_reg_value_at(il.address, register).value print("System call address: {:#x} - {:d}".format(il.address, value)) |
