Skip to content

Commit

Permalink
Merge pull request #905 from vxsh4d0w/master
Browse files Browse the repository at this point in the history
Create PowerShell_Wireless_Network_Connections.mkape
  • Loading branch information
AndrewRathbun authored Feb 27, 2024
2 parents 0dbfda8 + 8253a49 commit b1b1703
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: -Command "(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
# N/A

0 comments on commit b1b1703

Please sign in to comment.