1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-11-20 14:39:22 +01:00
metasploit-payloads/c/meterpreter/make.bat

51 lines
873 B
Batchfile
Raw Normal View History

2013-09-03 14:31:38 +02:00
@ECHO OFF
IF "%1"=="clean" GOTO CLEAN
IF "%1"=="docs" GOTO DOCS
2013-10-29 04:46:46 +01:00
IF "%VCINSTALLDIR%" == "" GOTO NEED_VS
SET PREF=
IF EXIST "..\pssdk\" SET PREF=r7_
2013-09-03 14:31:38 +02:00
IF "%1"=="x86" GOTO BUILD_X86
IF "%1"=="X64" GOTO BUILD_X64
ECHO "Building Meterpreter x64 and x86 (Release)"
SET PLAT=all
GOTO RUN
2013-09-03 14:31:38 +02:00
:BUILD_X86
ECHO "Building Meterpreter x86 (Release)"
SET PLAT=x86
GOTO RUN
:BUILD_X64
ECHO "Building Meterpreter x64 (Release)"
SET PLAT=x64
GOTO RUN
:RUN
PUSHD workspace
msbuild.exe make.msbuild /target:%PREF%%PLAT%
2013-09-03 14:31:38 +02:00
POPD
GOTO :END
:CLEAN
IF EXIST "output\x86\" (
del output\x86\ /S /Q
)
IF EXIST "output\x64\" (
del output\x64\ /S /Q
)
GOTO :END
:DOCS
tools\doxygen\doxygen.exe doxygen.cnf
GOTO :END
2013-09-03 14:31:38 +02:00
:NEED_VS
ECHO "This command must be executed from within a Visual Studio Command prompt."
2013-10-29 04:46:46 +01:00
ECHO "This can be found under Microsoft Visual Studio 2013 -> Visual Studio Tools"
2013-09-03 14:31:38 +02:00
:END