avg internet secutiry點SET去BLOCK PORT?

提示: 作者被禁止或刪除 內容自動屏蔽

如題,見:


完全唔識用AVG去BLOCK...
靜止 發表於 13-5-2017 23:53


可以設置
2017-05-15_163500.jpg
2017-05-15_163603.jpg

TOP

批處理
  1. %1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
  2. [url=home.php?mod=space&uid=331734]@echo[/url] off
  3. color 1f
  4. title 您正在使用一键屏蔽危险端口和服务 by et
  5. echo 您正在使用一键屏蔽危险端口和服务
  6. echo"正在帮您关闭这些危险端口,请稍等"
  7. echo “正在开启Windows防火墙服务”
  8. net start MpsSvc
  9. echo ”正在帮您开启Windows防火墙自启动“
  10. sc config MpsSvc start= auto
  11. echo ”正在启用防火墙“
  12. netsh advfirewall set allprofiles state on
  13. echo"正在帮您屏蔽端口...."
  14. echo.
  15. echo.
  16. echo.
  17. echo 正在屏蔽135端口 请稍候…
  18. netsh advfirewall firewall delete rule name = "Disable port 135 - TCP"
  19. netsh advfirewall firewall add rule name = "Disable port 135 - TCP" dir = in action = block protocol = TCP localport = 135
  20. echo.
  21. netsh advfirewall firewall delete rule name = "Disable port 135 - UDP"
  22. netsh advfirewall firewall add rule name = "Disable port 135 - UDP" dir = in action = block protocol = UDP localport = 135
  23. echo.
  24. echo 正在屏蔽137端口 请稍候…
  25. netsh advfirewall firewall delete rule name = "Disable port 137 - TCP"
  26. netsh advfirewall firewall add rule name = "Disable port 137 - TCP" dir = in action = block protocol = TCP localport = 137
  27. echo.
  28. netsh advfirewall firewall add rule name = "Disable port 137 - UDP"
  29. netsh advfirewall firewall add rule name = "Disable port 137 - UDP" dir = in action = block protocol = UDP localport = 137
  30. echo.
  31. echo 正在屏蔽138端口 请稍候…
  32. netsh advfirewall firewall delete rule name = "Disable port 138 - TCP"
  33. netsh advfirewall firewall add rule name = "Disable port 138 - TCP" dir = in action = block protocol = TCP localport = 138
  34. echo.
  35. netsh advfirewall firewall delete rule name = "Disable port 138 - UDP"
  36. netsh advfirewall firewall add rule name = "Disable port 138 - UDP" dir = in action = block protocol = UDP localport = 138
  37. echo.
  38. echo 正在屏蔽139端口 请稍候…
  39. netsh advfirewall firewall delete rule name = "Disable port 139 - TCP"
  40. netsh advfirewall firewall add rule name = "Disable port 139 - TCP" dir = in action = block protocol = TCP localport = 139
  41. echo.
  42. netsh advfirewall firewall delete rule name = "Disable port 139 - UDP"
  43. netsh advfirewall firewall add rule name = "Disable port 139 - UDP" dir = in action = block protocol = UDP localport = 139
  44. echo.
  45. echo 正在关闭445端口 请稍候…
  46. netsh advfirewall firewall delete rule name = "Disable port 445 - TCP"
  47. netsh advfirewall firewall add rule name = "Disable port 445 - TCP" dir = in action = block protocol = TCP localport = 445
  48. echo.
  49. netsh advfirewall firewall delete rule name = "Disable port 445 - UDP"
  50. netsh advfirewall firewall add rule name = "Disable port 445 - UDP" dir = in action = block protocol = UDP localport = 445
  51. echo.

  52. echo "危险端口已经用Windows防火墙屏蔽成功"

  53. echo.
  54. echo ----------------
  55. echo “正在关闭Workstation(LanmanWorkstation)服务”
  56. sc stop LanmanWorkstation
  57. sc config LanmanWorkstation start= disabled

  58. echo.
  59. echo ----------------
  60. echo “正在关闭Server(LanmanServer)服务”
  61. sc stop LanmanServer
  62. sc config LanmanServer start= disabled

  63. echo.
  64. echo ----------------
  65. echo “正在关闭TCP/IP NetBIOS Helper(lmhosts)共享服务”
  66. sc stop lmhosts
  67. sc config lmhosts start= disabled

  68. echo.
  69. echo ----------------
  70. echo “正在关闭Distributed Transaction Coordinator(MSDTC)共享服务”
  71. sc stop MSDTC
  72. sc config MSDTC start= disabled

  73. echo.
  74. echo ----------------
  75. echo “正在关闭NetBT服务”
  76. sc stop NetBT
  77. sc config NetBT start= disabled

  78. echo.
  79. echo ----------------
  80. reg add "hklm\System\CurrentControlSet\Services\NetBT\Parameters" /v "SMBDeviceEnabled" /t reg_dword /d "0" /f
  81. reg add "hklm\SOFTWARE\Microsoft\Ole" /v "EnableDCOM" /t reg_sz /d "N" /f
  82. reg add "hklm\SOFTWARE\Microsoft\Rpc" /v "DCOM Protocols" /t reg_multi_sz /d "" /f

  83. echo.
  84. echo ----------------
  85. echo "恭喜您,危险端口已经关闭,请重新启动电脑后用netstat -an查看本地端口"

  86. echo 按任意键退出
  87. pause>nul
複製代碼

TOP

提示: 作者被禁止或刪除 內容自動屏蔽

TOP

提示: 作者被禁止或刪除 內容自動屏蔽

TOP