关闭不安全端口的脚步
最近發現公司員工都是使用的是360、金山、nod32等殺毒軟件,只是運行在電腦上,沒有詳細的調試,我這樣做除了能解決一下明顯的病毒外,其他的加殼的病毒基本防御不了,所以我就簡單的弄了個腳本,參照網絡的一下腳本知識,弄了個關閉不安全端口,希望多大家有用!
??? @echo off
??? title 關閉常見的危險端口
??? echo.
??? echo 本批處理用于啟動XP系統的防火墻并關閉常見的危險端口
??? echo.
??? echo 請確認您正在使用的是XP系統 并且未安裝其他防火墻
??? echo.
??? echo 以避免與XP系統的防火墻發生沖突
??? echo.
???? pause
??? echo 正在啟動防火墻 請稍候…
??? netsh firewall set opmode mode=enable
??? echo 防火墻已經成功啟動
??? echo.
??? echo 正在關閉常見的危險端口 請稍候…
??? echo.
??? echo 正在關閉135端口 請稍候…
??? netsh firewall set portopening protocol = ALL port = 135 name = 135 mode = DISABLE scope = ALL profile = ALL
??? echo 正在關閉137端口 請稍候…
??? netsh firewall set portopening protocol = ALL port = 137 name = 137 mode = DISABLE scope = ALL profile = ALL
??? echo 正在關閉138端口 請稍候…
??? netsh firewall set portopening protocol = ALL port = 138 name = 138 mode = DISABLE scope = ALL profile = ALL
??
??? echo 正在關閉139端口 請稍候…
??? netsh firewall set portopening protocol = ALL port = 139 name = 139 mode = DISABLE scope = ALL profile = ALL
??? echo 正在關閉161端口 請稍候…
??? netsh firewall set portopening protocol = ALL port = 161 name = 161 mode = DISABLE scope = ALL profile = ALL
??? echo 正在關閉445端口 請稍候…
??? netsh firewall set portopening protocol = ALL port = 445 name = 445 mode = DISABLE scope = ALL profile = ALL
??? echo 正在關閉593端口 請稍候…
??? netsh firewall set portopening protocol = TCP port = 593 name = 593 mode = DISABLE scope = ALL profile = ALL
??? echo 正在關閉1025端口 請稍候…
??? netsh firewall set portopening protocol = TCP port = 1025 name = 1024 mode = DISABLE scope = ALL profile = ALL
??? echo 正在關閉2745端口 請稍候…
??? netsh firewall set portopening protocol = TCP port = 2745 name = 2745 mode = DISABLE scope = ALL profile = ALL
??? echo 正在關閉3127端口 請稍候…
??? netsh firewall set portopening protocol = TCP port = 3127 name = 3127 mode = DISABLE scope = ALL profile = ALL
?
??? echo 正在關閉3389端口 請稍候…
??? netsh firewall set portopening protocol = ALL port = 3389 name = 3389 mode = DISABLE scope = ALL profile = ALL
??
??? echo 正在關閉6129端口 請稍候…
??? netsh firewall set portopening protocol = TCP port = 6129 name = 6129 mode = DISABLE scope = ALL profile = ALL
??? cls
??? echo.
????echo????????? 常見的危險端口已經關閉
????echo.
????echo??????????????????????????????? By: Alan.deng
??? echo.
????echo 按任意鍵退出
??? pause>nul
總結
以上是生活随笔為你收集整理的关闭不安全端口的脚步的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 神经紊乱去医院应该挂什么科室呢?
- 下一篇: Zimbra的Web客户端国际字体的控制