Skip to content

Commit 01b7563

Browse files
authored
Update bashscript.bat
1 parent 27161a3 commit 01b7563

File tree

1 file changed

+83
-43
lines changed

1 file changed

+83
-43
lines changed

bashscript.bat

Lines changed: 83 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,54 @@
11
@echo off
22
cls
33
@echo.
4-
@echo::::::::::::::::::::::::::::::::::::::::::::
4+
@echo:: [!] Github:github.com/suchsoak
5+
@echo:: [!] V.1.0.4
6+
@echo:: [!] BY: suchsoak
7+
@echo.
58
color 2
69
@echo:: [*] 1. Verificar discos
7-
timeout 1 >null
810
@echo:: [*] 2. Resetadores Netsh
911
color 1
10-
timeout 1 > null
1112
@echo:: [*] 3. Systeminfo
1213
color 7
1314
timeout 1 >null
1415
@echo:: [*] 4. Windows Update
15-
@echo:: [*] 5. Remover marca windows
16+
@echo:: [*] 5. Remover marca windows
1617
@echo:: [*] 6. Sair do terminal
17-
@echo::::::::::::::::::::::::::::::::::::::::::::
18-
@echo:: [!] Github:github.com/suchsoak
19-
@echo:: [!] V.1.0.3
20-
@echo:: [!] BY: suchsoak
21-
@echo::::::::::::::::::::::::::::::::::::::::::::
2218
@echo.
2319
set /p escolha= escolha uma opcao:
20+
@echo.
2421
if %escolha% equ 1 goto escolha1
2522
if %escolha% equ 2 goto escolha2
2623
if %escolha% equ 3 goto escolha3
2724
if %escolha% equ 4 goto escolha4
2825
if %escolha% equ 5 goto escolha5
2926
if %escolha% equ 6 goto escolha6
3027

28+
29+
if %escolha% equ nul (
30+
@echo.
31+
@echo Escolha uma opcao!!!
32+
@echo.
33+
@pause
34+
) else (
35+
color 2
36+
@echo.
37+
@echo Opcao invalida!!!
38+
@echo.
39+
@pause
40+
exit
41+
)
42+
3143
:escolha1
3244

3345
@echo off
3446
cls
3547
@echo.
3648
@echo.
37-
@echo -------------------------
38-
@echo github: https://github.com/suchsoak
39-
@echo -------------------------
49+
@echo -----------------------------------
50+
@echo Github: https://github.com/suchsoak
51+
@echo -----------------------------------
4052
timeout 4 >null
4153
@echo.
4254
@echo [!] informacoes de disco:
@@ -94,7 +106,7 @@ cls
94106
@echo [*] Apagando Arquivos Temporarios
95107
@echo -------------------------
96108
cd %temp%
97-
del *
109+
del /F /Q *
98110
timeout 3 >null
99111
cls
100112
@echo.
@@ -117,38 +129,33 @@ timeout 3 >null
117129
@echo.
118130
cls
119131
@echo.
120-
@echo.
121-
@echo [!] caso queria fazer uma verificacao mais completa existe o comando chkdsk /r.
122-
@echo.
123-
@echo [!] Porem nesse comando seu computador precisara ser reiniciado e isso levara tempo.
124-
@echo.
125-
@echo::::::::::::::::::::::::::::::::::::::::::::--
132+
@echo::::::::::::::::::::::::::::::::::::::::::::
126133
@echo:: [!] AVISO o processo levara um tempo, dependendo da maquina.
127-
@echo::::::::::::::::::::::::::::::::::::::::::::--
134+
@echo::::::::::::::::::::::::::::::::::::::::::::
128135
@echo.
129136
@echo::::::::::::::::::::::::::::::::::::::::::::
130-
@echo:: [*] A. Executar o comando chkdsk /r
131-
@echo:: [*] B. Nao executar o comando
137+
@echo:: [*] 1. Executar o comando chkdsk /r
138+
@echo:: [*] 2. Nao executar o comando
132139
@echo::::::::::::::::::::::::::::::::::::::::::::
133140

