Skip to content

Visual Studio Project/DLL that can be used to test DLL Hijacking or launched via RUNDLL32

License

Notifications You must be signed in to change notification settings

natesubra/runcalc-dll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

runcalc.dll

After mucking around trying to create a DLL to use for testing DLL Hijacks and testing RUNDLL32 exection I finally just wrote my own. There are plenty of things still on my todo list. But this is a start. A binary release is available but you should build your own. Pull requests welcome.

Build Details

Last built in Visual Studio Community 2017 v141

Example Usage

I've included several methods of file execution. You can specify which to use by passing it to rundll32. If loaded without without specified function; dllmain will call the CreateProcess function.

  • Run empty function. Used for testing DLL_PROCESS_ATTACH via rundll32, calls CreateProcess

    rundll32.exe runcalc.dll,empty

  • Using _popen

    rundll32.exe runcalc.dll,ex

  • Using WinExec

    rundll32.exe runcalc.dll,we

  • Using system

    rundll32.exe runcalc.dll,sys

  • Using ShellExecute

    rundll32.exe runcalc.dll,se

  • Using CreateProcess

    rundll32.exe runcalc.dll,cp

Todo

  • Add example hijack usage
  • add logic to link to correct library if handling hijack

About

Visual Studio Project/DLL that can be used to test DLL Hijacking or launched via RUNDLL32

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages