mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-30 22:19:17 +02:00
add debug option
This commit is contained in:
parent
c911749430
commit
e31371c813
c/meterpreter
@ -28,6 +28,10 @@ IF "%1"=="x86" GOTO BUILD_X86
|
|||||||
IF "%1"=="X86" GOTO BUILD_X86
|
IF "%1"=="X86" GOTO BUILD_X86
|
||||||
IF "%1"=="x64" GOTO BUILD_X64
|
IF "%1"=="x64" GOTO BUILD_X64
|
||||||
IF "%1"=="X64" GOTO BUILD_X64
|
IF "%1"=="X64" GOTO BUILD_X64
|
||||||
|
IF "%1"=="debug_x86" GOTO DEBUG_BUILD_X86
|
||||||
|
IF "%1"=="debug_x64" GOTO DEBUG_BUILD_X64
|
||||||
|
IF "%1"=="debug_X86" GOTO DEBUG_BUILD_X86
|
||||||
|
IF "%1"=="debug_X64" GOTO DEBUG_BUILD_X64
|
||||||
|
|
||||||
ECHO "Building Meterpreter x64 and x86 (Release)"
|
ECHO "Building Meterpreter x64 and x86 (Release)"
|
||||||
SET PLAT=all
|
SET PLAT=all
|
||||||
@ -38,11 +42,23 @@ ECHO "Building Meterpreter x86 (Release)"
|
|||||||
SET PLAT=x86
|
SET PLAT=x86
|
||||||
GOTO RUN
|
GOTO RUN
|
||||||
|
|
||||||
|
:DEBUG_BUILD_X86
|
||||||
|
ECHO "Building Meterpreter x86 (Debug)"
|
||||||
|
SET PREF=debug_
|
||||||
|
SET PLAT=x86
|
||||||
|
GOTO RUN
|
||||||
|
|
||||||
:BUILD_X64
|
:BUILD_X64
|
||||||
ECHO "Building Meterpreter x64 (Release)"
|
ECHO "Building Meterpreter x64 (Release)"
|
||||||
SET PLAT=x64
|
SET PLAT=x64
|
||||||
GOTO RUN
|
GOTO RUN
|
||||||
|
|
||||||
|
:DEBUG_BUILD_X64
|
||||||
|
ECHO "Building Meterpreter x64 (Debug)"
|
||||||
|
SET PREF=debug_
|
||||||
|
SET PLAT=x64
|
||||||
|
GOTO RUN
|
||||||
|
|
||||||
:RUN
|
:RUN
|
||||||
PUSHD workspace
|
PUSHD workspace
|
||||||
msbuild.exe make.msbuild /target:%PREF%%PLAT% /p:PlatformToolset=%PTS_VER%
|
msbuild.exe make.msbuild /target:%PREF%%PLAT% /p:PlatformToolset=%PTS_VER%
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
<Target Name="all" DependsOnTargets="x86;x64" />
|
<Target Name="all" DependsOnTargets="x86;x64" />
|
||||||
<Target Name="r7_all" DependsOnTargets="r7_x86;r7_x64" />
|
<Target Name="r7_all" DependsOnTargets="r7_x86;r7_x64" />
|
||||||
|
<Target Name="debug" DependsOnTargets="debug_x86;debug_x64" />
|
||||||
|
|
||||||
<Target Name="x86">
|
<Target Name="x86">
|
||||||
<Message Text="Building x86 Release version" />
|
<Message Text="Building x86 Release version" />
|
||||||
@ -26,5 +27,15 @@
|
|||||||
<Message Text="Building x64 Release R7 binaries" />
|
<Message Text="Building x64 Release R7 binaries" />
|
||||||
<MSBuild Projects="$(SolutionPath)" Properties="Configuration=r7_Release;Platform=x64" Targets="Clean;Rebuild"/>
|
<MSBuild Projects="$(SolutionPath)" Properties="Configuration=r7_Release;Platform=x64" Targets="Clean;Rebuild"/>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
<Target Name="debug_x86">
|
||||||
|
<Message Text="Building x86 Debug version" />
|
||||||
|
<MSBuild Projects="$(SolutionPath)" Properties="Configuration=Debug;Platform=Win32" Targets="Clean;Rebuild"/>
|
||||||
|
</Target>
|
||||||
|
|
||||||
|
<Target Name="debug_x64">
|
||||||
|
<Message Text="Building x64 Debug version" />
|
||||||
|
<MSBuild Projects="$(SolutionPath)" Properties="Configuration=Debug;Platform=x64" Targets="Clean;Rebuild"/>
|
||||||
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user