# Força o console a usar codificação UTF-8 para não quebrar acentos [console]::InputEncoding = [console]::OutputEncoding = [System.Text.Encoding]::UTF8 function Show-Menu { Clear-Host Write-Host "==================================" -ForegroundColor Cyan Write-Host "WIFI REPAIR TOOLKIT" -ForegroundColor Cyan Write-Host "==================================" -ForegroundColor Cyan Write-Host "1. Mostrar perfis de Wi-Fi" Write-Host "2. Mostrar senha do Wi-Fi" Write-Host "3. Limpar DNS" Write-Host "4. Liberar e renovar IP" Write-Host "5. Redefinir Winsock" Write-Host "6. Reparo completo da rede" Write-Host "7. Teste de ping do Google" Write-Host "8. Abrir conexoes de rede" Write-Host "9. Mostrar configuracao de IP" Write-Host "10. Exit" Write-Host "==================================" -ForegroundColor Cyan } do { Show-Menu $choice = Read-Host "Select option" switch ($choice) { "1" { netsh wlan show profiles } "2" { netsh wlan show profiles Write-Host "" $wifi = Read-Host "Enter Wi-Fi Name" netsh wlan show profile name="$wifi" key=clear } "3" { ipconfig /flushdns } "4" { ipconfig /release ipconfig /renew } "5" { netsh winsock reset } "6" { Write-Host "Repairing network..." -ForegroundColor Yellow ipconfig /flushdns netsh winsock reset netsh int ip reset ipconfig /release ipconfig /renew Write-Host "Repair complete." -ForegroundColor Green } "7" { ping google.com } "8" { Start-Process ncpa.cpl } "9" { ipconfig /all } "10" { exit } default { Write-Host "Opção inválida, tente novamente." -ForegroundColor Red } } if ($choice -ne "10") { Write-Host "" Read-Host "Pressione Enter para continuar..." } } while ($choice -ne "10")