Path: blob/master/payloads/examples/ATTACKMODE/ATTACKMODE-example1.txt
2968 views
REM The ATTACKMODE command may be used multiple times throughout a payload.1REM Changing the attack mode will cause the target to re-enumerate the device.23ATTACKMODE HID4DELAY 20005STRINGLN The USB Rubber Ducky is functioning as a keyboard.6STRINGLN It will function as a flash drive for the next 30 seconds.7ATTACKMODE STORAGE8DELAY 300009ATTACKMODE HID10DELAY 200011STRINGLN Now the USB Rubber Ducky is back to functioning as only a keyboard.12STRINGLN For the next 30 seconds it will function as both keyboard and storage.13ATTACKMODE HID STORAGE14DELAY 3000015STRINGLN Now the USB Rubber Ducky will disable itself.16ATTACKMODE OFF1718REM This payload will begin by enumerating as a HID keyboard.19REM The USB Rubber Ducky will then enumerate as a mass storage "flash drive" for 30 seconds.20REM Once more it will be enumerated as only a HID keyboard.21REM Next it will enumerate as both a HID keyboard and a mass storage "flash drive".22REM Finally, the device will seem to be disconnected.2324