国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > BAT > 正文

通過批處理關(guān)閉135 137 445等端口的實現(xiàn)代碼(勒索病毒)

2020-06-09 14:03:26
字體:
供稿:網(wǎng)友

主要是通過bat操作防火墻添加規(guī)則,一般是tcp與udp。

日前,全球近百個國家和地區(qū)都有電腦系統(tǒng)遭受一個名為WannaCry的病毒攻擊,被攻擊者被要求支付比特幣才能解鎖。12日,安全軟件制造商Avast表示,它已經(jīng)在99個國家觀察到超過57000個感染例子。

13日,中國國家互聯(lián)網(wǎng)應(yīng)急中心發(fā)文稱,互聯(lián)網(wǎng)上出現(xiàn)針對Windows操作系統(tǒng)的勒索軟件的攻擊案例,勒索軟件利用此前披露的Windows SMB服務(wù)漏洞(對應(yīng)微軟漏洞公告:MS17-010)攻擊手段,向終端用戶進行滲透傳播,并向用戶勒索比特幣或其他價值物。

從5月12日晚間起,中國多個高校的師生陸續(xù)發(fā)現(xiàn)自己電腦中的文件和程序無法打開,而是彈出對話框要求支付比特幣等贖金后才能恢復(fù)。

方法

請將以下代碼存為 關(guān)閉端口.bat ,以管理員身份運行就可以了,運行前記得打開防火墻雙擊使用。

%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit@echo off color 1ftitle 關(guān)閉135 137 138 139 445 端口echo. echo. echo. echo 正在關(guān)閉135端口 請稍候… netsh advfirewall firewall add rule name = "Disable port 135 - TCP" dir = in action = block protocol = TCP localport = 135echo. netsh advfirewall firewall add rule name = "Disable port 135 - UDP" dir = in action = block protocol = UDP localport = 135echo. echo 正在關(guān)閉137端口 請稍候… netsh advfirewall firewall add rule name = "Disable port 137 - TCP" dir = in action = block protocol = TCP localport = 137echo. netsh advfirewall firewall add rule name = "Disable port 137 - UDP" dir = in action = block protocol = UDP localport = 137echo. echo 正在關(guān)閉138端口 請稍候… netsh advfirewall firewall add rule name = "Disable port 138 - TCP" dir = in action = block protocol = TCP localport = 138echo. netsh advfirewall firewall add rule name = "Disable port 138 - UDP" dir = in action = block protocol = UDP localport = 138echo. echo 正在關(guān)閉139端口 請稍候… netsh advfirewall firewall add rule name = "Disable port 139 - TCP" dir = in action = block protocol = TCP localport = 139echo. netsh advfirewall firewall add rule name = "Disable port 139 - UDP" dir = in action = block protocol = UDP localport = 139echo. echo 正在關(guān)閉445端口 請稍候… netsh advfirewall firewall add rule name = "Disable port 445 - TCP" dir = in action = block protocol = TCP localport = 445echo. netsh advfirewall firewall add rule name = "Disable port 445 - UDP" dir = in action = block protocol = UDP localport = 445echo.echo 按任意鍵退出 pause>nul

注意事項

關(guān)閉端口只是降低電腦中毒的幾率,如果要完全防止病毒入侵,還是要安裝系統(tǒng)補丁,修復(fù)系統(tǒng)漏洞
防止該病毒入侵電腦方法:1.關(guān)閉445等端口,關(guān)閉網(wǎng)絡(luò)共享;2.安裝系統(tǒng)補丁或系統(tǒng)進行更新,修復(fù)系統(tǒng)漏洞。

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 平遥县| 应城市| 左贡县| 会同县| 琼结县| 安福县| 大洼县| 丰城市| 沙坪坝区| 浪卡子县| 福安市| 舟曲县| 固镇县| 邳州市| 泾源县| 泰顺县| 山西省| 丹棱县| 台南县| 大埔县| 曲松县| 东安县| 嘉禾县| 广宁县| 永清县| 房产| 汉源县| 长治市| 右玉县| 惠水县| 瑞金市| 黔南| 永川市| 新和县| 黑水县| 抚顺市| 张家口市| 大冶市| 禹城市| 长武县| 于都县|