View RSS Feed

SamratAshok

Teensy USB HID for Penetration Testers - Part 1 - Introduction and Arduino Install

Rating: 2 votes, 2.50 average.
Hi All,

This is my first post to Garage, please bear with mistakes. I will write a series of posts which will also be posted on my blog.

My first blog post after two back to back awesome conferences Black Hat Europe and Troopers. At Black Hat Europe I conducted a workshop called Teensy Programming for Everyone. The workshop was well recieved by most of the participants. But I found that many of them found it difficult to setup Arduino for usage with Teensy and other basic stuff. So keeping in mind my upcoming trainings at Shakacon and GrrCON I am starting this series of blog posts which during initial posts will detail the basics of Teensyduino installation, structure of sketches and usage of Teensy. In later posts, I will cover Kautilya and its usage. So let's get started.

Teensy is a programmable USB HID from nice guys at pjrc.com. I use Teensy++ (which is an improved version of Teensy) in Penetration Tests for its ability to be used as a programmable keyboard. To start with, this is how you can install Arduino with Teensyduino:


For Windows (Tested on Windows 7 and XP) as an Adminsitrator

1. Download Arduino for Windows.

2. Extract the zip archive.

3. Download Teensyduino for Windows which is a plugin for Arduino. We require this to add support for Teensy in Arduino.

4. Download Windows Serial Installer

5. Run the the downloaded Serial Installer. You will get a warning as the driver is not signed by Microsoft. Accept it and continue with the installation.

Name:  Teensy USB HID for Pen Testers_2012-04-03_23-04-06.jpg
Views: 679
Size:  22.2 KB


6. Run the Teensyduino, it will check for installed serial driver.Provide the path for the folder where Arduino has been extracted, the "Next" button will be activated only if a Arduino is found at the provided location.

Name:  Teensyduino 1.07 Installer_2012-04-03_23-09-24.jpg
Views: 620
Size:  19.5 KB

You can choose more libraries to install on the next screen. You can choose to install none, Teensy does not require them.

Name:  Teensyduino 1.07 Installer_2012-04-03_23-11-41.jpg
Views: 618
Size:  19.8 KB

7. Now you should see more options in Arduino.

Name:  sketch_apr03a  Arduino 1.0_2012-04-03_23-14-29.jpg
Views: 613
Size:  18.6 KB


For Linux (Tested on Backtrack 5)


1. Download Arduino for Linux.

2. Extract the zip archive.

3. Download Teensyduino 32bit or Teensyduino 64bit depending on your OS. We require this to add support for Teensy in Arduino.

4. Download udev rules. This is required to use Teensy as non root user.

5. Install udev rules

Code:
sudo cp 49-teensy.rules /etc/udev/rules.d/
6. Run the Teensyduino, provide the path for the directory where Arduino has been extracted.

Name:  BT5 - VMware Player_2012-04-04_00-11-30.jpg
Views: 771
Size:  17.3 KB


7. Now you should see more options in Arduino.

This is it for the first post. Please leave comments and feedback.

Updated 04-05-2012 at 01:33 AM by SamratAshok (For fixing broken links)

Tags: None Add / Edit Tags
Categories
Uncategorized

Comments

  1. AnArKI's Avatar
    Thanks mate for posting..........
  2. SamratAshok's Avatar
    Anytime bro. My pleasure to share this at Garage
  3. Luis_Santana's Avatar
    good one man ... work perfect ...thank you

Trackbacks

Total Trackbacks 0
Trackback URL: