Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/examples/Storage Activity/Storage-Activity-example1.txt
2968 views
1
REM !!!! Results may vary greatly depending on target OS. Some operating systems may keep storage active for an exceptionally long time. You may need to experiment with this feature to achieve the desired results for your given target. !!!!
2
3
4
REM Example WAIT_FOR_STORAGE_ACTIVITY Payload
5
6
ATTACKMODE HID STORAGE
7
DELAY 2000
8
LED_OFF
9
STRINGLN Waiting for the disk to be read from or written to...
10
$_STORAGE_ACTIVITY_TIMEOUT = 10000
11
WAIT_FOR_STORAGE_ACTIVITY
12
LED_OFF
13
LED_R
14
15
16
REM The WAIT_FOR_STORAGE_ACTIVITY command blocks all further payload execution until activity on the USB Rubber Ducky storage has been detected.
17
REM The LED will light red after storage activity has been detected.
18