Пример #1
0
 def testNOP(self):
     """test if NOP instructions are parsed"""
     instruction = dvm.Instruction10x(MockClassManager(),
                                      bytearray(b"\x00\x00"))
     self.assertEqual(instruction.get_name(), "nop")
Пример #2
0
 def testNOP(self):
     instruction = dvm.Instruction10x(None, "\x00\x00")
     self.assertEqual(instruction.get_name(), "nop")
Пример #3
0
def patch_method_3(method):
    method.set_code_idx(0x12)
    instructions = [j for j in method.get_instructions()]
    for j in range(0, 9):
        instructions.insert(0, dvm.Instruction10x(None, "\x00\x00"))
    method.set_instructions(instructions)