Unable to emulate bin/RegDemo.exe
chintanhshah opened this issue · comments
*Describe the bug
Trying to emulate the example binary bin/RegDemo.exe with qiling . Unable to emulate and Unicorn throws an error. All DLLs have been provided in the rootfs/x86_windows/Windows using dllscollector batch script
Sample Code
from qiling import *
from qiling.const import QL_VERBOSE
import sys
sys.path.append("..")
# sandbox to emulate the EXE
def my_sandbox(path, rootfs):
# setup Qiling engine
ql = Qiling(path,rootfs)
# now emulate the EXE
ql.run()
if __name__ == "__main__":
# execute Windows EXE under our rootfs
my_sandbox(["qiling/examples/rootfs/x86_windows/bin/RegDemo.exe"],"qiling/examples/rootfs/x86_windows")Expected behavior
Binary should be emulated correctly.
Additional context
Let me know if there is anything else I need to setup to be able to emulate correctly.
please use pip install unicorn==2.0.1 at this moment.
Hi @wtdcode , Thanks that has worked for now..
