usbrubberducky-payloads/payloads/library/execution/Windows-Duck-In-The-Middle
Julien M ea737c4c6d Various small updates 2024-06-02 13:23:36 +02:00
..
README.md Various small updates 2024-06-02 13:23:36 +02:00
payload.txt Various small updates 2024-06-02 13:23:36 +02:00

README.md

Windows Duck In The Middle

VIEW ON: HAK5 PAYLOADSTUDIO TARGET: WINDOWS 10, 11 VERSION: 1.0

This payload sets up a trustworthy proxy for the user, enabling a Man-in-the-middle attack. After executing your payload, the proxy server will intercept all the target user's network traffic.

Process

  1. Detects when the USB Rubber Ducky is ready and whether the target operating system is Windows.
  2. Creates a new virtual desktop.
  3. Opens a PowerShell window using the Windows+X menu.
  4. Runs PowerShell code that performs the following actions:
  • Downloads your certificate to a temporary file.
  • Configures Firefox to accepts root user certificates for each profile.
  • Configures and activates the proxy for the current user.
  • Deletes the temporary certificate file and PowerShell history, then closes the window.
  1. Confirms the addition of a trusted certificate in the confirmation dialog box.
  2. Closes the virtual desktop.
  3. Disables USB Rubber Ducky

[!NOTE] No configuration is required for Chromium-based browsers since they accept user root certificates by default.

Prerequisites

To use this payload, you'll need a proxy server and a root certificate. The certificate must be downloadable from a website, either from your proxy server or from an online file hosting service such as Dropbox. You can easily generate the certificate using tools such as mitmproxy or Burp Suite.

[!WARNING] To ensure the payload functions properly, generate the "mitmproxy-ca-cert.pem" certificate in the "Other platforms" section when using mitmproxy.

Options

Required options Data type Default value Description
CERT_URL String example.com The download link for your Trusted Root CA certificate
PROXY_IP String 127.0.0.1 Your proxy's IP address
PROXY_PORT Integer 8080 Your proxy port
Advanced options Data type Default value Description
SHORT_DELAY Integer 500 Short delay time
MEDIUM_DELAY Integer 2000 Medium delay time
LONG_DELAY Integer 4000 Long delay time
CONFIGURE_FIREFOX Boolean TRUE Configures Firefox to accepts root user certificates for each profile
DISABLE_AFTER_EXECUTION Boolean TRUE Disables USB Rubber Ducky after payload execution

Contributors