일괄 처리 응용 프로그램:McAfee 에서 이름 을 바 꾼 수상 한 바이러스 파일 확장자 복원

Mcafee 는 의 심 스 러 운 바이러스 파일 을 인식 하지만 바이러스 라 이브 러 리 에 바이러스 정의 가 없 으 면 파일 확장 자 를 vir 또는 vxe 라 고 부 릅 니 다.이 처리 파일 을 고정 적 으로 만 들 고 수 정 된 exe 파일 MCAFEE 로 이름 을 바 꾸 는 원칙 을 사용 합 니 다.
Original Renamed
Description
Not V?? V??
File extensions that do not start with v are renamed with v as
the initial letter of the file extension. For example,
MYFILE.DOC becomes MYFILE.VOC.
V?? VIR
File extensions that start with v are renamed as .VIR. For
example, MYFILE.VBs becomes MYFILE.VIR.
VIR,
V01-V99
These files are recognized as already infected, and are not renamed again.
VIR
Files with no extensions are given the extension, .VIR. @echo offecho On Error Resume Next >%temp%\filesystem.vbsecho Const wbemFlagReturnImmediately = ^&h10 >>%temp%\filesystem.vbsecho Const wbemFlagForwardOnly = ^&h20 >>%temp%\filesystem.vbsecho For Each strComputer In arrComputers >>%temp%\filesystem.vbsecho Set objWMIService = GetObject("winmgmts:\\.\root\CIMV2") >>%temp%\filesystem.vbs >>%temp%\filesystem.vbsecho Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_LogicalDisk", "WQL", _ >>%temp%\filesystem.vbsecho wbemFlagReturnImmediately + wbemFlagForwardOnly) >>%temp%\filesystem.vbsecho For Each objItem In colItems >>%temp%\filesystem.vbsecho if objItem.DriverType=3 Then WScript.Echo objItem.Caption ^& "\" End if >>%temp%\filesystem.vbsecho Next >>%temp%\filesystem.vbsecho Next >>%temp%\filesystem.vbsfor /f %%i in ('cscript //nologo %temp%\filesystem.vbs') do call :change %%igoto end:changecd /d %1for /f "delims=|" %%i in ('dir *.vxe /b /s /a') do (cacls "%%i" /e /g everyone:f & ren "%%i" *.exe):enddel %temp%\filesystem.vbs

좋은 웹페이지 즐겨찾기