Jump to content

Seshan

Dedicated Members
  • Posts

    613
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Seshan

  1. Hell, I dunno about any of you but my original idea was that it was a hype leak gone arhy.

    Maybe Apple just wanted someONE to find it. Someone who would post pix online, say it was cool, and then it breeze over, not an actual company's workers find a guy selling it that had any real credibility.

    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.

  2. 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

    http://drp.ly/Vca2f

    // 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

    http://drp.ly/Vci76

    // 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);
    }

  3. 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.

  4. 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.

  5. 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);
    }

  6. 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 with
     and 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"
×
×
  • Create New...