Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to emulate bin/RegDemo.exe #1502

Open
chintanhshah opened this issue Oct 17, 2024 · 2 comments
Open

Unable to emulate bin/RegDemo.exe #1502

chintanhshah opened this issue Oct 17, 2024 · 2 comments

Comments

@chintanhshah
Copy link

chintanhshah commented Oct 17, 2024

*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.

Screenshots
image

Additional context
Let me know if there is anything else I need to setup to be able to emulate correctly.

@chintanhshah chintanhshah changed the title Unable to emulate example/x86_hello.exe Unable to emulate bin/RegDemo.exe Oct 17, 2024
@wtdcode
Copy link
Member

wtdcode commented Oct 17, 2024

please use pip install unicorn==2.0.1 at this moment.

@chintanhshah
Copy link
Author

Hi @wtdcode , Thanks that has worked for now..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants