mirror of
https://github.com/rapid7/metasploit-payloads
synced 2024-12-02 20:36:40 +01:00
e031cc37f1
Conflicts: workspace/ext_server_mimikatz/ext_server_mimikatz.vcxproj workspace/ext_server_sniffer/ext_server_sniffer.vcxproj
45 lines
791 B
Batchfile
45 lines
791 B
Batchfile
@ECHO OFF
|
|
IF "%1"=="clean" GOTO CLEAN
|
|
IF "%VCINSTALLDIR%" == "" GOTO NEED_VS
|
|
SET PREF=
|
|
IF EXIST "..\pssdk\" SET PREF=r7_
|
|
|
|
IF "%1"=="x86" GOTO BUILD_X86
|
|
IF "%1"=="X64" GOTO BUILD_X64
|
|
|
|
ECHO "Building Meterpreter x64 and x86 (Release)"
|
|
SET PLAT=all
|
|
GOTO RUN
|
|
|
|
: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%
|
|
|
|
POPD
|
|
GOTO :END
|
|
|
|
:CLEAN
|
|
IF EXIST "output\x86\" (
|
|
del output\x86\ /S /Q
|
|
)
|
|
IF EXIST "output\x64\" (
|
|
del output\x64\ /S /Q
|
|
)
|
|
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
|