MCPcopy Create free account
hub / github.com/qilingframework/qiling / partial_run_init

Method partial_run_init

tests/test_blob.py:49–65  ·  view source on GitHub ↗
(ql: Qiling)

Source from the content-addressed store, hash-verified

47 self.assertSequenceEqual(real_password, user_password, seq_type=bytearray)
48
49 def partial_run_init(ql: Qiling):
50 # argv prepare
51 ql.arch.regs.arch_sp -= 0x30
52 arg0_ptr = ql.arch.regs.arch_sp
53 ql.mem.write(arg0_ptr, b"kaimendaji")
54
55 ql.arch.regs.arch_sp -= 0x10
56 arg1_ptr = ql.arch.regs.arch_sp
57 ql.mem.write(arg1_ptr, b"013f1f")
58
59 ql.arch.regs.arch_sp -= 0x20
60 argv_ptr = ql.arch.regs.arch_sp
61 ql.mem.write_ptr(argv_ptr, arg0_ptr)
62 ql.mem.write_ptr(argv_ptr + ql.arch.pointersize, arg1_ptr)
63
64 ql.arch.regs.r2 = 2
65 ql.arch.regs.r3 = argv_ptr
66
67 print("ARM uboot bin")
68

Callers

nothing calls this directly

Calls 2

write_ptrMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected