Closed nikhilh-20 closed 3 years ago
mscoree.dll
is a runtime dll from the .NET framework.
Having this example run would mean emulating the .NET framework.
Hmmm, that makes sense. I'll close this issue as I don't see emulating .NET to be a goal anytime soon. Thanks!
I have a one-liner PowerShell script (
Write-Host 'Hello, World!'
) which I converted into a 32-bit exe. I was looking into the first example -use Qiling framework to emulate a Windows EXE on a Linux machine
mentioned in the README - https://github.com/qilingframework/qiling#examples. I added thedebug
option and changed the exe name.The
hello_world.exe
runs perfectly on x64 Win10:When I run it on Ubuntu 20.04, I get a
unicorn.unicorn.UcError: Invalid memory fetch (UC_ERR_FETCH_UNMAPPED)
error. I would have tried to fix it myself but I'm not sure how to debug this error. I found this log interesting:ERROR: unmapped memory access at 0x0
I'm using Python 3.8.5, Qiling 1.2.1, Unicorn 1.0.2. I also read in Qiling documentation for
UC_ERR_FETCH_UNMAPPED
error:Firmware might need interface br0 and a users testing enviroment might not have it. In this case, ql.patch will come in handy.
Does this mean I need to create abr0
network interface on my Ubuntu machine? Why does Qiling need it?