Skip to content
Write-up Intermediate

Metasploit Payload Injection By Using 7raspberry Pi Pico W

The text describes a proof-of-concept where a Raspberry Pi Pico W is programmed to act as a USB keyboard (Bad USB) and automatically type commands to open a reverse shell on a Windows 11 machine. An attacker with physical access could plug in the device and gain a remote shell without any user interaction.

0xMepwn Follow

Published on systemweakness.com

Before i start, a special greetz to my peeps on Hardware Hacking Village in Rootcon Hacking Conference this documentation is just a proof of concept(PoC) device and educational purposes only, so let’s start.

0xMepwn, on systemweakness.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the operating system automatically trusts USB HID devices and executes their keystrokes without any user confirmation or security check.

Impact

An attacker with physical access could gain a remote shell on a Windows 11 machine, but the text notes it has not been tested on Windows 7 to 10 and only claims compatibility with Windows 11.

What the attacker needed

Physical access to the target computer; a Raspberry Pi Pico W device; attacker-controlled Linux server

How it was found

  1. Install CircuitPython on the Raspberry Pi Pico W.
  2. Copy the adafruit_hid library and the pico-ducky code to the device.
  3. Edit the payload file to include the attacker's IP address and port.
  4. Set up a Netcat listener on the attacker's Linux machine.
  5. Plug the Pico W into the target Windows 11 computer.
  6. The device types commands that create a reverse shell connection back to the attacker.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A Bad USB device tricks a computer into thinking it is a normal keyboard. When plugged in, it can automatically type commands very fast, like a robot pressing keys. This lets an attacker run harmful commands without the victim clicking or opening anything.

Similar reports

Same bug class and techniques, clearest first.