-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlauncher.cmd
74 lines (74 loc) · 5.06 KB
/
launcher.cmd
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
:: Made by SirSAC for DisPro.
echo off
:: Clear Screen.
cls
:: Change Directory.
chdir /d %~dp0
:: Help.
dispro.exe -help
netsh.exe interface ipv6 show interfaces
echo Block malware and adult content
echo IPv6 2606:4700:4700::1113 and 2606:4700:4700::1003
echo IPv4 1.1.1.3 and 1.0.0.3
echo Block malware not adult content
echo IPv6 2606:4700:4700::1112 and 2606:4700:4700::1002
echo IPv4 1.1.1.2 and 1.0.0.2
echo Allow malware and adult content
echo IPv6 2606:4700:4700::1111 and 2606:4700:4700::1001
echo IPv4 1.1.1.1 and 1.0.0.1
echo:
dispro.exe -list
echo:
:: Setting.
set /p index_one="Index one>"
set /p index_two="Index two>"
set /p index_three="Index three>"
set /p index_four="Index four>"
set /p ipv6_one="IPv6 one>"
set /p ipv6_two="IPv6 two>"
set /p ipv4_one="IPv4 one>"
set /p ipv4_two="IPv4 two>"
set /p application_argument="Application argument>"
:: Task Kill.
taskkill.exe /im DisPro.exe /t /f
:: Start.
start "LAN" /d %cd% /min /realtime DisPro.exe %application_argument%
:: One.
netsh.exe interface ipv6 set interface %index_one% forwarding=disabled advertise=disabled metric=2 ignoredefaultroutes=disabled advertisedefaultroute=disabled store=active ecncapability=application
netsh.exe interface ipv6 set subinterface interface=%index_one% mtu=1500 store=active
netsh.exe interface ipv6 set dnsservers name=%index_one% source=static address=%ipv6_one% register=both validate=yes
netsh.exe interface ipv6 add dnsservers name=%index_one% address=%ipv6_two% index=2 validate=yes
netsh.exe interface ipv4 set interface %index_one% forwarding=disabled advertise=disabled metric=2 ignoredefaultroutes=disabled advertisedefaultroute=disabled store=active ecncapability=application
netsh.exe interface ipv4 set subinterface interface=%index_one% mtu=1500 store=active
netsh.exe interface ipv4 set dnsservers name=%index_one% source=static address=%ipv4_one% register=both validate=yes
netsh.exe interface ipv4 add dnsservers name=%index_one% address=%ipv4_two% index=2 validate=yes
:: Two.
netsh.exe interface ipv6 set interface %index_two% forwarding=disabled advertise=disabled metric=2 ignoredefaultroutes=disabled advertisedefaultroute=disabled store=active ecncapability=application
netsh.exe interface ipv6 set subinterface interface=%index_two% mtu=1500 store=active
netsh.exe interface ipv6 set dnsservers name=%index_two% source=static address=%ipv6_two% register=both validate=yes
netsh.exe interface ipv6 add dnsservers name=%index_two% address=%ipv6_one% index=2 validate=yes
netsh.exe interface ipv4 set interface %index_two% forwarding=disabled advertise=disabled metric=2 ignoredefaultroutes=disabled advertisedefaultroute=disabled store=active ecncapability=application
netsh.exe interface ipv4 set subinterface interface=%index_two% mtu=1500 store=active
netsh.exe interface ipv4 set dnsservers name=%index_two% source=static address=%ipv4_two% register=both validate=yes
netsh.exe interface ipv4 add dnsservers name=%index_two% address=%ipv4_one% index=2 validate=yes
:: Three.
netsh.exe interface ipv6 set interface %index_three% forwarding=disabled advertise=disabled metric=2 ignoredefaultroutes=disabled advertisedefaultroute=disabled store=active ecncapability=application
netsh.exe interface ipv6 set subinterface interface=%index_three% mtu=1500 store=active
netsh.exe interface ipv6 set dnsservers name=%index_three% source=static address=%ipv6_one% register=both validate=yes
netsh.exe interface ipv6 add dnsservers name=%index_three% address=%ipv6_two% index=2 validate=yes
netsh.exe interface ipv4 set interface %index_three% forwarding=disabled advertise=disabled metric=2 ignoredefaultroutes=disabled advertisedefaultroute=disabled store=active ecncapability=application
netsh.exe interface ipv4 set subinterface interface=%index_three% mtu=1500 store=active
netsh.exe interface ipv4 set dnsservers name=%index_three% source=static address=%ipv4_one% register=both validate=yes
netsh.exe interface ipv4 add dnsservers name=%index_three% address=%ipv4_two% index=2 validate=yes
:: Four.
netsh.exe interface ipv6 set interface %index_four% forwarding=disabled advertise=disabled metric=2 ignoredefaultroutes=disabled advertisedefaultroute=disabled store=active ecncapability=application
netsh.exe interface ipv6 set subinterface interface=%index_four% mtu=1500 store=active
netsh.exe interface ipv6 set dnsservers name=%index_four% source=static address=%ipv6_two% register=both validate=yes
netsh.exe interface ipv6 add dnsservers name=%index_four% address=%ipv6_one% index=2 validate=yes
netsh.exe interface ipv4 set interface %index_four% forwarding=disabled advertise=disabled metric=2 ignoredefaultroutes=disabled advertisedefaultroute=disabled store=active ecncapability=application
netsh.exe interface ipv4 set subinterface interface=%index_four% mtu=1500 store=active
netsh.exe interface ipv4 set dnsservers name=%index_four% source=static address=%ipv4_two% register=both validate=yes
netsh.exe interface ipv4 add dnsservers name=%index_four% address=%ipv4_one% index=2 validate=yes
:: IP Configuration.
ipconfig.exe /registerdns
ipconfig.exe /flushdns