(ql, *args, **kw)
| 11 | |
| 12 | if __name__ == "__main__": |
| 13 | def dump(ql, *args, **kw): |
| 14 | ql.save(reg=False, cpu_context=True, snapshot="/tmp/snapshot.bin") |
| 15 | ql.emu_stop() |
| 16 | |
| 17 | ql = Qiling(["rootfs/x8664_linux/bin/sleep_hello"], "rootfs/x8664_linux", verbose=QL_VERBOSE.DEBUG) |
| 18 | X64BASE = int(ql.profile.get("OS64", "load_address"), 16) |