Skip to content

About

An a PowerShel scripts for typing in Run Window

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BadUSB_pws ⌨️⚡

An collection of optimized PowerShell one-liners and scripts specifically designed to be typed into the Windows Run Window (Win+R) via HID devices (BadUSB).

Warning

Educational Purposes Only. This tool is intended for security research and authorized penetration testing. Use it only on systems you own or have explicit permission to test. The author is not responsible for any misuse.

Overview

The goal of this project is to provide highly compressed and efficient PowerShell commands that can be executed quickly through the Windows Run dialog. These scripts are tailored for HID attacks (Rubber Ducky, Flipper Zero, Digispark, etc.) where typing speed and payload length matter.

Features

  • Short & Stealthy: Payloads optimized to fit within the character limits of the Run window.
  • Bypass-Oriented: Includes flags to bypass execution policies and hide windows.
  • Versatile: Scripts for information gathering, reverse shells, and system tweaks.

Typical Usage

To use these in your HID device, wrap the commands in DuckyScript or your device's native language.

Standard Run Window Template:

  1. GUI r (Opens Run window)
  2. DELAY 500
  3. STRING powershell -w h -NoP -Ep Bypass -c "YOUR_PAYLOAD_HERE"
  4. ENTER

Prerequisites

  • Target OS: Windows 10/11
  • HID-compatible device (e.g., Flipper Zero, Arduino Pro Micro, Rubber Ducky)
  • Basic knowledge of PowerShell and DuckyScript

Contributing

Contributions are welcome! If you have a clever one-liner or a new script:

  1. Fork the repo.
  2. Create your feature branch.
  3. Submit a Pull Request.

About

An a PowerShel scripts for typing in Run Window

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages