|
|
发表于 2024-8-30 17:49:35
|
显示全部楼层
代码问题
你用我的注册表吧
#右键 添加 为.exe程序 添加/删除防火墙规则
- Windows Registry Editor Version 5.00
- #右键 添加 为.exe程序 添加/删除防火墙规则
- [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules]
- "MUIVerb"="防火墙规则 添加/删除"
- "Icon"="FirewallControlPanel.dll,0"
- "SubCommands"=""
- [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules\Shell]
- [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules\Shell\Item1]
- "MUIVerb"="为此程序添加禁止入站规则"
- "Icon"="imageres.dll,-105"
- [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules\Shell\Item1\command]
- @="mshta vbscript:createobject("shell.application").shellexecute("netsh.exe","advfirewall firewall add rule name = ""%1"" dir = in program = ""%1"" action = block","","runas",0)(close)"
- [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules\Shell\Item2]
- "MUIVerb"="为此程序删除禁止入站规则"
- "Icon"="imageres.dll,-106"
- [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules\Shell\Item2\command]
- @="mshta vbscript:createobject("shell.application").shellexecute("netsh.exe","advfirewall firewall delete rule name = ""%1"" dir = in program = ""%1""","","runas",0)(close)"
- [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules\Shell\Item3]
- "MUIVerb"="为此程序添加禁止出站规则"
- "Icon"="imageres.dll,-105"
- "CommandFlags"=dword:00000020
- [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules\Shell\Item3\command]
- @="mshta vbscript:createobject("shell.application").shellexecute("netsh.exe","advfirewall firewall add rule name = ""%1"" dir = out program = ""%1"" action = block","","runas",0)(close)"
- [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules\Shell\Item4]
- "MUIVerb"="为此程序删除禁止出站规则"
- "Icon"="imageres.dll,-106"
- [HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules\Shell\Item4\command]
- @="mshta vbscript:createobject("shell.application").shellexecute("netsh.exe","advfirewall firewall delete rule name = ""%1"" dir = out program = ""%1""","","runas",0)(close)"
复制代码
#右键 删除 为.exe程序 添加/删除防火墙规则
- Windows Registry Editor Version 5.00
- #右键 删除 为.exe程序 添加/删除防火墙规则
- [-HKEY_CLASSES_ROOT\SystemFileAssociations\.exe\shell\FirewallRules]
复制代码
|
|