
CODE: [Copy to clipboard]上面只是批处理的代码,要用的朋友请下载才能用。@echo off
:: code by qasa copyright@qknet 22:24 2008-4-4
title 屏蔽端口工具 作者:qasa
mode con cols=35 lines=6&color c
sc config PolicyAgent start= DEMAND >nul 2>nul
sc start IPSEC Services >nul 2>nul
gpupdate >nul 2>nul
set ab=0
for /f "delims=" %%i in (port.ini) do (
ipseccmd -w REG -p "HFUT_SECU" -o -x >nul 2>nul
ipseccmd -w REG -p "HFUT_SECU" -x >nul 2>nul
ipseccmd -w REG -p "HFUT_SECU" -r "Block TCP/%%i" -f *+0:%%i:TCP -n BLOCK -x >nul 2>nul
ipseccmd -w REG -p "HFUT_SECU" -r "Block UDP/%%i" -f *+0:%%i:UDP -n BLOCK -x >nul 2>nul
cls&echo 请稍候,正在屏蔽 %%i 端口。
set/a ab+=1
)
echo.&echo 已经屏蔽 %ab% 个端口。
ping/n 5 127.1>nul
| Quote: | |
|
CODE: [Copy to clipboard]53
445
139
135
9996
9995
9989
9872
8888
8102
808
8011
79
7789
7626
7511
7308
7307
7306
7301
7300
707
7000
6969
6939
6877
6771
6671
6670
6667
666
660
65000
6400
6267
61466
61440
6129
6050
5742
5569
5554
555
54784
5402
5401
5400
5321
53001
520
50766
50505
5001
5000
4950
4899
48784
4590
45576
44544
4444
44032
43958
4092
4060
40426
40423
40422
40421
40412
3996
3700
36864
34324
31666
31339
31338
31337
30999
30303
30129
30100
29184
28672
2801
27374
27312
2583
24656
24576
23456
23445
23444
23
22528
22222
21554
2140
2115
20850
2023
20168
20034
2001
20000
2000
1999
19968
1981
19191
1807
16969
1600
1492
1245
1243
12346
1234
121
1209
12076
1170
113
11223
11000
1092
1080
1068
1033
1029
1025
10240
1011
1011
25
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |