Which actually make sense because I am running a DLL not loaded properly by a PE file, but I wonder if there is an easy way to load a DLL and avoid that issue (I can hook the function and overwrite it but it is quite annoying for something that is really common). Maybe having a script available to fully reproduce rundll32? Or am I missing something?
Hi,
I am trying to run a function in a DLL using a script similar to this one but I encounter an issue when running
GetModuleFileName
:The
get_current_process
function does not return anything :Which actually make sense because I am running a DLL not loaded properly by a PE file, but I wonder if there is an easy way to load a DLL and avoid that issue (I can hook the function and overwrite it but it is quite annoying for something that is really common). Maybe having a script available to fully reproduce rundll32? Or am I missing something?