-
Notifications
You must be signed in to change notification settings - Fork 536
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
Using WinAFL on native code that part of .NET program. #453
Comments
Does your program run OK without DynamoRIO / WinAFL? One thing you can try is TinyInst mode (see https://github.com/googleprojectzero/winafl/blob/master/readme_tinyinst.md). TinyInst is different in that it does not touch any other modules except the one you want to instrument, so it might work better for your case. |
Hi, thanks for the answer. It run OK without DynamoRIO / WinAFL. I try to use Tinyinst but get this error in build time:
|
Which OS / VS version is that on? |
windows 11, VS 2019. |
I could not reproduce this build error. I don't have your exact configuration but on Win10+VS2019 and Win11+VS2022 it builds without issues for me. Some things you can try:
|
Hi, so I'm now trying a different direction, the question now is can WINAFL work on a VM? |
Yes, except Intel PT, all other modes should work in a VM. |
Why do you think the issue occurs only on the VM and only when using a custom mutator? I’ve tried several custom mutators, even ones that perform no operations or allocate no additional memory, yet I still encounter a failure at that assertion:
|
My .NET program initializes by starting the backend using wrapper.dll, which contains mixed code (managed and unmanaged). The managed code is solely used as an interface to interact with the unmanaged code. After completing the necessary initialization and configuration of the native code, the program transitions to running exclusively with native code from wrapper.dll and additional native DLLs included in the program.
For example, let's say my target is coverage_target.dll, which is purely native. The issue arises when I attempt to run the program—it fails due to the inability to load wrapper.dll:
So how can I solve this?
The text was updated successfully, but these errors were encountered: