mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-02-16 00:24:29 +01:00
31 lines
583 B
Batchfile
31 lines
583 B
Batchfile
![]() |
@ECHO OFF
|
||
|
IF "%VCINSTALLDIR%" == "" GOTO NEED_VS
|
||
|
IF "%1"=="x86" GOTO BUILD_X86
|
||
|
IF "%1"=="x64" GOTO BUILD_X64
|
||
|
|
||
|
:BUILD_X86
|
||
|
ECHO "Building Meterpreter x86 (Release)"
|
||
|
SET PLAT=x86
|
||
|
GOTO RUN
|
||
|
|
||
|
:BUILD_X64
|
||
|
ECHO "Building Meterpreter x64 (Release)"
|
||
|
SET PLAT=x64
|
||
|
GOTO RUN
|
||
|
|
||
|
ECHO "Building Meterpreter x64 and x86 (Release)"
|
||
|
SET PLAT=all
|
||
|
|
||
|
:RUN
|
||
|
PUSHD workspace
|
||
|
msbuild.exe make.msbuild /target:%PLAT%
|
||
|
|
||
|
POPD
|
||
|
GOTO :END
|
||
|
|
||
|
:NEED_VS
|
||
|
ECHO "This command must be executed from within a Visual Studio Command prompt."
|
||
|
ECHO "This can be found under Microsoft Visual Studio 2012 -> Visual Studio Tools"
|
||
|
|
||
|
:END
|