Setup for Raspberry Pi Pico W to make a Wifi Duck.
It is a USB Rubber Ducky with wifi capabilities and it was termed by Spacehuhn.
- The mnemoics used in this tool is heavily inspired by Hak5 Ducky Script.
- The main inspiration of this project is from Spacehuhn.
- The implementation of the wifi duck into Raspberry Pi Pico W inspired me by dbisu.
- Minimal Setup.
- Simple and clean webpage for type mnemonics.
- Run Button - Run typed mnemonics.
- Upload Button - Upload .txt files which contain mnemonics to run.
- Save Button - Save typed mnemonics on the system.
- Clear Button - Clears the text area.
- Windows 10
- Android
- Download Latest Circuit Python
.uf2
file for Raspberry P i Pico W - here- Latest version is 9.1.0.
- Connect Raspberry Pi Pico W with a USB cable.
- Press and hold the
BOOTSEL
button and connect to the PC/Laptop.- When it connects, then Raspberry Pi Pico W show as a removable storage device named
RPI-RP2
. - When
RPI-RP2
is showing, then release theBOOTSEL
button.
- When it connects, then Raspberry Pi Pico W show as a removable storage device named
- Copy the
.uf2
file in theRPI-RP2
.- When it is copied, then it disconnects automatically and reconnect as
CIRCUITPY
. - Means circuit python is successfully flashed in the Raspberry Pi Pico W.
- When it is copied, then it disconnects automatically and reconnect as
- Open
CIRCUITPY
.- There are two important things in it :
lib
folder andcode.py
file.
- There are two important things in it :
- Download Adafruit CircuitPython Bundle from here
- Latest is
adafruit-circuitpython-bundle-9.x-mpy-20240709.zip
.
- Latest is
- Extarct the ZIP file.
- Go to the
lib
folder in the extracted ZIP file. - Copy
adafruit_hid
andadafruit_httpserver
folders in thelib
folder ofCIRCUITPY
. - Done! Now, Raspberry Pi Pico W is ready to use as a Wifi Duck.
- CIRCUITPY/
- lib/
adafruit_hid
adafruit_httpserver
code.py
index.html
- lib/
Mnemonics | Description | Example |
---|---|---|
WAIT | It add time in the code. Time is in milliseconds. 1000 ms = 1 second. |
WAIT 1000 |
TYPE | It add text want to type in the code. | TYPE Hello World! |
LOOP | It runs commands for a certain number of times. Synatx is LOOP number-of-times commands |
LOOP 3 TYPE Hello World! EXIT LOOP 4 TAB EXIT LOOP 1 CTRL S EXIT LOOP 1 CTRL SHIFT N EXIT |
INF | It run commans infinitely. Syntax is INF commands |
INF TYPE Hello World! EXIT INF TAB EXIT |
-
- It is used to put the cursor in the next line.
- It is only used with TYPE.
- Example :
TYPE Hello World!-
- If TYPE contain any command and then
-
then it run automatically withoutENTER
key.
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
LEFT
UP
RIGHT
DOWN
TAB
HOME
END
PGUP
PGDN
CAPS
NUM
SCROLL
GUI
ESC
PRTSCR
PAUSE
INSERT
DEL
BKSP
ENTER
CTRL
SHIFT
ALT
`
!
@
#
$
%
^
&
*
(
)
-
=
[
]
\
;
'
,
.
/
SPACE
~
_
+
{
}
|
:
"
<
>
?
0
1
2
3
4
5
6
7
8
9
- Download or Clone the Repository.
- Open the folder.
- There are two files in it :
code.py
andindex.html
.- Make sure that your Raspberry Pi Pico W is connected to your PC/Laptop.
- Copy both files in the
CIRCUITPY
.- It ask for replacement of
code.py
file, then replace it. - It will overwrite in the
code.py
file. - After 2-3 minutes, an Access Point is created named
PicoWQuack
whose password ispicowquack
.
- It ask for replacement of
- Connect to that access point.
- When connected successfully, open your browser and type the following IP -
192.168.4.1
. - Hit enter.
- A webpage open like this :
- Type your script and click on
Run
button.- The script executes!
- By clicking
Upload
button, we can load.txt
file and it show in text area and then we can run that script by clicking onRun
button. - By clicking
Save
button, we can save mnemonics in text area on the system in.txt
file.
Tip
Start your code with WAIT
so that board get time to initiate.
While using LOOP
use only one command.
- Connect Raspberry Pi Pico W with a USB cable.
- Press and hold the
BOOTSEL
button and connect to the PC/Laptop.- When it connects, then Raspberry Pi Pico W show as a removable storage device named
RPI-RP2
. - When
RPI-RP2
is showing, then release theBOOTSEL
button.
- When it connects, then Raspberry Pi Pico W show as a removable storage device named
- Copy the
flash_nuke.uf2
file in theRPI-RP2
.- When it is copied, then it disconnects automatically and reconnect as
RPI-RP2
.
- When it is copied, then it disconnects automatically and reconnect as
WAIT 1000
GUI R
WAIT 1000
TYPE notepad
WAIT 1000
ENTER
WAIT 1000
TYPE Hello World!
WAIT 1000
GUI R
WAIT 1000
TYPE cmd
WAIT 1000
CTRL SHIFT ENTER
WAIT 1300
ALT Y
WAIT 1000
CTRL SHIFT N
WAIT 1200
TYPE hello
WAIT 1100
ENTER
WAIT 1000
GUI R
WAIT 1000
TYPE notepad
WAIT 1000
ENTER
WAIT 1000
LOOP 6
TYPE Hello World!-
EXIT