134-
set /p escolha= escolha uma opcao:
141+
set /p op= escolha uma opcao:
135142

136-
if %escolha% equ A goto escolhaA
137-
if %escolha% equ B goto escolhaB
143+
if %op% equ 1 goto op1
144+
if %op% equ 2 goto op2
138145

139-
:escolhaA
146+
:op1
140147

141-
@echo::::::::::::::::::::::::::::::::::::::::::::
148+
@echo -------------------------
142149
@echo:: [*] chkdsk /r
143-
@echo::::::::::::::::::::::::::::::::::::::::::::
150+
@echo -------------------------
144151
timeout 3 >null
145152
chkdsk /r
146153
@echo.
147154
@echo::::::::::::::::::::::::::::::::::::::::::::
148155
@echo:: [!] Por padrao, o seu computador não irar ser reiniciado depois do comando, porem e recomendavel.
149156
@echo::::::::::::::::::::::::::::::::::::::::::::
150157

151-
:escolhaB
158+
:op2
152159
cls
153160
@echo.
154161
@echo [*] Saindo Do Terminal...
@@ -169,32 +176,32 @@ cls
169176
@echo.
170177

171178
@echo::::::::::::::::::::::::::::::::::::::::::::
172-
@echo:: [*] S. Colocar Regras De Firewall
173-
@echo:: [*] N. Nao Colocar Regras De Firewall
179+
@echo:: [*] 1. Colocar Regras De Firewall
180+
@echo:: [*] 2. Nao Colocar Regras De Firewall
174181
@echo::::::::::::::::::::::::::::::::::::::::::::
175182

176183

177-
set /p escolha= escolha uma opcao:
184+
set /p firewall= escolha uma opcao:
178185

179-
if %escolha% == S goto escolhaS
180-
if %escolha% == N goto escolhaN
186+
if %firewall% == 1 goto firewall1
187+
if %firewall% == 2 goto firewall2
181188

182-
:escolhaS
189+
:firewall1
183190

184191
cls
185192
color 1
186193
@echo.
187194
@echo Regras De Firewall
188195
@echo.
196+
197+
@echo off
198+
set /p porta=Coloque a porta:
199+
@echo.
200+
@echo Porta escolhida: %porta%
201+
189202
timeout 1 > null
190-
netsh advfirewall firewall add rule name="Block 22" dir=in action=block protocol=TCP localport=22
191-
@echo.
192-
timeout 1 >null
193-
netsh advfirewall firewall add rule name="Block 23" dir=in action=block protocol=TCP localport=23
203+
netsh advfirewall firewall add rule name="Block %porta%" dir=in action=block protocol=TCP localport=%porta%
194204
@echo.
195-
timeout 1 >null
196-
@echo.
197-
netsh advfirewall firewall add rule name="Block 80" dir=in action=block protocol=TCP localport=80
198205
timeout 3 >null
199206
@echo [!] Informacoes De Rede:
200207
color 7
@@ -207,6 +214,8 @@ netsh wlan show interfaces | findstr "Sinal"
207214
netsh wlan show interfaces | findstr "Canal"
208215
netsh wlan show interfaces | findstr "Descrição"
209216
netsh wlan show interfaces | findstr "BSSID"
217+
netsh wlan show interfaces | findstr "Criptografia"
218+
netsh wlan show interfaces | findstr "Faixa"
210219
netsh interface ipv4 show addresses "Wi-Fi" | findstr "Endereço IP"
211220
timeout 3 >null
212221
@echo::::::::::::::::::::::::::::::::::::::::::::
@@ -253,7 +262,7 @@ cls
253262
@pause
254263
exit
255264

256-
:escolhaN
265+
:firewall2
257266
cls
258267
color 4
259268
timeout 2 >null
@@ -268,6 +277,8 @@ netsh wlan show interfaces | findstr "Sinal"
268277
netsh wlan show interfaces | findstr "Canal"
269278
netsh wlan show interfaces | findstr "Descrição"
270279
netsh wlan show interfaces | findstr "BSSID"
280+
netsh wlan show interfaces | findstr "Criptografia"
281+
netsh wlan show interfaces | findstr "Faixa"
271282
netsh interface ipv4 show addresses "Wi-Fi" | findstr "Endereço IP"
272283
timeout 3 >null
273284
@echo::::::::::::::::::::::::::::::::::::::::::::
@@ -382,6 +393,8 @@ color 6
382393
timeout /t 5 > null
383394
@echo.
384395
wmic diskdrive list brief
396+
@echo.
397+
wmic partition get name,size,type
385398
@echo --------------------
386399
@echo.
387400
@echo [!] Informacoes da Placa De Video:
@@ -405,6 +418,12 @@ wmic baseboard get product
405418
@echo.
406419
@echo --------------------
407420
@echo.
421+
@echo [!] Informacoes da Memoria Ram:
422+
@echo.
423+
wmic memorychip get Manufacturer,Capacity,PartNumber,Speed,DeviceLocator
424+
echo.
425+
@echo --------------------
426+
@echo.
408427
@echo [!] Informacoes De Rede:
409428
@echo.
410429
timeout /t 6 > null
@@ -418,6 +437,8 @@ netsh wlan show interfaces | findstr "Sinal"
418437
netsh wlan show interfaces | findstr "Canal"
419438
netsh wlan show interfaces | findstr "Descrição"
420439
netsh wlan show interfaces | findstr "BSSID"
440+
netsh wlan show interfaces | findstr "Criptografia"
441+
netsh wlan show interfaces | findstr "Faixa"
421442
color 7
422443
@echo.
423444
@echo --------------------
@@ -505,6 +526,13 @@ wmic baseboard get product >> informacoes.txt
505526
@echo. >> informacoes.txt
506527
@echo -------------------- >> informacoes.txt
507528
@echo. >> informacoes.txt
529+
@echo [!] Informacoes da Memoria Ram: >> informacoes.txt
530+
@echo. >> informacoes.txt
531+
wmic memorychip get Manufacturer,Capacity,PartNumber,Speed,DeviceLocator >> informacoes.txt
532+
echo. >> informacoes.txt
533+
@echo. >> informacoes.txt
534+
@echo -------------------- >> informacoes.txt
535+
@echo. >> informacoes.txt
508536
@echo [!] Informacoes De Rede: >> informacoes.txt
509537
@echo. >> informacoes.txt
510538
color 8
@@ -517,6 +545,8 @@ netsh wlan show interfaces | findstr "Sinal" >> informacoes.txt
517545
netsh wlan show interfaces | findstr "Canal" >> informacoes.txt
518546
netsh wlan show interfaces | findstr "Descrição" >> informacoes.txt
519547
netsh wlan show interfaces | findstr "BSSID" >> informacoes.txt
548+
netsh wlan show interfaces | findstr "Criptografia" >> informacoes.txt
549+
netsh wlan show interfaces | findstr "Faixa" >> informacoes.txt
520550
color 7
521551
@echo. >> informacoes.txt
522552
@echo -------------------- >> informacoes.txt
@@ -528,12 +558,21 @@ timeout 3 >null
528558
@echo --------------------
529559
@echo [!] Precione Enter para sair do terminal.
530560
@echo --------------------
561+
531562
set /p sair=
532563
if "%input%"==""(
533564
exit
534565
)
566+
535567
:escolha4
536568

569+
@echo --------------------
570+
@echo.
571+
@echo [*] github: https://github.com/suchsoak
572+
@echo.
573+
@echo --------------------
574+
@echo.
575+
537576
net stop wuauserv
538577
net stop bits
539578
net stop cryptsvc
@@ -563,6 +602,7 @@ SC config trustedinstaller start= auto
563602
exit
564603

565604
:escolha5
605+
566606
@echo --------------------
567607
@echo.
568608
@echo [*] github: https://github.com/suchsoak

0 commit comments

Comments
 (0)