Skip to content

Commit 8781ac6

Browse files
authored
Update README.md
1 parent 8a2419c commit 8781ac6

File tree

1 file changed

+259
-0
lines changed

1 file changed

+259
-0
lines changed

README.md

Lines changed: 259 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,261 @@
11
# bashscript
2+
23
Bash scripts para facilitar sua vida e também para se divertir
4+
5+
**Para simplificar seu uso, tomei a decisão de combinar meus scripts bash, que antes eram separados.**
6+
7+
8+
<summary>Reset-Para-Netsh</summary>
9+
10+
<details>
11+
12+
# Resetar-Configurações-Da-Internet-No-Computador.
13+
14+
Abra o Script como Administrador
15+
16+
Um script Bat, que resetar configurações e portas como TCP. Do computador, Caso esteja tendo problemas com internet no computador ou notbook.
17+
18+
> Aplica-se a: Windows Server 2022, Windows Server 2019, Windows Server 2016, Azure Stack HCI, versões 21H2 e 20H2
19+
20+
# Como Usar
21+
22+
Via terminal:
23+
24+
```sh
25+
start Reset_net.bat
26+
```
27+
28+
Via Sistema Operacional Gráfico:
29+
30+
```sh
31+
Execute o arquivo como Admistrador!
32+
```
33+
34+
# Codigos utilizados:
35+
> Shell de Rede (netsh)
36+
37+
<ul>
38+
<li>netsh winsock reset all</li>
39+
<li>netsh int 6to4 reset all</li>
40+
<li>netsh int ipv4 reset all</li>
41+
<li>netsh int ipv6 reset all</li>
42+
<li>netsh int httpstunnel reset all</li>
43+
<li>netsh int isatap reset all</li>
44+
<li>netsh int portproxy reset all</li>
45+
<li>netsh int tcp reset all</li>
46+
<li>netsh int teredo reset all</li>
47+
<li>ipconfig /renew</li>
48+
</ul>
49+
50+
# Mais informações sobre os comandos utilizados:
51+
52+
| Libraries | Links |
53+
| ------ | ------ |
54+
| shell de rede| [https://learn.microsoft.com/pt-br/windows/win32/wmisdk/wmic](https://learn.microsoft.com/pt-br/windows-server/networking/technologies/netsh/netsh)
55+
| Netsh | [https://learn.microsoft.com/pt-br/windows-server/networking/technologies/netsh/netsh](https://learn.microsoft.com/pt-br/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc754516(v=ws.10))
56+
| Ipconfig| [https://learn.microsoft.com/pt-br/windows-server/administration/windows-commands/ipconfig](https://learn.microsoft.com/pt-br/windows-server/administration/windows-commands/ipconfig)
57+
58+
</details>
59+
60+
<summary>Systeminfo simplificado</summary>
61+
62+
<details>
63+
64+
# Um systeminfo simplificado
65+
66+
O intuito do script é ter informações sobre seu Desktop pessoal.
67+
68+
# Como usar:
69+
70+
Para utilizar o script, baixe ele em arquivo zipado ou por linha de comando (cmd)
71+
72+
Execute ele de preferencia como administrador.
73+
74+
# Via cmd windows:
75+
76+
> Já com o Informações.bat instalado, execute no terminal se preferir:
77+
78+
```sh
79+
start Informações.bat
80+
```
81+
82+
# Sobre o script
83+
84+
O script irar retornar informações sobre:
85+
86+
processador
87+
88+
```sh
89+
90+
@echo [!] Informacoes Do Processador:
91+
color 5
92+
timeout /t 6 > null
93+
@echo.
94+
wmic CPU get name
95+
@echo.
96+
@echo [*] Arquitetura: %PROCESSOR_ARCHITECTURE%
97+
@echo [*] Processador: %PROCESSOR_IDENTIFIER%
98+
@echo [*] Versao: %PROCESSOR_REVISION%
99+
@echo [*] Nucleos: %NUMBER_OF_PROCESSORS%
100+
@echo.
101+
@echo --------------------
102+
103+
```
104+
105+
Disco
106+
107+
```sh
108+
109+
@echo [!] Informacoes do disco:
110+
color 6
111+
timeout /t 5 > null
112+
@echo.
113+
wmic diskdrive list brief
114+
@echo --------------------
115+
@echo.
116+
@echo [!] Informacoes da Placa De Video:
117+
color 7
118+
timeout /t 5 > null
119+
@echo.
120+
wmic path win32_VideoController get name
121+
wmic path win32_VideoController get name, adapterram, driverversion
122+
@echo.
123+
@echo --------------------
124+
125+
```
126+
Informações De Rede
127+
128+
```sh
129+
130+
@echo [!] Informacoes De Rede:
131+
@echo.
132+
timeout /t 6 > null
133+
color 8
134+
netsh interface ipv4 show addresses "Wi-Fi" | findstr "Endereço IP"
135+
netsh wlan show interfaces | findstr "Perfil"
136+
netsh wlan show interfaces | findstr "Estado"
137+
netsh wlan show interfaces | findstr "Sinal"
138+
netsh wlan show interfaces | findstr "Canal"
139+
netsh wlan show interfaces | findstr "Descrição"
140+
netsh wlan show interfaces | findstr "BSSID"
141+
color 7
142+
@echo.
143+
@echo --------------------
144+
145+
```
146+
147+
Para obter informações do ip e relacionado a endereço, foi utilizado o curl junto como o ipinfo.io
148+
149+
```sh
150+
151+
@echo IP:
152+
@echo.
153+
curl -s ipinfo.io/ip
154+
@echo.
155+
@echo.
156+
@echo Cidade:
157+
158+
@echo.
159+
160+
curl -s ipinfo.io/city
161+
162+
@echo.
163+
164+
@echo Codigo-Postal:
165+
@echo.
166+
curl -s ipinfo.io/postal
167+
@echo.
168+
@echo Pais:
169+
@echo.
170+
curl -s ipinfo.io/country
171+
@echo.
172+
173+
```
174+
175+
E outras informações adicionais, como placa de video, endereço ip, Proprietário registrado e etc.
176+
177+
# As informações serão arquivadas em um arquivo informacoes.txt
178+
179+
```sh
180+
181+
@echo [!] Salvando as informacoes em um arquivo txt (informacoes.txt)...
182+
@echo --------------------
183+
@echo off
184+
@echo -------------------- > informacoes.txt
185+
@echo. >> informacoes.txt
186+
@echo [*] github: https://github.com/suchsoak >> informacoes.txt
187+
@echo. >> informacoes.txt
188+
@echo -------------------- >> informacoes.txt
189+
@echo. >> informacoes.txt
190+
wmic OS get name >> informacoes.txt
191+
ver >> informacoes.txt
192+
@echo. >> informacoes.txt
193+
date /t >> informacoes.txt
194+
@echo. >> informacoes.txt
195+
196+
```
197+
198+
## Se quiser saber mais sobre os comandos apresentados no script:
199+
200+
| Libraries | Links |
201+
| ------ | ------ |
202+
| Systeminfo wifi | https://github.com/suchsoak/Systeminfo_Windows/wiki
203+
204+
## Pesquisas Relacionadas:
205+
206+
| Libraries | Links |
207+
| ------ | ------ |
208+
| Wmic | https://learn.microsoft.com/pt-br/windows/win32/wmisdk/wmic
209+
| Netsh | https://learn.microsoft.com/pt-br/windows-server/networking/technologies/netsh/netsh
210+
| Comandos | https://learn.microsoft.com/pt-br/windows-server/administration/windows-commands/windows-commands
211+
212+
213+
</details>
214+
215+
216+
<summary>Verificadores De Disco</summary>
217+
218+
<details>
219+
220+
# HD_Verificadores_Bat
221+
222+
Abra o arquivo.bat como adiminstrador.
223+
224+
> Verificadores Para Profissionais De Ti. Um simples script para verificar arquivos do hd ou ssd.
225+
226+
<p align="center">
227+
<img src="https://github.com/suchsoak/bashscript/blob/main/disk.png" alt="disk.png">
228+
</p>
229+
230+
# Como usar
231+
232+
```sh
233+
start Verificadores.bat
234+
```
235+
236+
### Codigos Utilizados.
237+
238+
<ul>
239+
<li>Sfc /ScanNow</li>
240+
<li>dism /online /cleanup-image /scanhealth</li>
241+
<li>dism /online /cleanup-image /restorehealth</li>
242+
<li>dism /Online /Cleanup-Image /CheckHealth</li>
243+
<li>chkdsk</li>
244+
<li>wmic</li>
245+
</ul>
246+
247+
## Documentação Dos Codigos Utilizados:
248+
249+
| Libraries | Links |
250+
| ------ | ------ |
251+
| verificador | https://support.microsoft.com/pt-br/topic/use-a-ferramenta-verificador-de-arquivos-do-sistema-para-reparar-arquivos-de-sistema-ausentes-ou-corrompidos-79aa86cb-ca52-166a-92a3-966e85d4094e
252+
| chkdsk | https://learn.microsoft.com/pt-br/windows-server/administration/windows-commands/chkdsk?tabs=event-viewer
253+
| Repair | https://learn.microsoft.com/pt-br/windows-hardware/manufacture/desktop/repair-a-windows-image?view=windows-11
254+
| wmic | https://learn.microsoft.com/pt-br/windows-server/administration/windows-commands/wmic
255+
256+
257+
</details>
258+
259+
License & Copyright
260+
-----------------------
261+
MIT

0 commit comments

Comments
 (0)