溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

如何實現(xiàn)一鍵關(guān)閉危險端口的批處理

發(fā)布時間:2021-10-14 15:18:30 來源:億速云 閱讀:178 作者:小新 欄目:開發(fā)技術(shù)

這篇文章給大家分享的是有關(guān)如何實現(xiàn)一鍵關(guān)閉危險端口的批處理的內(nèi)容。小編覺得挺實用的,因此分享給大家做個參考,一起跟隨小編過來看看吧。

一鍵關(guān)閉危險端口(防止黑客入侵)
危險, 端口, 黑客
講以下內(nèi)容全部復(fù)制
用記事本保存后綴為
bat
按提示進行 從下面@開始復(fù)制

代碼如下:

@echo off
color 1f
title 關(guān)閉常見的危險端口
echo.
echo.
echo 本批處理用于啟動XP系統(tǒng)的防火墻并關(guān)閉常見的危險端口
echo.
echo 請確認(rèn)您正在使用的是XP系統(tǒng) 并且未安裝其他防火墻
echo.
echo 以避免與XP系統(tǒng)的防火墻發(fā)生沖突
echo.
echo.
echo.
pause
cls
echo 正在啟動防火墻 請稍候…
sc config SharedAccess start= auto > nul
net start SharedAccess > nul
echo 防火墻已經(jīng)成功啟動
echo.
echo 正在關(guān)閉常見的危險端口 請稍候…
echo.
echo 正在關(guān)閉135端口 請稍候…
netsh firewall set portopening protocol = ALL port = 135 name = 135 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉137端口 請稍候…
netsh firewall set portopening protocol = ALL port = 137 name = 137 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉138端口 請稍候…
netsh firewall set portopening protocol = ALL port = 138 name = 138 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉139端口 請稍候…
netsh firewall set portopening protocol = ALL port = 139 name = 139 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉445端口 請稍候…
netsh firewall set portopening protocol = ALL port = 445 name = 445 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉593端口 請稍候…
netsh firewall set portopening protocol = TCP port = 593 name = 593 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉1025端口 請稍候…
netsh firewall set portopening protocol = TCP port = 1025 name = 1024 mode = DISABLE scope = ALL profile = ALL
echo 正在關(guān)閉3389端口 請稍候…
netsh firewall set portopening protocol = ALL port = 3389 name = 3389 mode = DISABLE scope = ALL profile = ALL
cls
echo.
echo.
echo.
echo 常見的危險端口已經(jīng)關(guān)閉
echo.
echo.
echo.
echo.
echo
echo.
echo.
echo.
echo 按任意鍵退出
pause>nul

感謝各位的閱讀!關(guān)于“如何實現(xiàn)一鍵關(guān)閉危險端口的批處理”這篇文章就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,讓大家可以學(xué)到更多知識,如果覺得文章不錯,可以把它分享出去讓更多的人看到吧!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI