11@ echo off
2+ cls
23@ echo .
34@ echo .
45@ echo ::::::::::::::::::::::::::::::::::::::::::::
6+ color 2
57@ echo :: [*] 1. Verificar discos
8+ timeout 1 > null
69@ echo :: [*] 2. Resetadores Netsh
7- @ echo :: [*] 3. Systeminfo
10+ color 1
11+ timeout 1 > null
12+ @ echo :: [*] 3. Systeminfo
13+ color 7
14+ timeout 1 > null
815@ echo :: [*] 4. Sair do terminal
916@ echo ::::::::::::::::::::::::::::::::::::::::::::
10- @ echo :: [*] Github:github.com/suchsoak
11- @ echo :: [*] V.1.0.0
12- @ echo :: [*] BY: ~#M?x
17+ @ echo :: [!] Github:github.com/suchsoak
18+ @ echo :: [!] V.1.0.1
19+ @ echo :: [!] BY: ~#M?x
20+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
21+ @ echo .
1322set /p escolha = escolha uma opcao:
1423if %escolha% equ 1 goto escolha1
1524if %escolha% equ 2 goto escolha2
@@ -71,13 +80,45 @@ timeout 2 >null
7180dism /Online /Cleanup-Image /CheckHealth
7281cls
7382@ echo .
83+ @ echo -------------------------
84+ @ echo [*] chkdsk
85+ @ echo -------------------------
86+ timeout 2 > null
87+ chkdsk
88+ cls
89+ @ echo .
90+ @ echo -------------------------
91+ @ echo [*] Apagando Arquivos Temporarios
92+ @ echo -------------------------
93+ timeout 2 > null
94+ cd %temp%
95+ del *
96+ cls
97+ @ echo .
98+ @ echo -------------------------
99+ @ echo [*] Identificando Disco
100+ @ echo -------------------------
101+ @ echo .
102+
103+ wmic diskdrive get mediatype | findstr /c:" Fix hard disk media" > null
104+
105+ if %errorlevel% == 0 (
106+ @ echo [*] Recomendo desfragmentar o HD
107+ ) else (
108+ @ echo [*] SSD nao recomendo desfragmentar
109+ )
110+
111+ timeout 3 > null
74112@ echo [*] Processo Finalizado...
75113timeout 3 > null
76114@ echo .
77-
115+ cls
116+ @ echo .
117+ @ echo .
78118@ echo [!] caso queria fazer uma verificacao mais completa existe o comando chkdsk /r.
119+ @ echo .
79120@ echo [!] Porem nesse comando seu computador precisara ser reiniciado e isso levara tempo.
80-
121+ @ echo .
81122@ echo ::::::::::::::::::::::::::::::::::::::::::::--
82123@ echo :: [!] AVISO o processo levara um tempo, dependendo da maquina.
83124@ echo ::::::::::::::::::::::::::::::::::::::::::::--
@@ -104,8 +145,8 @@ chkdsk /r
104145@ echo :: [!] Por padrao, o seu computador não irar ser reiniciado depois do comando, porem e recomendavel.
105146@ echo ::::::::::::::::::::::::::::::::::::::::::::
106147
107-
108- : escolhaB
148+ : escolhaB
149+ cls
109150@ echo .
110151@ echo [*] Saindo Do Terminal...
111152timeout 3 > null
122163@ echo github: https://github.com/suchsoak
123164@ echo -----------------------------------
124165@ echo .
166+ @ echo .
167+
168+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
169+ @ echo :: [*] S. Colocar Regras De Firewall
170+ @ echo :: [*] N. Nao Colocar Regras De Firewall
171+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
172+
173+
174+ set /p escolha = escolha uma opcao:
175+
176+ if %escolha% == S goto escolhaS
177+ if %escolha% == N goto escolhaN
178+
179+ :escolhaS
180+
181+ cls
182+ color 1
183+ @ echo .
184+ @ echo Regras De Firewall
185+ @ echo .
186+ timeout 2 > null
187+ netsh advfirewall firewall add rule name=" Block 22" dir=in action=block protocol=TCP localport=22
188+ @ echo .
189+ timeout 2 > null
190+ netsh advfirewall firewall add rule name=" Block 23" dir=in action=block protocol=TCP localport=23
191+ @ echo .
192+ timeout 2 > null
193+ @ echo
194+ netsh advfirewall firewall add rule name=" Block 80" dir=in action=block protocol=TCP localport=80
195+ timeout 2 > null
196+ @ echo [!] Informacoes De Rede:
197+ color 7
198+ @ echo .
199+ netsh wlan show profiles name=" Interface" key=clear | findstr " Nome SSID"
200+ netsh wlan show profiles name=" Interface" key=clear | findstr " Chave"
201+ netsh wlan show interfaces | findstr " Perfil"
202+ netsh wlan show interfaces | findstr " Estado"
203+ netsh wlan show interfaces | findstr " Sinal"
204+ netsh wlan show interfaces | findstr " Canal"
205+ netsh wlan show interfaces | findstr " Descrição"
206+ netsh wlan show interfaces | findstr " BSSID"
207+ netsh interface ipv4 show addresses " Wi-Fi" | findstr " Endereço IP"
208+ timeout 3 > null
209+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
210+ @ echo :: [!] Resetadores de rede
211+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
212+ @ echo .
213+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
214+ @ echo :: [*] Configurando ipconfig...
215+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
216+ timeout /t 4 > null
217+ ipconfig /renew
218+ cls
219+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
220+ @ echo :: [!] Configuracao de ip concluida.
221+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
222+ timeout /t 3 > null
223+ @ echo .
224+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
225+ @ echo :: [!] Configurando Netsh...
226+ @ echo ::::::::::::::::::::::::::::::::::::::::::::
227+ timeout /t 6 > null
228+ @ echo .
229+
230+ netsh winsock reset all
231+ netsh int 6to4 reset all
232+ netsh int ipv4 reset all
233+ netsh int ipv6 reset all
234+ netsh int httpstunnel reset all
235+ netsh int isatap reset all
236+ netsh int portproxy reset all
237+ netsh int tcp reset all
238+ netsh int teredo reset all
239+ netsh int ip reset
240+ netsh interface reset all
241+
242+ cls
243+
244+ @ echo .
245+ @ echo -------------------------------------------------
246+ @ echo Netsh configurado, agora reinicie o computador.
247+ @ echo -------------------------------------------------
248+ @ echo .
249+ @ pause
250+ exit
251+
252+ :escolhaN
253+ cls
125254color 4
126255timeout 4 > null
127256@ echo [!] Informacoes De Rede:
@@ -136,7 +265,7 @@ netsh wlan show interfaces | findstr "Canal"
136265netsh wlan show interfaces | findstr " Descrição"
137266netsh wlan show interfaces | findstr " BSSID"
138267netsh interface ipv4 show addresses " Wi-Fi" | findstr " Endereço IP"
139-
268+ timeout 3 > null
140269@ echo ::::::::::::::::::::::::::::::::::::::::::::
141270@ echo :: [!] Resetadores de rede
142271@ echo ::::::::::::::::::::::::::::::::::::::::::::
183312:escolha3
184313
185314@ echo off
315+ cls
186316color 4
187317@ echo .
188318@ echo .
@@ -207,26 +337,14 @@ timeout /t 2 > null
207337@ echo .
208338@ echo IP:
209339@ echo .
210- curl -s ipinfo.io/ip
211- @ echo .
212- @ echo .
213- @ echo Cidade:
214-
215- @ echo .
216-
217- curl -s ipinfo.io/city
218-
219- @ echo .
220-
221- @ echo Codigo-Postal:
222- @ echo .
223- curl -s ipinfo.io/postal
224- @ echo .
225- @ echo Pais:
226- @ echo .
227- curl -s ipinfo.io/country
228- @ echo .
229- @ echo --------------------
340+ curl -s ipinfo.io | findstr " ip"
341+ curl -s ipinfo.io | findstr " country"
342+ curl -s ipinfo.io | findstr " region"
343+ curl -s ipinfo.io | findstr " postal"
344+ curl -s ipinfo.io | findstr " city"
345+ curl -s ipinfo.io | findstr " hostname"
346+ curl -s ipinfo.io | findstr " loc"
347+ curl -s ipinfo.io | findstr " org"
230348@ echo .
231349@ echo [!] Informacoes Adicionais:
232350@ echo .
@@ -277,7 +395,6 @@ timeout /t 5 > null
277395@ echo .
278396color 2
279397timeout /t 2 > null
280- wmic baseboard get Manufacturer
281398wmic BIOS get name
282399wmic bios get ReleaseDate
283400wmic baseboard get product
@@ -324,21 +441,14 @@ timeout /t 2 > null
324441@ echo . >> informacoes.txt
325442@ echo IP: >> informacoes.txt
326443@ echo . >> informacoes.txt
327- curl -s ipinfo.io/ip >> informacoes.txt
328- @ echo . >> informacoes.txt
329- @ echo . >> informacoes.txt
330- @ echo Cidade: >> informacoes.txt
331- @ echo . >> informacoes.txt
332- curl -s ipinfo.io/city >> informacoes.txt
333- @ echo . >> informacoes.txt
334- @ echo Codigo-Postal: >> informacoes.txt
335- @ echo . >> informacoes.txt
336- curl -s ipinfo.io/postal >> informacoes.txt
337- @ echo . >> informacoes.txt
338- @ echo Pais: >> informacoes.txt
339- @ echo . >> informacoes.txt
340- curl -s ipinfo.io/country >> informacoes.txt
341- @ echo . >> informacoes.txt
444+ curl ipinfo.io | findstr " ip" >> informacoes.txt
445+ curl ipinfo.io | findstr " country" >> informacoes.txt
446+ curl ipinfo.io | findstr " region" >> informacoes.txt
447+ curl ipinfo.io | findstr " postal" >> informacoes.txt
448+ curl ipinfo.io | findstr " city" >> informacoes.txt
449+ curl ipinfo.io | findstr " hostname" >> informacoes.txt
450+ curl ipinfo.io | findstr " loc" >> informacoes.txt
451+ curl ipinfo.io | findstr " org" >> informacoes.txt
342452@ echo -------------------- >> informacoes.txt
343453@ echo . >> informacoes.txt
344454@ echo [!] Informacoes Adicionais: >> informacoes.txt
@@ -418,6 +528,5 @@ set /p sair=
418528if " %input% " == " " (
419529 exit
420530)
421-
422531:escolha4
423532exit
0 commit comments