-
Posts
613 -
Joined
-
Last visited
-
Days Won
1
Posts posted by Seshan
-
-
This will automatically post to twitter. User has to be logged in. I'll be adding it to the wiki ( http://www.hak5.org/projects/doku.php?id=usb_rubber_ducky )
Windows Code
// Automatic twitter poster for Windows, User must be logged into twitter for this to work. // Created by Seshan 30/04/10 11:48 PM int ledPin = 11; void setup() { pinMode(ledPin, OUTPUT); // put this before other led commands or the LED will be dim ledstart(); // lights up when connected delay(3000); // delay for computer ledstart(); // lights up when payload starts // opens run Keyboard.set_modifier(MODIFIERKEY_GUI); Keyboard.send_now(); Keyboard.set_key1(KEY_R); Keyboard.send_now(); d(); // this is a 100ms delay, see below for commands. Keyboard.print("www.twitter.com"); // goes to twitter d(); enter(); delay(6000); // delay for browser to load Keyboard.print("This is a test"); // this is what gets posted to twitter, change this to what ever you want d(); Keyboard.set_key2(KEY_TAB); Keyboard.send_now(); enter(); Keyboard.set_key2(0); ledend(); // delay to stop it running again, 9000!!! milli-sec. delay(9000); } void loop() { } // hits enter void enter(){ Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.send_now(); } // LED command for end of script. void ledend(){ digitalWrite(ledPin, HIGH); delay (500); digitalWrite(ledPin, LOW); delay (500); digitalWrite(ledPin, HIGH); delay (500); digitalWrite(ledPin, LOW); } // LED command for start of script void ledstart(){ digitalWrite(ledPin, HIGH); delay (1000); digitalWrite(ledPin, LOW); } // delay 100ms void d(){ delay(100); }
OS X Code
// Automatic twitter poster for OS X, User must be logged into twitter for this to work. // Created by Seshan 30/04/10 1:34 AM int ledPin = 11; void setup() { pinMode(ledPin, OUTPUT); // put this before other led commands or the LED will be dim ledstart(); // lights up when connected delay(3000); // delay for computer ledstart(); // lights up when payload starts // quits the pop up you get on OS X with new keyboards Keyboard.set_modifier(MODIFIERKEY_GUI); Keyboard.send_now(); Keyboard.set_key1(KEY_Q); Keyboard.send_now(); enter(); // hits enter, see below for commands d(); // this is a 100ms delay, see below for commands. spotlight(); // opens spotlight, see below for commands Keyboard.print("Terminal.app"); // types terminal enter(); delay(1000); Keyboard.print("open http://www.twitter.com && killall Terminal"); // thanks to Psychosis for the killall terminal command d(); enter(); delay(4500); Keyboard.print("This is a test"); // this is what gets posted to twitter, change this to what ever you want d(); Keyboard.set_key2(KEY_TAB); Keyboard.send_now(); enter(); Keyboard.set_key2(0); ledend(); // delay to stop it running again, 9 sec. delay(9000); } void loop() { } // hits enter void enter(){ Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.send_now(); } // opens spotlight void spotlight(){ Keyboard.set_modifier(MODIFIERKEY_GUI); Keyboard.send_now(); Keyboard.set_key1(KEY_SPACE); Keyboard.send_now(); } // LED command for end of script. void ledend(){ digitalWrite(ledPin, HIGH); delay (500); digitalWrite(ledPin, LOW); delay (500); digitalWrite(ledPin, HIGH); delay (500); digitalWrite(ledPin, LOW); } // LED command for start of script void ledstart(){ digitalWrite(ledPin, HIGH); delay (1000); digitalWrite(ledPin, LOW); } // delay 100ms void d(){ delay(100); }
-
I don't know if you could tell if it failed or not, but you could easily add a green light when it starts, and yellow light when it's working and a red light when it's done, or something.
-
You could just make it search Terminal.app in spotlight.
Thats what it does...
-
7x11 Issue
in Hak5
It's on iTunes.
-
The law that protects journalists is there to project them from having there equipment being seized to reveal sources, not to protect thieves and criminals, Gizmodo bought a stolen iPhone, Yes it was lost, but the guy that found it had no right to sell it, and did not deal with it properly.
It wasn't a "kid" carrying around the iPhone, and I personally believe Gizmodo deserves anything that happens to them. They released the guys name that lost the phone, and pretty much just ruined his career and life.
Why should Apple release press kits when this may not even be the final version of the phone, it was a prototype.
-
Follow this http://www.pjrc.com/teensy/gcc.html assuming you have the teensy loader, teensyduino and arduino software installed already, not the stuff you have to type in terminal, you need to do that.
-
Thinking about it more, a simple 2 way switch would suffice.
Since the 3 primary target would be Linux, Mac, and Windows. I don't think very many people use BSD or Solaris.
Linux is also out of the picture because it is so protected under Super User privileges. Also I wouldn't want to exploit anything open source; it just doesn't seem right.
So a Mac vs Pc switch would work. Also Macs are very distinguishable by there casing.
It's really just Windows VS no one. Mac's also need user passwords if you want to change anything serious from the terminal, or install anything like key loggers.
-
I think the Devil duckies and Ninja duckies might be too big.
Also, I added more to my first post.
-
Sweet, thanks for the help. :D
The code has been changed. :D
-
Damn, to bad there is no keyboard short cut to open the terminal. Maybe if I tell it to type terminal.app?
-
Yeah there are to many variables with OS X, when you type just "terminal" into spot light does terminal show up?
-
This should open Spot Light It's uses CMD+Space, but since spot lights command can easily be changed or you can even disable spot light all together it may not work.
What it does:
Blinks once when starting the code
Quits any popup that pops up
Opens spot light
Searches and opens terminal
Pings google (this can be changed to what ever you want it to do
CTRL+C to stop anything running
Quits terminal
Blinks twice when it finishes running.
int ledPin = 11; void setup() { pinMode(ledPin, OUTPUT); } void loop() { delay(8000); //LED blinks when code starts digitalWrite(ledPin, HIGH); delay (1000); digitalWrite(ledPin, LOW); // Command key Keyboard.set_modifier(MODIFIERKEY_GUI); Keyboard.send_now(); // Command key + Q to quit any pop ups Keyboard.set_key1(KEY_Q); Keyboard.send_now(); // releases Q key Keyboard.set_key1(0); Keyboard.send_now(); // delay delay(500); // open spotlight Keyboard.set_key1(KEY_SPACE); Keyboard.send_now(); // releases keys Keyboard.set_modifier(0); Keyboard.set_key1(0); Keyboard.send_now(); // open terminal Keyboard.print("terminal.app"); // delay delay(50); Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.send_now(); // delay for termianl to load delay(4000); // enters someothing in terminal Keyboard.print("ping www.google.ca"); delay(50); Keyboard.set_key1(KEY_ENTER); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.send_now(); //time for command to run delay(9000); //stops commands Keyboard.set_modifier(MODIFIERKEY_CTRL); Keyboard.send_now(); Keyboard.set_key1(KEY_C); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.set_modifier(0); Keyboard.send_now(); //quits terminal Keyboard.set_modifier(MODIFIERKEY_GUI); Keyboard.send_now(); Keyboard.set_key1(KEY_Q); Keyboard.send_now(); Keyboard.set_key1(0); Keyboard.send_now(); delay(200); //led blinks twice when code ends digitalWrite(ledPin, HIGH); delay (1000); digitalWrite(ledPin, LOW); delay (1000); digitalWrite(ledPin, HIGH); delay (1000); digitalWrite(ledPin, LOW); delay(900000); }
-
No, the phantom keystroker is this http://www.thinkgeek.com/computing/input/ae83/ There is a thread on phukd here http://www.hak5.org/forums/index.php?showtopic=16061&hl=
-
You can comunicate with HID's, Think force feedback joysticks? Those are HIDs right? But maybe they count as something else :|
-
Yeah my Teensy cost me only $21 shipped. It's not expensive.
-
Yeah I agree it's a good idea, we have moved to digital media, if we don't do something in 50 years there will be nothing left to show of us.
-
Got my teensy, now time to start playing with it, I wish I new C D:
-
-
Ah, Yes, that's the site I was trying to remember, the same one you got the pineapples from, I figured that's probably where you got the ducks from.
-
62.5 keystrokes per second is still incredible fast.
-
What's in side the "USB Rubber Ducky"?
The USB rubber ducky uses a Teensy 2.0. You can order them online here: http://www.pjrc.com/teensy/
How do I use the Teensy?
In episode 503 Darren showed us the basics of a Teensy. Watch that segment here: http://revision3.com/hak5/Service-Unavailable#seek=277:865
What about the connector?
The USB rubber ducky uses a Type-A Male USB to a Mini-B Male USB (Mini-B Not Type-B, could also be called a 5 pin usb) connector, you can find one here http://www.dealextreme.com/details.dx/sku.441 and another one here http://www.dealextreme.com/details.dx/sku.2704 you could find them on eBay, But I prefer Deal Extreme.
What about the ducky!?
You can find your flavor of ducks here http://shop.ebay.com/?_from=R40&_trksi...-All-Categories or at your local brick and mortar dollar store.I want to talk to other people about my love for the USB Rubber Ducky
You are in luck! USB Rubber Ducky has a IRC room at irc.awesomeirc.net #ducky That's the same IRC server that #hak5 uses!I'd like to share my code with everyone!
That's great! Mark your thread tittles withand what OS it is for [Win] [OS X] [linux] , Etc. To make it easier for people to find it!
Example Topic: "[Code][Win] This is my 1337 code" -
Episode 7x09
in Hak5
USB locks, they have them
-
You could probably get show notes from rev3.
-
Damn dude, we are not the only ones who thought the idea was cool.
I think most people want free stuff :P
Microsoft Dipping Into To Google Profits, Apple Busts Iphone Leak Guy
in Everything Else
Posted
Your talking about Apple right? The same company that made people chain down iPad's and have the in a room with no windows, and no cameras where allowed near them? Apple isn't a company to leak stuff. It's actually bad for them, the more hype around a product launch the better, if people already know what it is there will be less hype.