-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ping Denyer.cmd
170 lines (163 loc) · 4.65 KB
/
Ping Denyer.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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
@echo off
chcp 65001
set "co=color 0b"
set "ver=v1"
set "by=craciu25_YT"
set "masapps=https://sites.google.com/view/teamdevelopers"
set "github=https://github.com/AuchenDevs"
set "githubc=https://github.com/craciu25yt"
set "ultac=1/1/22"
set "stable=No info"
IF %ERRORLEVEL% EQU 0 ( SET USERSTATUS=Administrator) else (
echo WARINING! WARINING! WARINING! WARINING! WARINING! WARINING! WARINING! WARINING!
echo.
echo Tienes que ejecutar este programa como administrador!
echo.
echo WARINING! WARINING! WARINING! WARINING! WARINING! WARINING! WARINING! WARINING!
timeout 4 >null
exit
)
:menu
cls
title Ping Denyer - by craciu25_YT
color 0b
echo ______________________________________________________________________________
echo )
echo [ Ping Denyer - by craciu25_YT ] )
echo )
echo [ Elija Una Opcion ] )
echo )
echo [1]. Activar proteccion (Requiere admin).. )
echo )
echo [2]. Descativar proteccion (Requiere admin).. )
echo. )
echo [3]. Activar firewall (Requerido para usar Ping Denyer - Requiere admin) )
echo. )
echo [4]. Desactivar firewall (Requiere admin) .. )
echo. )
echo [5]. App Info .. )
echo. )
echo [6]. Salir .. )
echo ______________________________________________________________________________)
set /p opc=Opcion:
if %opc%== 1 (goto ap)
if %opc%== 2 (goto dp)
if %opc%== 3 (goto af)
if %opc%== 4 (goto df)
if %opc%== 5 (goto info)
if %opc%== 6 (exit)
:ap
cls
color 5
echo Activando para IPv4...
timeout /NOBREAK /T 2 >null
cls
netsh advFirewall Firewall add rule name="Ping Denyer IPv4" protocol=icmpv4:8,any dir=in action=block
cls
color a
echo ACTIVADO CORRECTAMENTE!
timeout /NOBREAK /T 2 >null
cls
color 5
echo Activando para IPv6...
timeout /NOBREAK /T 2 >null
cls
netsh advFirewall Firewall add rule name="Ping Denyer IPv6" protocol=icmpv6:8,any dir=in action=block
cls
color a
echo Finalizado! Pulsa enter para volver al menu.
PAUSE >null
goto menu
:dp
cls
color 5
echo Desactivando para IPv4...
timeout /NOBREAK /T 1 >null
cls
netsh advFirewall Firewall delete rule name="Ping Denyer IPv4"
cls
color a
echo DESACTIVADO CORRECTAMENTE!
timeout /NOBREAK /T 1 >null
cls
color 5
echo Desactivando para IPv6...
timeout /NOBREAK /T 1 >null
cls
netsh advFirewall Firewall delete rule name="Ping Denyer IPv6"
cls
color a
echo Finalizado! Pulsa enter para volver al menu.
PAUSE >null
goto menu
:af
cls
echo Activando firewall.
timeout /NOBREAK /T 1 >null
cls
sc config MpsSvc start= auto
cls
echo Activando firewall..
timeout /NOBREAK /T 1 >null
cls
net start MpsSvc
cls
echo Activando firewall...
timeout /NOBREAK /T 1 >null
cls
netsh advfirewall set allprofiles state on
cls
echo Activando firewall.
timeout /NOBREAK /T 1 >null
echo Finalizado!
PAUSE
goto menu
:df
cls
echo Desactivando firewall.
timeout /NOBREAK /T 1 >null
cls
sc config MpsSvc start= disabled
cls
echo Desactivandoo firewall..
timeout /NOBREAK /T 1 >null
cls
net stop MpsSvc
cls
echo Desactivando firewall...
timeout /NOBREAK /T 1 >null
cls
netsh advfirewall set allprofiles state off
cls
echo Desactivando firewall.
timeout /NOBREAK /T 1 >null
echo Finalizado!
PAUSE
goto menu
:info
cls
echo __________________________________
echo.
echo APPInfo
echo.
echo.
echo Version: %ver%
echo.
echo By %by%
echo.
echo Mas apps en:
echo %masapps%
echo.
echo Github AuchenDevs: %github%
echo.
echo Github craciu: %githubc%
echo.
echo Dia que se finalizo la %ver%:
echo %ultac%
echo.
echo Ver. estable: %stable%
echo __________________________________
echo.
echo.
echo Pulsa enter para volver al menu
pause >null