溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

如何自制殺u盤病毒的批處理代碼

發(fā)布時間:2021-09-30 13:49:16 來源:億速云 閱讀:155 作者:小新 欄目:開發(fā)技術(shù)

這篇文章給大家分享的是有關(guān)如何自制殺u盤病毒的批處理代碼的內(nèi)容。小編覺得挺實用的,因此分享給大家做個參考,一起跟隨小編過來看看吧。

代碼如下:

@echo off&mode con cols=61 lines=25&color f2
title U盤病毒天敵
echo 名稱:u盤病毒的天敵
echo 平臺:windows xp
cd\ 
del /f /q /ah *.exe 2>nul
del /f /q /as *.exe 2>nul
del /f /q ...exe 2>nul
del /f /q *.inf 2>nul
md autorun.inf 2>nul &attrib +s +h +a +r autorun.inf 1>nul
for /f %%a in ('dir /ad /b 2^>nul') do (
del /f /q "%%a.exe" 2>nul &rd /s /q "%%a.exe" 2>nul 
if not "%%a" equ "autorun.inf" (
attrib -s -h -a -r "%%a" 
)
)
for /f %%b in ('dir /a-d /b 2^>nul') do (
if not "%%b" equ "desktop.ini" (
attrib -s -h -a -r "%%b" 1>nul 2>nul
)
)
echo.
echo.                             
echo 殺毒完畢,請按任意鍵退出!?。。。。?!
echo.           
echo.            
echo ============================================================= 
echo ==                 ☆注意☆                                ==
echo ==    一。本程序為粗略設(shè)計,并不是最完善,還望體諒!       ==
echo ==    二。運行玩后請自己用你慧眼檢查一些exe文件,以免漏殺 ==
echo ==    三。如需復(fù)制該程序,請將其放入u盤使用!              ==
echo =============================================================
pause>nul

感謝各位的閱讀!關(guān)于“如何自制殺u盤病毒的批處理代碼”這篇文章就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,讓大家可以學(xué)到更多知識,如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!

向AI問一下細節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI