Skip to content

Commit

Permalink
Create Powershell_Wireless_Network_Connections.mkape
Browse files Browse the repository at this point in the history
  • Loading branch information
vxsh4d0w authored Feb 27, 2024
1 parent 0dbfda8 commit cbc133e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Modules/Windows/Powershell_Wireless_Network_Connections.mkape
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Description: Extract Wireless Network Connections details via powershell
Category: LiveResponse
Author: Vito Alfano
Version: 1.0
Id: 5021953e-b8b8-482d-8d23-a0f901dff84d
ExportFormat: txt
Processors:
-
Executable: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
CommandLine: (netsh wlan show profiles) | Select-String “\:(.+)$” | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | % {(netsh wlan show profile name=”$name” key=clear)} | Select-String “Key Content\W+\:(.+)$” | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ SSID=$name;PASSWORD=$pass }} | Format-Table -AutoSize > %destinationDirectory%\Wireless_Network.txt
ExportFormat: txt

# Documentation
#

0 comments on commit cbc133e

Please sign in to comment.