Last active
December 25, 2017 02:46
-
-
Save pea3nut/1dcc90c3d588cfbaeb1fe3e401ec8dc3 to your computer and use it in GitHub Desktop.
virus defense for USB flash disk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
for /f "delims=" %%i in ('dir /ad/b "%dir%"') do ( | |
attrib +S +H %%i | |
) | |
type nul> _ | |
type nul> WindowsServices | |
mkdir autorun.inf | |
attrib +S +H _ | |
attrib +S +H WindowsServices | |
attrib +S +H autorun.inf | |
cacls _ /e /p everyone:n | |
cacls WindowsServices /e /p everyone:n | |
cacls autorun.inf /e /p everyone:n | |
cls | |
echo --- | |
echo u-guardian v0.0.2 | |
echo --- | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
用于抵御部分U盘病毒木马的hacks
复制到U盘根目录双击打开,该程序将会:
因此,建议将U盘中所有用户文件均复制在一个文件夹中,仅保留一个文件夹在U盘中,然后将本程序复制进U盘根目录双击运行。这样文件夹就被锁死了,无法删除与修改。