/
tertdo.bat
124 lines (110 loc) · 3.25 KB
/
tertdo.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
@echo off
cd /d "%~dp0"
cacls.exe "%SystemDrive%\System Volume Information" >nul 2>nul
if %errorlevel%==0 goto Admin
if exist "%temp%\getadmin.vbs" del /f /q "%temp%\getadmin.vbs"
echo Set RequestUAC = CreateObject^("Shell.Application"^)>"%temp%\getadmin.vbs"
echo RequestUAC.ShellExecute "%~s0","","","runas",1 >>"%temp%\getadmin.vbs"
echo WScript.Quit >>"%temp%\getadmin.vbs"
"%temp%\getadmin.vbs" /f
if exist "%temp%\getadmin.vbs" del /f /q "%temp%\getadmin.vbs"
exit
:Admin
:begin
Echo. 请选择需要的操作
Echo 1 netsh int ipv6 show teredo
Echo 2 自动选择并设置teredo服务器
Echo 3 手动选择并设置teredo服务器
Echo 4 exit
Set /P Choice= 请选择要进行的操作数字 ,然后按回车:
If not "%Choice%"=="" (
If "%Choice%"=="4" goto exit
If "%Choice%"=="1" goto one
If "%Choice%"=="2" goto two
If "%Choice%"=="3" goto :begin2
)
:one
netsh int ipv6 show teredo
goto begin
:two
"%~dp0code"\default\python27\1.0\python.exe "%~dp0teredo.py"
goto begin
:begin2
Echo. 请选择需要的操作
echo 1 teredo.remlab.net
echo 2 teredo2.remlab.net
echo 3 teredo-debian.remlab.net
echo 4 teredo.ngix.ne.kr
echo 5 teredo.trex.fi
echo 6 teredo.autotrans.consulintel.com
echo 7 teredo.managemydedi.com
echo 8 teredo.ipv6.microsoft.com
echo 9 win10.ipv6.microsoft.com
echo 10 teredo.iks-jena.de',
echo 11 win1710.ipv6.microsoft.com
echo 12 debian-miredo.progsoc.org
echo 13 teredo.ginzado.ne.jp
echo 14 teredo.iks-jena.de
echo 0 返回
Set /P Choice= 请选择要进行的操作数字 ,然后按回车:
If not "%Choice%"=="" (
If "%Choice%"=="0" goto begin
If "%Choice%"=="14" goto two14
If "%Choice%"=="13" goto two13
If "%Choice%"=="12" goto two12
If "%Choice%"=="11" goto two11
If "%Choice%"=="10" goto two10
If "%Choice%"=="9" goto two9
If "%Choice%"=="8" goto two8
If "%Choice%"=="7" goto two7
If "%Choice%"=="6" goto two6
If "%Choice%"=="5" goto two5
If "%Choice%"=="4" goto two4
If "%Choice%"=="3" goto two3
If "%Choice%"=="2" goto two2
If "%Choice%"=="1" goto two1
)
:two1
netsh interface teredo set state server=teredo.remlab.net
goto begin
:two2
netsh interface teredo set state server=teredo2.remlab.net
goto begin
:two3
netsh interface teredo set state server=teredo-debian.remlab.net
goto begin
:two4
netsh interface teredo set state server=teredo.ngix.ne.kr
goto begin
:two5
netsh interface teredo set state server=teredo.trex.fi
goto begin
:two6
netsh interface teredo set state server=teredo.autotrans.consulintel.com
goto begin
:two7
netsh interface teredo set state server=teredo.managemydedi.com
goto begin
:two8
netsh interface teredo set state server=teredo.ipv6.microsoft.com
goto begin
:two9
netsh interface teredo set state server=win10.ipv6.microsoft.com
goto begin
:two10
netsh interface teredo set state server=teredo.iks-jena.degoto begin
goto begin
:two11
netsh interface teredo set state server=win1710.ipv6.microsoft.com
goto begin
:two12
netsh interface teredo set state server=debian-miredo.progsoc.org
goto begin
:two13
netsh interface teredo set state server=teredo.ginzado.ne.jp
goto begin
:two14
netsh interface teredo set state server=teredo.iks-jena.de
goto begin
:exit
exit