1+ @ echo off
2+ cls
3+ @ echo .
4+ @ echo -----------------------------------
5+ @ echo github: https://github.com/suchsoak
6+ @ echo -----------------------------------
7+ @ echo .
8+ @ echo .
9+
10+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
11+ @ echo :: [*] S. Colocar Regras De Firewall
12+ @ echo :: [*] N. Nao Colocar Regras De Firewall
13+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
14+
15+
16+ set /p escolha = escolha uma opcao:
17+
18+ if %escolha% == S goto escolhaS
19+ if %escolha% == N goto escolhaN
20+
21+ :escolhaS
22+
23+ cls
24+ color 1
25+ @ echo .
26+ @ echo Regras De Firewall
27+ @ echo .
28+ @ echo off
29+ set /p porta = Coloque a porta:
30+ @ echo .
31+ @ echo Porta escolhida: %porta%
32+ timeout 1 > null
33+ netsh advfirewall firewall add rule name=" Block %porta% " dir=in action=block protocol=TCP localport=%porta%
34+ @ echo .
35+ timeout 3 > null
36+ @ echo [!] Informacoes De Rede:
37+ color 7
38+ @ echo .
39+ netsh wlan show profiles name=" Interface" key=clear | findstr " Nome SSID"
40+ netsh wlan show profiles name=" Interface" key=clear | findstr " Chave"
41+ netsh wlan show interfaces | findstr " Perfil"
42+ netsh wlan show interfaces | findstr " Estado"
43+ netsh wlan show interfaces | findstr " Sinal"
44+ netsh wlan show interfaces | findstr " Canal"
45+ netsh wlan show interfaces | findstr " Descrição"
46+ netsh wlan show interfaces | findstr " BSSID"
47+ netsh interface ipv4 show addresses " Wi-Fi" | findstr " Endereço IP"
48+ timeout 3 > null
49+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
50+ @ echo :: [!] Resetadores de rede
51+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
52+ @ echo .
53+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
54+ @ echo :: [*] Configurando ipconfig...
55+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
56+ timeout /t 2 > null
57+ ipconfig /renew
58+ timeout /t 2 > null
59+ cls
60+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
61+ @ echo :: [!] Configuracao de ip concluida.
62+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
63+ timeout /t 2 > null
64+ @ echo .
65+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
66+ @ echo :: [!] Configurando Netsh...
67+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
68+ timeout /t 1 > null
69+ @ echo .
70+
71+ netsh winsock reset all
72+ netsh int 6to4 reset all
73+ netsh int ipv4 reset all
74+ netsh int ipv6 reset all
75+ netsh int httpstunnel reset all
76+ netsh int isatap reset all
77+ netsh int portproxy reset all
78+ netsh int tcp reset all
79+ netsh int teredo reset all
80+ netsh int ip reset
81+ netsh interface reset all
82+ timeout /t 3 > null
83+ cls
84+
85+ @ echo .
86+ @ echo -------------------------------------------------
87+ @ echo Netsh configurado, agora reinicie o computador.
88+ @ echo -------------------------------------------------
89+ @ echo .
90+ @ pause
91+ exit
92+
93+ :escolhaN
94+ cls
95+ color 4
96+ timeout 2 > null
97+ @ echo [!] Informacoes De Rede:
98+ color 7
99+ @ echo .
100+ netsh wlan show profiles name=" Interface" key=clear | findstr " Nome SSID"
101+ netsh wlan show profiles name=" Interface" key=clear | findstr " Chave"
102+ netsh wlan show interfaces | findstr " Perfil"
103+ netsh wlan show interfaces | findstr " Estado"
104+ netsh wlan show interfaces | findstr " Sinal"
105+ netsh wlan show interfaces | findstr " Canal"
106+ netsh wlan show interfaces | findstr " Descrição"
107+ netsh wlan show interfaces | findstr " BSSID"
108+ netsh interface ipv4 show addresses " Wi-Fi" | findstr " Endereço IP"
109+ timeout 3 > null
110+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
111+ @ echo :: [!] Resetadores de rede
112+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
113+ @ echo .
114+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
115+ @ echo :: [*] Configurando ipconfig...
116+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
117+ timeout /t 2 > null
118+ ipconfig /renew
119+ cls
120+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
121+ @ echo :: [!] Configuracao de ip concluida.
122+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
123+ timeout /t 3 > null
124+ @ echo .
125+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
126+ @ echo :: [!] Configurando Netsh...
127+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
128+ timeout /t 2 > null
129+ @ echo .
130+
131+ netsh winsock reset all
132+ netsh int 6to4 reset all
133+ netsh int ipv4 reset all
134+ netsh int ipv6 reset all
135+ netsh int httpstunnel reset all
136+ netsh int isatap reset all
137+ netsh int portproxy reset all
138+ netsh int tcp reset all
139+ netsh int teredo reset all
140+ netsh int ip reset
141+ netsh interface reset all
142+ timeout /t 3 > null
143+ cls
144+
145+ @ echo .
146+ @ echo -------------------------------------------------
147+ @ echo Netsh configurado, agora reinicie o computador.
148+ @ echo -------------------------------------------------
149+ @ echo .
150+ @ pause
151+ exit
0 commit comments