aka the ark Posted December 11, 2012 Share Posted December 11, 2012 I recently bought a usb rubber ducky and was wondering if the duck could shutdown the computer then start it back up?I know its a strange question but im working on a password reset payload and would like to know how the duck could restart the computer while doing a command. Quote Link to comment Share on other sites More sharing options...
Bountyhunter50 Posted December 11, 2012 Share Posted December 11, 2012 Well, I know on Linux with Backtrack 5, shutdown now -r is restart and shutdown now -h is shutdown. mac should be sudo shutdown now - (h,r,s,or k) time (warning message) Quote Link to comment Share on other sites More sharing options...
01000010 Posted December 11, 2012 Share Posted December 11, 2012 If you shutdown the computer, I want to say your going to be out of luck. Worth looking into more In the old days Mac keyboards had a power button on it, Now it is gone. I guess if you could find out what that button was and did you might be able to have it work then Quote Link to comment Share on other sites More sharing options...
aka the ark Posted December 12, 2012 Author Share Posted December 12, 2012 Ok is there any way for it to restart and the duck would still do its thing? Quote Link to comment Share on other sites More sharing options...
01000010 Posted December 12, 2012 Share Posted December 12, 2012 I am not 100 percent sure without testing but just use a reboot command and then pause the duck for how ever long the machine takes to reboot. your issue could be that when the mac reboots it resets the usb power which would reset the duck. If that is the case then you need to look at running the duck of outside power but then again you might have initiaztion issues when you plug it in. I do not have a duck to test with, I am using a teensy for this stuff Quote Link to comment Share on other sites More sharing options...
no42 Posted December 12, 2012 Share Posted December 12, 2012 Ok is there any way for it to restart and the duck would still do its thing? You could use the m_duck (Naked Duck) firmware. First payload reboots the Mac, enable caps lock when the Mac boots, and push the button on the ducky to execute the 2nd payload; you would probably want some kind of large delay, depending on boot time. Quote Link to comment Share on other sites More sharing options...
Bountyhunter50 Posted December 12, 2012 Share Posted December 12, 2012 Couldn't you issue a reboot, but in the duck code tell it to wait for the imac to become alive again? (Not 100% familiar yet with the duck language B) soon to own one!) Quote Link to comment Share on other sites More sharing options...
no42 Posted December 12, 2012 Share Posted December 12, 2012 Couldn't you issue a reboot, but in the duck code tell it to wait for the imac to become alive again? (Not 100% familiar yet with the duck language B) soon to own one!) The Duck is powered by the host over USB (Hence the need for a USB OTG cable on Android). On reboot the Ducky would reset. 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.