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

System.BadImageFormatException Error #2

Closed
sandyboxy opened this issue Dec 15, 2020 · 1 comment
Closed

System.BadImageFormatException Error #2

sandyboxy opened this issue Dec 15, 2020 · 1 comment

Comments

@sandyboxy
Copy link

Hello,
I am trying to use your interesting tool to investigate DLL behavior, but when I run SharpDllLoader.exe by specifying parameters in this way d "C:\Users\malicious.dll" -c <Class> -m <Method> -a "arg1 arg2 arg3" I obtain the following error

An unhandled exception occurred in SharpDllLoader.exe (2360)

Exception: System.BadImageFormatException

Message: The file or assembly "malicious.dll" or one of its dependencies could not be loaded. it is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
@hexfati
Copy link
Owner

hexfati commented Feb 10, 2022

It's probably a problem with your 'malicious.dll' during the loading of the library.

@hexfati hexfati closed this as completed Feb 10, 2022
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