Path: blob/master/payloads/examples/ATTACKMODE/ATTACKMODE-example2.txt
2968 views
REM Within a payload the ATTACKMODE command may be executed multiple times.1REM In some situations it can be useful to "remember" an ATTACKMODE state, for later recall.2REM The SAVE_ATTACKMODE command will save the currently running ATTACKMODE state (including any specified VID, PID, MAN, PROD and SERIAL parameters) such that it may be later restored.3REM The RESTORE_ATTACKMODE command will restore a previously saved ATTACKMODE state.456ATTACKMODE HID STORAGE VID_05AC PID_021E MAN_HAK5 PROD_DUCKY SERIAL_133778BUTTON_DEF9RESTORE_ATTACKMODE10STRINGLN The ATTACKMODE has been restored.11END_BUTTON1213STRING The USB Rubber Ducky is now in14STRINGLN an ATTACKMODE HID STORAGE.15SAVE_ATTACKMODE1617STRINGLN This state has been saved.18STRINGLN Now entering ATTACKMODE OFF...19STRING Press the button to restore20STRINGLN the ATTACKMODE.21ATTACKMODE OFF222324REM The USB Rubber Ducky will be recognized as a composite USB device with both HID and STORAGE features.25REM Strings will be typed informing the user of the save state, the button functionality, and entering ATTACKMODE OFF.26REM Pressing the button will restore the previously initialized ATTACKMODE.2728