Subversion Repositories Aucun

Rev

Rev 40 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
32 ixe013 1
@echo off
2
 
91 ixe013 3
setlocal
32 ixe013 4
rem ------------------------------
91 ixe013 5
rem Make a time based file name
32 ixe013 6
rem ------------------------------
91 ixe013 7
set AUCUN_DLL_NAME=AUCUN-%RANDOM%.dll
32 ixe013 8
 
91 ixe013 9
rem ------------------------------
10
rem Delete any old DLL, but one...
11
rem ------------------------------
12
del /q %windir%\system32\aucun*.dll
32 ixe013 13
 
91 ixe013 14
echo F | xcopy /v .\debug\aucun.dll "%windir%\system32\%AUCUN_DLL_NAME%"
15
 
32 ixe013 16
rem ------------------------------
91 ixe013 17
rem Edit the registry
32 ixe013 18
rem ------------------------------
91 ixe013 19
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v GinaDLL /t REG_SZ /d "%AUCUN_DLL_NAME%" /f > nul
32 ixe013 20
 
91 ixe013 21
if %ERRORLEVEL%==0 (
22
 
23
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v GinaDLL
32 ixe013 24
dir /od %windir%\system32\aucun*.dll | findstr /I /c:aucun
25
 
26
shutdown /r /t 5 /f
27
 
91 ixe013 28
)
29
 
30
endlocal
31
 
32