File tree 3 files changed +30
-0
lines changed
3 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,20 @@ The easiest way to so is by using a jumper wire between those pins as seen bello
43
43
44
44
![ Setup mode with a jumper] ( images/setup-mode.png )
45
45
46
+ ### USB enable/disable mode
47
+
48
+ If you need the pico-ducky to not show up as a USB mass storage device for stealth, follow these instructions.
49
+ Enter setup mode.
50
+ Copy boot.py to the root of the pico-ducky.
51
+ Copy your payload script to the pico-ducky.
52
+ Disconnect the pico from your host PC.
53
+ Connect a jumper wire between pin 18 and pin 20.
54
+ This will prevent the pico-ducky from showing up as a USB drive when plugged into the target computer.
55
+ Remove the jumper and reconnect to your PC to reprogram.
56
+ The default mode is USB mass storage enabled.
57
+
58
+ ![ USB enable/disable mode] ( images/usb-boot-mode.png )
59
+
46
60
## Useful links and resources
47
61
48
62
### Docs
Original file line number Diff line number Diff line change
1
+ from board import *
2
+ import digitalio
3
+ import storage
4
+
5
+ noStorageStatus = False
6
+ noStoragePin = digitalio .DigitalInOut (GP15 )
7
+ noStoragePin .switch_to_input (pull = digitalio .Pull .UP )
8
+ noStorageStatus = not noStoragePin .value
9
+
10
+ if (noStorageStatus == True ):
11
+ # don't show USB drive to host PC
12
+ storage .disable_usb_drive ()
13
+ print ("Disabling USB drive" )
14
+ else :
15
+ # normal boot
16
+ print ("USB drive enabled" )
You can’t perform that action at this time.
0 commit comments