예제 #1
0
 def decode(self, _=0):
     if idc.GetOpType(idc.ScreenEA(), 1) != 5:  # Immediate
         return
     value = idc.GetOperandValue(idc.ScreenEA(), 1) & 0xffffffff
     ioctl.get_ioctl_code(value)
예제 #2
0
 def decode(self, _=0):
     if idc.get_operand_type(idc.get_screen_ea(), 1) != 5:  # Immediate
         return
     value = idc.get_operand_value(idc.get_screen_ea(), 1) & 0xffffffff
     ioctl.get_ioctl_code(value)