最近發(fā)現(xiàn)公司員工都是使用的是360、金山、nod32等殺毒軟件,只是運(yùn)行在電腦上,沒有詳細(xì)的調(diào)試,我這樣做除了能解決一下明顯的病毒外,其他的加殼的病毒基本防御不了,所以我就簡(jiǎn)單的弄了個(gè)腳本,參照網(wǎng)絡(luò)的一下腳本知識(shí),弄了個(gè)關(guān)閉不安全端口,希望多大家有用!
@echo off
title 關(guān)閉常見的危險(xiǎn)端口
echo.
echo 本批處理用于啟動(dòng)XP系統(tǒng)的防火墻并關(guān)閉常見的危險(xiǎn)端口
echo.
echo 請(qǐng)確認(rèn)您正在使用的是XP系統(tǒng) 并且未安裝其他防火墻
echo.
echo 以避免與XP系統(tǒng)的防火墻發(fā)生沖突
echo.
pause
echo 正在啟動(dòng)防火墻 請(qǐng)稍候…
netsh firewall set opmode mode=enable
echo 防火墻已經(jīng)成功啟動(dòng)
echo.
echo 正在關(guān)閉常見的危險(xiǎn)端口 請(qǐng)稍候…
echo.
echo 正在關(guān)閉135端口 請(qǐng)稍候…
netsh firewall set portopening protocol = ALL port = 135 name = 135 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉137端口 請(qǐng)稍候…
netsh firewall set portopening protocol = ALL port = 137 name = 137 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉138端口 請(qǐng)稍候…
netsh firewall set portopening protocol = ALL port = 138 name = 138 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉139端口 請(qǐng)稍候…
netsh firewall set portopening protocol = ALL port = 139 name = 139 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉161端口 請(qǐng)稍候…
netsh firewall set portopening protocol = ALL port = 161 name = 161 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉445端口 請(qǐng)稍候…
netsh firewall set portopening protocol = ALL port = 445 name = 445 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉593端口 請(qǐng)稍候…
netsh firewall set portopening protocol = TCP port = 593 name = 593 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉1025端口 請(qǐng)稍候…
netsh firewall set portopening protocol = TCP port = 1025 name = 1024 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉2745端口 請(qǐng)稍候…
netsh firewall set portopening protocol = TCP port = 2745 name = 2745 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉3127端口 請(qǐng)稍候…
netsh firewall set portopening protocol = TCP port = 3127 name = 3127 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉3389端口 請(qǐng)稍候…
netsh firewall set portopening protocol = ALL port = 3389 name = 3389 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉6129端口 請(qǐng)稍候…
netsh firewall set portopening protocol = TCP port = 6129 name = 6129 mode = DISABLE scope = ALL profile = ALL
cls
echo.
echo 常見的危險(xiǎn)端口已經(jīng)關(guān)閉
echo.
echo By: Alan.deng
echo.
echo 按任意鍵退出
pause>nul
億恩科技地址(ADD):鄭州市黃河路129號(hào)天一大廈608室 郵編(ZIP):450008 傳真(FAX):0371-60123888
聯(lián)系:億恩小凡
QQ:89317007
電話:0371-63322206
本文出自:億恩科技【mszdt.com】
服務(wù)器租用/服務(wù)器托管中國(guó)五強(qiáng)!虛擬主機(jī)域名注冊(cè)頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]
|