2013-11-27 06:04:41 +00:00
|
|
|
@ECHO OFF
|
|
|
|
IF "%VCINSTALLDIR%" == "" GOTO NEED_VS
|
|
|
|
|
|
|
|
IF "%1"=="x86" GOTO BUILD_X86
|
|
|
|
IF "%1"=="X86" GOTO BUILD_X86
|
|
|
|
IF "%1"=="x64" GOTO BUILD_X64
|
|
|
|
IF "%1"=="X64" GOTO BUILD_X64
|
|
|
|
|
|
|
|
ECHO "Building Exploits x64 and x86 (Release)"
|
|
|
|
SET PLAT=all
|
|
|
|
GOTO RUN
|
|
|
|
|
|
|
|
:BUILD_X86
|
|
|
|
ECHO "Building Exploits x86 (Release)"
|
|
|
|
SET PLAT=x86
|
|
|
|
GOTO RUN
|
|
|
|
|
|
|
|
:BUILD_X64
|
|
|
|
ECHO "Building Exploits x64 (Release)"
|
|
|
|
SET PLAT=x64
|
|
|
|
GOTO RUN
|
|
|
|
|
|
|
|
:RUN
|
|
|
|
ECHO "Building CVE-2010-0232 (KiTrap0D)"
|
|
|
|
PUSHD CVE-2010-0232
|
|
|
|
msbuild.exe make.msbuild /target:%PLAT%
|
|
|
|
POPD
|
|
|
|
|
2013-12-08 11:20:36 +00:00
|
|
|
IF "%ERRORLEVEL%"=="0" (
|
|
|
|
ECHO "Building CVE-2013-0109 (nvidia_nvsvc)"
|
|
|
|
PUSHD CVE-2013-0109
|
|
|
|
msbuild.exe make.msbuild /target:%PLAT%
|
|
|
|
POPD
|
|
|
|
)
|
|
|
|
|
2013-11-27 10:00:50 +00:00
|
|
|
IF "%ERRORLEVEL%"=="0" (
|
|
|
|
ECHO "Building CVE-2013-3660 (ppr_flatten_rec)"
|
|
|
|
PUSHD CVE-2013-3660
|
|
|
|
msbuild.exe make.msbuild /target:%PLAT%
|
|
|
|
POPD
|
|
|
|
)
|
|
|
|
|
2014-02-07 15:05:05 +00:00
|
|
|
IF "%ERRORLEVEL%"=="0" (
|
|
|
|
ECHO "Building CVE-2013-3881 (win32k_null_page)"
|
|
|
|
PUSHD CVE-2013-3881
|
|
|
|
msbuild.exe make.msbuild /target:%PLAT%
|
|
|
|
POPD
|
|
|
|
)
|
|
|
|
|
2014-10-23 23:59:58 +00:00
|
|
|
IF "%ERRORLEVEL%"=="0" (
|
2014-10-27 21:58:19 +00:00
|
|
|
ECHO "Building CVE-2014-4113 (track_popup_menu)"
|
2014-10-23 23:59:58 +00:00
|
|
|
PUSHD CVE-2014-4113
|
|
|
|
msbuild.exe make.msbuild /target:%PLAT%
|
|
|
|
POPD
|
|
|
|
)
|
|
|
|
|
2014-03-12 10:25:52 +00:00
|
|
|
IF "%ERRORLEVEL%"=="0" (
|
|
|
|
ECHO "Building CVE-2013-1300 (schlamperei)"
|
|
|
|
PUSHD CVE-2013-1300
|
|
|
|
msbuild.exe make.msbuild /target:%PLAT%
|
|
|
|
POPD
|
|
|
|
)
|
|
|
|
|
2014-02-26 00:57:15 +00:00
|
|
|
IF "%ERRORLEVEL%"=="0" (
|
2014-02-26 06:40:54 +00:00
|
|
|
ECHO "Building bypassuac (on-disk)"
|
|
|
|
PUSHD bypassuac
|
|
|
|
msbuild.exe make.msbuild /target:%PLAT%
|
|
|
|
POPD
|
2014-05-30 22:12:34 +00:00
|
|
|
|
2014-10-23 23:59:58 +00:00
|
|
|
)
|
|
|
|
|
2014-02-28 20:26:24 +00:00
|
|
|
IF "%ERRORLEVEL%"=="0" (
|
|
|
|
ECHO "Building bypassuac (in-memory)"
|
2014-02-26 00:57:15 +00:00
|
|
|
PUSHD bypassuac_injection
|
|
|
|
msbuild.exe make.msbuild /target:%PLAT%
|
|
|
|
POPD
|
|
|
|
)
|
|
|
|
|
2014-10-23 23:59:58 +00:00
|
|
|
)
|
|
|
|
|
2014-05-30 22:12:34 +00:00
|
|
|
IF "%ERRORLEVEL%"=="0" (
|
|
|
|
ECHO "Building IE11 Sandbox bypasses"
|
|
|
|
PUSHD IE11SandboxEscapes
|
|
|
|
msbuild.exe make.msbuild /target:%PLAT%
|
|
|
|
POPD
|
|
|
|
)
|
|
|
|
|
2013-11-27 06:04:41 +00:00
|
|
|
FOR /F "usebackq tokens=1,2 delims==" %%i IN (`wmic os get LocalDateTime /VALUE 2^>NUL`) DO IF '.%%i.'=='.LocalDateTime.' SET LDT=%%j
|
|
|
|
SET LDT=%LDT:~0,4%-%LDT:~4,2%-%LDT:~6,2% %LDT:~8,2%:%LDT:~10,2%:%LDT:~12,6%
|
|
|
|
echo Finished %ldt%
|
|
|
|
|
|
|
|
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 2013 -> Visual Studio Tools"
|
|
|
|
|
|
|
|
:END
|