从此告别杀毒软件,手把手教你制作病毒免疫工具

 时间:2026-02-12 05:04:31

1、创建不可删除的文件夹在创建的文本文档中输入以下代码:

md c:\Autorun.inf\

md c:\Autorun.inf\1234...\

md x:\Autorun.inf\

md x:\Autorun.inf\1234...\

其中,x表示盘符,电脑中存在几个分区即可输入几个盘符。然后将该文本文档保存为“U盘病毒防御.bat”批处理文件并将其运行,在各盘符的根目录中将会出现Autorun.inf文件,达到防御病毒的目的。

从此告别杀毒软件,手把手教你制作病毒免疫工具

1、禁止和恢复Autorun.inf功能

编写代码,将其制作成批处理文件,就可保证插入以及打开移动设备时不中病毒。

编写清除和恢复Autorun.inf的代码

2、1.清除:新建一个文本文档,在其中输入以下代码,然后将其保存为delete.bat文件,运行该文件禁用Autorun.inf的功能,

@ECHO off

REG.exe DELETE HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2 /f

REG.exe ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2

ECHO 

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2 []>%temp%\temp.txt

REGINI.exe %temp%\temp.txt

GOTO :eof

3、2.恢复:重新建立一个新的文本文档,在其中输入以下代码,将其命名“huifu.bat”,运行该文件即可恢复该功能,如下:

@ECHO off

ECHO

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2 [7]>%temp%\temp.txt

REGINI.exe %temp%\temp.txt

REG.exe DELETE HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2 /f

REG.exe ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2

GOTO :eof

  • 跟对一个领导有多重要
  • 生死狙击游隼怎么玩
  • html+css实现柱状图
  • AndroidManifest.xml注册应用权限
  • php环境搭建教程
  • 热门搜索
    酥肉的做法 马应龙痔疮膏怎么用 朐怎么读 大便出血鲜红怎么办 笔筒的做法 肉丸的做法 大虾的做法 红烧牛肉做法 闵怎么读 银行卡开户行怎么查询