1
1
@ echo off
2
+ cls
2
3
@ echo .
3
4
@ echo .
4
5
@ echo ::::::::::::::::::::::::::::::::::::::::::::
6
+ color 2
5
7
@ echo :: [*] 1. Verificar discos
8
+ timeout 1 > null
6
9
@ 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
8
15
@ echo :: [*] 4. Sair do terminal
9
16
@ 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 .
13
22
set /p escolha = escolha uma opcao:
14
23
if %escolha% equ 1 goto escolha1
15
24
if %escolha% equ 2 goto escolha2
@@ -71,13 +80,45 @@ timeout 2 >null
71
80
dism /Online /Cleanup-Image /CheckHealth
72
81
cls
73
82
@ 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
74
112
@ echo [*] Processo Finalizado...
75
113
timeout 3 > null
76
114
@ echo .
77
-
115
+ cls
116
+ @ echo .
117
+ @ echo .
78
118
@ echo [!] caso queria fazer uma verificacao mais completa existe o comando chkdsk /r.
119
+ @ echo .
79
120
@ echo [!] Porem nesse comando seu computador precisara ser reiniciado e isso levara tempo.
80
-
121
+ @ echo .
81
122
@ echo ::::::::::::::::::::::::::::::::::::::::::::--
82
123
@ echo :: [!] AVISO o processo levara um tempo, dependendo da maquina.
83
124
@ echo ::::::::::::::::::::::::::::::::::::::::::::--
@@ -104,8 +145,8 @@ chkdsk /r
104
145
@ echo :: [!] Por padrao, o seu computador não irar ser reiniciado depois do comando, porem e recomendavel.
105
146
@ echo ::::::::::::::::::::::::::::::::::::::::::::
106
147
107
-
108
- : escolhaB
148
+ : escolhaB
149
+ cls
109
150
@ echo .
110
151
@ echo [*] Saindo Do Terminal...
111
152
timeout 3 > null
122
163
@ echo github: https://github.com/suchsoak
123
164
@ echo -----------------------------------
124
165
@ 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
125
254
color 4
126
255
timeout 4 > null
127
256
@ echo [!] Informacoes De Rede:
@@ -136,7 +265,7 @@ netsh wlan show interfaces | findstr "Canal"
136
265
netsh wlan show interfaces | findstr " Descrição"
137
266
netsh wlan show interfaces | findstr " BSSID"
138
267
netsh interface ipv4 show addresses " Wi-Fi" | findstr " Endereço IP"
139
-
268
+ timeout 3 > null
140
269
@ echo ::::::::::::::::::::::::::::::::::::::::::::
141
270
@ echo :: [!] Resetadores de rede
142
271
@ echo ::::::::::::::::::::::::::::::::::::::::::::
183
312
:escolha3
184
313
185
314
@ echo off
315
+ cls
186
316
color 4
187
317
@ echo .
188
318
@ echo .
@@ -207,26 +337,14 @@ timeout /t 2 > null
207
337
@ echo .
208
338
@ echo IP:
209
339
@ 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"
230
348
@ echo .
231
349
@ echo [!] Informacoes Adicionais:
232
350
@ echo .
@@ -277,7 +395,6 @@ timeout /t 5 > null
277
395
@ echo .
278
396
color 2
279
397
timeout /t 2 > null
280
- wmic baseboard get Manufacturer
281
398
wmic BIOS get name
282
399
wmic bios get ReleaseDate
283
400
wmic baseboard get product
@@ -324,21 +441,14 @@ timeout /t 2 > null
324
441
@ echo . >> informacoes.txt
325
442
@ echo IP: >> informacoes.txt
326
443
@ 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
342
452
@ echo -------------------- >> informacoes.txt
343
453
@ echo . >> informacoes.txt
344
454
@ echo [!] Informacoes Adicionais: >> informacoes.txt
@@ -418,6 +528,5 @@ set /p sair=
418
528
if " %input% " == " " (
419
529
exit
420
530
)
421
-
422
531
:escolha4
423
532
exit
0 commit comments