Beispiel #1
0
 def __iter__(self):
     binaryninja._init_plugins()
     count = ctypes.c_ulonglong()
     commands = core.BNGetAllPluginCommands(count)
     try:
         for i in range(0, count.value):
             yield PluginCommand(commands[i])
     finally:
         core.BNFreePluginCommandList(commands)
Beispiel #2
0
 def list(self):
     binaryninja._init_plugins()
     count = ctypes.c_ulonglong()
     commands = core.BNGetAllPluginCommands(count)
     result = []
     for i in range(0, count.value):
         result.append(PluginCommand(commands[i]))
     core.BNFreePluginCommandList(commands)
     return result