Jump to content

Dаrren Kitchen

Active Members
  • Posts

    107
  • Joined

  • Last visited

Everything posted by Dаrren Kitchen

  1. That reminds me, I've adding a photoresistor makes for an easy motion sensor. I've also set mine up to use a reed switch so I can use a magnet to set it off.
  2. I've got some of my code, and notes, here: http://www.irongeek.com/i.php?page=securit...eystroke-dongle Also, I'm working on a basic library of functions, but to give you an idea of how simple it is to code for the Teensy, here is some source (note, it does a lot of stuff, including driving an RGB LED): /* The following is Irongeek's diag code 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 */ // The setup() method runs once, when the sketch starts int thispin; int PhotoRead = analogRead(0); int OldPhotoRead = PhotoRead; int ledPin = 11; int redPin = 15; int greenPin = 12; int bluePin = 14; int redIntensity = 0; int greenIntensity = 128; int blueIntensity = 128; int rRate = 1; int gRate = -1; int bRate = 1; int DIP_0 = 2; int DIP_1 = 3; int DIP_2 = 4; int DIP_3 = 5; int DIP_4 = 6; int DIP_5 = 7; int DIP_6 = 8; int DIP_7 = 9; int DIP_8 = 10; void setup() { // initialize the digital pin as an output: for (int thispin=0; thispin <=10;thispin++){ pinMode(thispin, INPUT_PULLUP); // Dip } pinMode(ledPin, OUTPUT); } // the loop() method runs over and over again, // as long as the Arduino has power void loop() { //delay(250); if (!digitalRead(0)) { ShowDiag(); RGBLEDOff(); } //Please note: I use negative logic here, when a pin goes to ground the code us run. PhotoRead = analogRead(0); if (!digitalRead(DIP_1)) { if (abs(PhotoRead - OldPhotoRead) > 50 ) { LightDiag(); } } /* This section sends a command to the run bar, finds the drive letter by its volume name (MYTHUMB in this example, and case sensitive), then runs your script. Thanks to Tim Medin for this more elegant command line then what I had for finding the thumbdrive by volume name. */ if (!digitalRead(DIP_2)) { if (abs(PhotoRead - OldPhotoRead) > 50 ) { CommandAtRunBar("cmd /c for /F %i in ('WMIC logicaldisk where \"DriveType=2\" list brief ^| find \"MYTHUMB\"') do %i\\myscript.bat"); delay(2000); ShrinkCurWin(); } } if (!digitalRead(DIP_3)) { WindowsLockStation(); } if (!digitalRead(DIP_4)) { MouseWiggle(); } if (!digitalRead(DIP_5)) { WebIG(); } if (!digitalRead(DIP_6)) { FacebookPost("Test from Phukd device, more info at http://www.irongeek.com/i.php?page=securit...-dongle"); } if (!digitalRead(DIP_7)) { DoRGBStuff(); } if (!digitalRead(DIP_8)) { DoCOPStuff(); } digitalWrite(ledPin, LOW); } //******************************************************************** //******************************************************************** void CommandAtRunBar(char *SomeCommand){ //digitalWrite(ledPin, HIGH); // set the LED on Keyboard.set_modifier(128); //Windows key Keyboard.set_key1(KEY_R); // use r key Keyboard.send_now(); // send strokes 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(1500); Keyboard.print(SomeCommand); Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.send_now(); } //******************************************************************** //******************************************************************** void ShrinkCurWin(){ Keyboard.set_modifier(MODIFIERKEY_ALT); Keyboard.set_key1(KEY_SPACE); Keyboard.send_now(); Keyboard.set_modifier(0); Keyboard.set_key1(0); Keyboard.send_now(); Keyboard.print("n"); } //******************************************************************** //******************************************************************** void PressAndRelease(int KeyCode,int KeyCount){ int KeyCounter=0; for (KeyCounter=0; KeyCounter!=KeyCount; KeyCounter++){ Keyboard.set_key1(KeyCode); // use r key Keyboard.send_now(); // send strokes Keyboard.set_key1(0); Keyboard.send_now(); // send strokes } } //******************************************************************** //******************************************************************** void ShowDiag(){ //digitalWrite(ledPin, HIGH); for (int thispin=0; thispin <11;thispin++){ if (!digitalRead(thispin)) { //digitalWrite(ledPin, HIGH); // set the LED on Keyboard.print(thispin); Keyboard.println(" is low"); } else{ //Keyboard.print(thispin); //Keyboard.println(" is high"); } } Keyboard.print("analog pin 8 is: "); Keyboard.println(PhotoRead); } //******************************************************************** //******************************************************************** void DoRGBStuff(){ // Begin RGB Code analogWrite(redPin, redIntensity); analogWrite(greenPin,greenIntensity); analogWrite(bluePin, blueIntensity); // remain at this color, but not for very long delay(10); redIntensity = redIntensity + rRate; greenIntensity = greenIntensity + gRate; blueIntensity = blueIntensity + bRate; if (redIntensity == 255) { rRate = -1; } if (redIntensity == 0) { rRate = 1; } if (greenIntensity == 255) { gRate = -1; } if (greenIntensity == 0) { gRate = 1; } if (blueIntensity == 255) { bRate = -1; } if (blueIntensity == 0) { bRate = 1; } // End RGB Code } //******************************************************************** //******************************************************************** void DoCOPStuff(){ // Begin RGB Code analogWrite(redPin, 255); analogWrite(greenPin,0); analogWrite(bluePin, 0); delay(50); analogWrite(redPin, 0); analogWrite(greenPin,255); analogWrite(bluePin, 0); delay(50); analogWrite(redPin, 0); analogWrite(greenPin,0); analogWrite(bluePin, 255); delay(50); // End RGB Code } //******************************************************************** //******************************************************************** void RGBLEDOff(){ analogWrite(redPin, 0); analogWrite(greenPin,0); analogWrite(bluePin, 0); } //******************************************************************** //******************************************************************** void LightDiag(){ digitalWrite(ledPin, HIGH); // set the LED on CommandAtRunBar("notepad.exe"); delay(1000); Keyboard.print("Movement! Current light: "); Keyboard.print(PhotoRead); Keyboard.print(" Old light: "); Keyboard.println(OldPhotoRead); PressAndRelease(KEY_F5,1); OldPhotoRead = analogRead(0); } //******************************************************************** //******************************************************************** //Locks the workstaion if you are in Windows void WindowsLockStation(){ digitalWrite(ledPin, HIGH); // set the LED on Keyboard.set_modifier(MODIFIERKEY_CTRL|MODIFIERKEY_ALT); Keyboard.set_key1(KEY_DELETE); // use delete key Keyboard.send_now(); // send strokes Keyboard.set_modifier(0); //prep release of control keys Keyboard.set_key1(KEY_ENTER); delay(1500); Keyboard.send_now(); //Send the key changes Keyboard.set_key1(0); Keyboard.send_now(); } //******************************************************************** //******************************************************************** //Moves the mouse around and clicks to be annoying void MouseWiggle(){ digitalWrite(ledPin, HIGH); // set the LED on Mouse.move(random(-100, 100) ,random(-100, 100) ); Mouse.click(); } //******************************************************************** //******************************************************************** //Opens a browser to http://irongeek.com void WebIG(){ digitalWrite(ledPin, HIGH); // set the LED on CommandAtRunBar("cmd /c start http://irongeek.com"); } //******************************************************************** //******************************************************************** //Make a facebook post, assumes the person is logged in. void FacebookPost(char *SomeString){ digitalWrite(ledPin, HIGH); // set the LED on CommandAtRunBar("cmd /c start http://m.facebook.com"); delay(6000); PressAndRelease(KEY_TAB, 8); Keyboard.print(SomeString); PressAndRelease(KEY_TAB, 1); PressAndRelease(KEY_ENTER, 1); } //********************************************************************
  3. I've updated my site, and the code: http://www.irongeek.com/i.php?page=securit...eystroke-dongle I think I need to add some of your functions, just to make coding keystroke easier. I've made a function to repeat keystrokes you have to hit many times in a roll, like tab. I've also added better code for checking the photoresistor and doing something based on light, and a timer function so you can leave the PHUKD behind to wait for someone to login.
  4. I've put OpenSSH on mine. It's a little slower that I imagine Dropbear would be, but more full featured. I made it the default on the Side-Track distro, but if you use RootNexus it's just a apt-get away.
  5. For the wireless firmware, got here: http://cozybit.com/projects/gspi8686/ and rename them as Hunter says. These work so much better than the stock drivers that came on my Zipit.
  6. I'm thinking of trying to add it to my Side-track image, but as I understand it, Metasploit runs so slow on an iPhone, I imagine it will be even more unusable on the slower ZipIt.
  7. Works fine in Windows to if you use https://launchpad.net/win32-image-writer and it's in English. :) To get full use of all 8GB however, you will have to take the SD to a Linux box and resize the ext3 partition to take up the rest of the SD.
  8. I've got some instructions here: http://www.irongeek.com/i.php?page=securit...land-side-track it makes things a little easier by packaging things together. Also, you don't have to use my userland image, others should work as well. If you have an 8GB card, you may want to use GParted on a Linux box to resize the partition to get the most use of it. Other than that, everything can be done in Windows with my instructions.
  9. A sticky tar pit like LaBrea is also fun: http://labrea.sourceforge.net/labrea-info.html
  10. If all you want is a web based proxy, this one works well: http://www.jmarshall.com/tools/cgiproxy/ it's also easy to set up: http://www.irongeek.com/i.php?page=videos/cgiproxy-nph-proxy
  11. If you try to decode it, make sure there is no space in the front of the string.
  12. I've posted my Unicode and LSB stego code. The link is at the bottom of this post. I hope this is the right form to post it in. If not, please move. I need to work on fiding better homoglyphs so the font does not look so weird, and URL encoding. Assuming the forum system does not mangle it, there should be a hidden message in this post. http://www.irongeek.com/i.php?page=securit...-lsb-stego-code
  13. Ok, I've got it working, and for those who have a ZipIt Z2, I'd love for you to test it. http://www.irongeek.com/i.php?page=securit...land-side-track Thanks, Adrian
  14. Thanks, but I've tried that with no luck. If anyone knows a link to download the old viclient please let me know.
  15. Point taken, and I may just set it up so I have to VPN in.b
  16. Are you talking about obfuscated javascript? if so these links may help: http://www.aspheute.com/english/20011123.asp http://www.virtualconspiracy.com/content/scrdec/download
  17. This reminds me, I still need to make that IP security cam article. Even if it's not wireless, if you can get on the same LAN as an IP camera it's pretty much game over.
  18. I have to say, the n810 is the bomb since you can install any Debian package if you use Easy Debian. Here are a few other ideas: http://www.irongeek.com/i.php?page=mobile-device-hacking Still, I'd like to get a Zipit just to use as a drop box on someone else's network.
  19. I got the remote web interface to work. I had forwarded 8333/tcp before, but I did not know I needed to forward 902/tcp till I put a sniffer on it.
  20. The Web interface with the browser plugin for Vmware Server 2.0.2 on Windows 2008 sort of works in my LAN, but connecting to it from the Internet is a problem. You can start and stop VMs, but bringing up a VM's console does not work at all, with errors about having a bad password even though it worked fine for connecting in. I've tried installing the vSphere client, but to no avail, it want's to download support files from the server that are not there. Anyone know an alternative to the craptasic web interface for VMWare server 2.x?
  21. I'm pretty sure the URL is right, but the site is down right now.
  22. Anyone else here mess thie AVISynth for video editing? I use this script for making videos that look like the presentations for Defcon: #Defcon style video composite AviSynth script by Adrian http://irongeek.com #The next line is mostly for specifying and resizing the live video to put in the corner. #It also does some other filtering to make the video specs match. Use the Trim function to make things sync. livevid = DirectShowSource("file0003.avi").ConvertToRGB24().LanczosResize(208,156).Trim(300,0,false).ConvertFPS(25) #The line tells the script what to use for the large section of the video where I put the slide show/what was being projected slides = DirectShowSource("issasc_transcoded.avi").ConvertToRGB24().LanczosResize(640,480).Trim(0,0,false).ConvertFPS(25) #Just a for a logo for the corner, I use it to give info avout the presentation. Has to be 208x324. corner = ImageSource("corner.png",pixel_type="RGB24").ConvertFPS(25) #Now to dd all the file together livepluscorner = StackVertical(livevid,corner).AudioDub(livevid) StackHorizontal(livepluscorner,slides) Also, I like AVIDemux, but it's a pain to set up for batch conversions. With Mediacoder, I can transcode just about any video format, even AVISynth scripts: http://mediacoder.sourceforge.net/
  23. Where is the best place to buy custom vinyl stickers? I'm thinking of getting some made to hand out at cons.
  24. Happy Halloween from IG Thought you all would like this: http://vimeo.com/2121214
×
×
  • Create New...