mirror of
https://github.com/qilingframework/qiling.git
synced 2026-10-12 02:21:40 +00:00
19 lines
550 B
Python
19 lines
550 B
Python
#!/usr/bin/env python3
|
|
#
|
|
# Cross Platform and Multi Architecture Advanced Binary Emulation Framework
|
|
# Built on top of Unicorn emulator (www.unicorn-engine.org)
|
|
import sys
|
|
sys.path.append("..")
|
|
from qiling import *
|
|
|
|
|
|
def run_sandbox(path, rootfs, output):
|
|
ql = Qiling(path, rootfs, output = output)
|
|
ql.debugger = "qdb:rr" # switch on record and replay with rr
|
|
# ql.debugger = "qdb:" # enable qdb without options
|
|
ql.run()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
run_sandbox(["rootfs/arm_linux/bin/arm_hello"], "rootfs/arm_linux", "debug")
|