From 8dd2520e0495acb51d57c3a6cd50e4271b1116e2 Mon Sep 17 00:00:00 2001 From: UberGuidoZ <57457139+UberGuidoZ@users.noreply.github.com> Date: Tue, 23 Aug 2022 23:11:34 -0700 Subject: [PATCH] Fixed with UTF-8 version (and removed blank line) --- BadUSB/Get-Connected-USBs.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 BadUSB/Get-Connected-USBs.txt diff --git a/BadUSB/Get-Connected-USBs.txt b/BadUSB/Get-Connected-USBs.txt new file mode 100644 index 00000000..f8463b5c --- /dev/null +++ b/BadUSB/Get-Connected-USBs.txt @@ -0,0 +1,16 @@ +REM Title: Get-Connected-USBs +REM Author: atomicsec +REM Source: https://github.com/atomiczsec/Get-Connected-USBs +REM Generator: https://github.com/I-Am-Jakoby/Powershell-to-Ducky-Converter +REM Target OS: Windows 10 +REM Description: Payload gets all connected USB devices +REM +DELAY 2000 +GUI r +DELAY 2000 +STRING powershell +DELAY 250 +ENTER +DELAY 2000 +STRING Get-PnpDevice -PresentOnly | Where-Object { $_.InstanceId -match '^USB' } | Out-File -FilePath .\USB-Connected.txt +ENTER \ No newline at end of file