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

字號:


    這篇文章主要介紹了自制殺u盤病毒的批處理代碼,需要的朋友可以參考下
    代碼如下:
    @echo off&mode con cols=61 lines=25&color f2
    title u盤病毒天敵
    echo 名稱:u盤病毒的天敵
    echo 平臺:windows xp
    echo 作者:小強(qiáng)
    echo 版權(quán)所有,請勿倒翻!
    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 == 一。本程序?yàn)榇致栽O(shè)計(jì),并不是最完善,還望體諒! ==
    echo == 二。運(yùn)行玩后請自己用你慧眼檢查一些exe文件,以免漏殺 ==
    echo == 三。如需復(fù)制該程序,請將其放入u盤使用! ==
    echo =============================================================
    pause>nul