From 5981eaf825b005e1b9e0048aba31164554ebb74b Mon Sep 17 00:00:00 2001 From: UberGuidoZ <57457139+UberGuidoZ@users.noreply.github.com> Date: Sat, 29 Oct 2022 23:52:22 -0700 Subject: [PATCH] Updating formatting (UTF-8) --- 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..6cb4d75f --- /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