mimikatz/mimidrv/_build_.cmd

27 lines
663 B
Batchfile
Raw Normal View History

2014-04-12 19:43:49 +00:00
@echo off
2014-04-23 20:00:29 +00:00
set winddk=%SystemDrive%\WinDDK\7600.16385.1
2014-04-12 19:43:49 +00:00
set mimidrv=%~dp0
set path=%systemroot%;%systemroot%\system32
set origplatform=%1
set destination=%2
if %origplatform%==Win32 (
set platform=x86
set beginsource=x86
set endsource=i386
) else (
set platform=x64
set beginsource=amd64
set endsource=amd64
)
if exist %winddk% (
call %winddk%\bin\setenv.bat %winddk%\ fre %platform% WNET no_oacr
cd /d %mimidrv%
build
if errorlevel 0 (copy /y %mimidrv%\objfre_wnet_%beginsource%\%endsource%\*.sys %destination%) else echo Build failed :(
) else echo No WDK found :(
rd /s /q %mimidrv%\obj
rd /s /q %mimidrv%\%origplatform%