-
Notifications
You must be signed in to change notification settings - Fork 194
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
WinMain #7
Comments
Hi @jeky-- I hope this improves overall usability. We can convert the application, and then directly use its former start function like a normal export from a DLL, i.e. by calling it via rundll32. It tested it with some sample Windows applications, containing WinMain (attached here: Project1_demos.zip) - and everything worked as expected: Please let me know if it helps. |
Thank you very much! |
@jeky-- : Indeed if the main function expects some commandline arguments, it may not work simply via rundll32. But yet, now it is easy to load this DLL via |
The application I'm trying to convert are famous and public, so I can share them here: 2- process hacker I had not thought of using a loader in the form of a dll, indeed it is a solution as simple as it is effective! I have already tried it and of course it works perfectly. (also the binary patching worked for process explorer, but took much more time) |
I just checked Process Hacker, I didn't manage to reproduce the crash, but indeed the menu bar is missing. I guess this is because during the initialization it's trying to set the menu for the main module, which normally is it's own application - but when it's running as a DLL, now the main module is rundll32, or whatever the loader was.
But this is out of scope of the converter, and has to be done per each case separately, because the needs of what should be hooked may vary. |
@yume-chan - what about hooking |
Effectively the wrapper I had tried to make was an exe, so it does not suffer from the rundll32 problem, doing the same thing from another dll the problem occurs again. In the specific case of procexp64 I had patched the binary to alter the behaviour according to the presence of arguments... unfortunately it still won't start. |
Hello again, while running AccessEnum (converted to exe) via rundll32, I receive a 0xC00000FD (STATUS_STACK_OVERFLOW) after few usage. Is there anything I can do to avoid this? |
Is it possible to make this tool compatible with windows applications?
I've made som tries myself without any luck.
The exe is correcly converted, but giving the entry point to the loader nothing happens.
I guess that may people would enjoy a "testload" applications, compiled as a DLL file, with a given export name, so i may be called with rundll32. This would enable to calle rundll32 testload.dll,Load
I should be able to write this for console applications, but (sady) not for Windows applications.
Anyone would help?
Thanks in advance!
\Jeky--
The text was updated successfully, but these errors were encountered: