REM
, is just a comment. It’s always good practice to comment your code. The second command, DELAY
, tells the USB Rubber Ducky to pause for 1000 milliseconds. This delay will give the target computer enough time to recognize the USB Rubber Ducky as a keyboard before it begins typing.GUI r
is equivalent to holding down the Windows
key and pressing R
, which opens the Windows Run dialog.runAs
verb starts the process with administrator permissions. This is the same as opening cmd
with the Run as administrator option.ALT
and pressing Y
for Yes. Voila – admin command prompt!