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

Function one_round

examples/petya_8086_crack.py:27–35  ·  view source on GitHub ↗
(ql: Qiling, key: bytes, key_address)

Source from the content-addressed store, hash-verified

25 ql.emu_stop()
26
27def one_round(ql: Qiling, key: bytes, key_address):
28 gkeys = generate_key(key)
29 ql.mem.write(key_address, gkeys)
30 ql.run(begin=verfication_start_ip, end=verfication_start_ip+6)
31 lba37 = ql.mem.read(ql.arch.regs.sp + 0x220, 0x200)
32 for ch in lba37:
33 if ch != 0x37:
34 return False
35 return True
36
37# In this stage, we show that the password is correct.
38def third_stage(key):

Callers 1

second_stageFunction · 0.85

Calls 4

generate_keyFunction · 0.85
writeMethod · 0.45
runMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected