James Bond's Dry Erase Marker: The Hotel PenTest Pen

Darth BeaverDarth Beaver Meine Ehre heißt Treue
edited October 2012 in Tech & Games
You may have seen the talk and demonstration by Cody Brocious that allows him to open an Onity hotel room door lock with an Arduino, which is totally James Bond. However, wouldn't it be even better if someone was able to get it down to the size of a marker or pen? Working as a pentester for Trustwave SpiderLabs, I have access to many different pens, I have blue pens, red pens, green pens, and even the normal boring black pens. Most of these write just fine, and I sometimes wonder why I'm getting paid to test them, but I digress. While the initial idea was to get everything working inside a pen, it quickly became apparent that we wouldn't be able to do it right away. So instead we opted to get it inside of a dry erase marker.

I'm not going to get into the technical details of how this hack works, or why it works. Cody does a great job on his own site over at http://demoseen.com/bhpaper.html. So if you have any questions about the hack itself or the details, it is best to ask him, as he is the one who discovered this. I only made the device smaller. :)
Now that we have our goal, we needed to gather supplies. In order to build and test all of this yourself you will need the following:

  • 1 Arduino (Almost any kind works, Cody used a Arduino Mega 128)
  • 1 DC barrel jack, 5mm outer diameter, 2.1mm inner diameter
  • 1 5.6k resistor
  • 1 Onity Door lock

I already had the door lock from a previous eBay purchase that I may or may not fully remember. The next step was getting an Arduino. This part wasn't too hard either since every hacker and their grandmother should have about 50 of these laying around. I just so happen to have one from "The Worlds Number 1 Hacker" contest a few years back that I won at DEF CON. And the barrel jack and connector I had laying around.

With the parts listed above I was able to build the Arduino circuit and load up the Arduino sketch that Cody provided at http://demoseen.com/bhpaper.html. Testing that it worked was as easy as plugging in the barrel connector and waiting for the green light on the lock to light up. Now that I knew this was working, it was time to build the working prototype that would fit in a dry erase marker.

I went over to the local hacker space to get some help with the circuit diagram from my friends Josh Krueger and Jordan Bunker. We knew that we needed a crystal to have correct timing for the code to work and unlock the door. We also needed to supply the Arduino with about 3-5 volts, and the digital 3 pin with 3.3v for the one-wire serial to work. Getting the circuit this small isn't that much of a hassle, but it can be a bit of a pain doing it with limited parts on hand. After a bit of back and forth on the design we agreed on the following parts to complete the project that night. This is by no means the best solution or the only solution to make this fit into a pen, but for what we had available and with the time we had to do it, it's what we were able to come up with.

The parts we used to complete this build are the following:

  • 1 ATMega328 (pre-loaded with the sketch)
  • 1 5.6k resistor
  • 1 30 ohm resistor
  • 1 16Mhz Crystal
  • 1 3.3v Zener diode
  • 1 A23 12V Battery
  • 1 SPST tall mini push button (momentary on)
  • 1 DC (coaxial) barrel connector, 5mm outer diameter, 2.1mm inner diameter
  • 1 Protoboard 1-3/4in. X 1-1/2in

If you follow the diagram below you should be able to built and create your own hotel door opener pen.

Your finished product should look something like this.



And then because everyone loves a video demo, here is the marker in action with my hotel door lock.


  • RemadERemadE Global Moderator
    edited October 2012
    Some bastard actually used this on a mate of mine in Edinburgh. His car, iPad, iPhone, wallet (plus his Brother's phone and wallet) were gone on top of the mini bar contents.

    Oh, and his car, which was found burnt out in a golf course bunker the next morning.
    Why was he in Edinburgh?
    His Nan died. Fucking harsh, but the Court Case is pure lulz.

    It does work, people. Believe. Also so does making friends at the Hotel if you like a bit more of a social spin to it in my experience (of doing pranks only).
  • Darth BeaverDarth Beaver Meine Ehre heißt Treue
    edited October 2012
    I posted this hoping Dak will make one and post pics.
  • DaktologistDaktologist Global Moderator
    edited October 2012
    It would be easy enough to build but I have no way to test it to see if it works unfortunately.
  • Darth BeaverDarth Beaver Meine Ehre heißt Treue
    edited October 2012
    You could mail it to me and I could test it out at the Seminole Hard Rock.
  • MarineBoatMarineBoat Regular
    edited October 2012
    If I was gonna build that I'd probably replace the zener regulator with a 78L33. There's no way in hell you're gonna get acceptable battery life with that zener regulator.
Sign In or Register to comment.