thinkst : thoughts...

Tuesday, June 12, 2012

The lamest hacks

A little while back, a colleague of a colleague approached me with a favour request that was hard to refuse (no, not that kind...) They had one of these external harddrives that supports on-drive encryption and, as you will have guessed, had forgotten the password. No more saved business docs, but also no more saved baby pics. "Could we have a look?", they asked. A brief search online revealed companies who claim to be able to recover passwords for these very drives, but required shipping the drive from South Africa to Europe, and the cost was not instantly dismissible. Surely there was another way?

Automating password entry was easy enough; when powered on, the drive's password entry dialog popped up and it was simple to drive the GUI and enter passwords. However, the slight hiccup was that, after five password guesses, the drive needed to be powercycled to reset the guess counter. One of my many failings is a distinct lack of basic electronic experience, and even being able to switch a relay from a computer borders on magic in my eyes. Enter a good friend, Alex Schutz, resident mechatronic engineer at eDart Slurry Valves and go to electronics guy. He quickly whipped up a rig that used a USB extension cable with one of the power lines spliced through a relay controlled by a programmable board, that was driven through a serial interface. From the controlling laptop, enabling HDD power was as simple as "echo b > COM3" and cutting the power was "echo a > COM3".

With this test rig built, the project then went dormant for a bunch of reasons. Last week we were asked for the drive back, but Alex was determined to give it one more go. Cue final polishing and the production of passwords based on the user's common password combinations, and the brute-force was ready to run. If you've run a brute-force before, you'll know the success case isn't always immediately obvious. We know what a failed password attempt looks like, but detecting a successful password attempt without ever seeing one is trickier. Instead, we took the simpler approach of grabbing a screenshot after each attempt, for subsequent analysis.

The rig looked like this:


The comforting sound of the relay firing followed by the visual feedback of the password dialog being attacked was the source of much happiness.

In the end, the password was guessed correctly on about the 500th attempt, which made up for the effort that went into the test rig. Cue happy colleague of colleague, and the satisfaction that comes from a dirty dirty hack.

15 comments:

  1. Is that the UCT GT16 dev board I see on the desk?

    ReplyDelete
  2. Yup, sure is :-)
    Good to see it being used out there.
    Samuel

    ReplyDelete
  3. @anon yep, thanks to Alex's treasure trove.

    ReplyDelete
  4. Good job, what did you use to insert passwords in the gui?

    ReplyDelete
  5. How much time it took?

    ReplyDelete
    Replies
    1. Project died for a few months for various reasons, and we struggled with a dodgy USB hub for a while. In total? Probably longer than it should have :) (4 or 5 evenings)

      Delete
  6. Ahh, Good to see all those LED ports on the GT16 also being used (and I'm sure its some awesome looking chaser effect!).
    Rock on Mr. Ginsberg!

    ReplyDelete
  7. scaring does it mean even hardware encryption is not so bullet-proof ?

    ReplyDelete
  8. after reading this post about testing i am sure that i have not much knowledge about my field in Penetration Testing.

    ReplyDelete
  9. Excellent blog you have here but I was wondering if you knew of any community forums that cover the same topics talked about in this article? I'd really like to be a part of group where I can get opinions from other experienced individuals that share the same interest. If you have any suggestions, please let me know. Thanks a lot!

    ReplyDelete
  10. I am happy to be here because this is a very good site that provides lots of information about the topics covered in depth. I’m glad to see that people are actually writing about this issue in such a smart way.

    ReplyDelete
  11. I am overwhelmed by your post with such a nice topic. Usually I visit your blogs and get updated through the information you include but today’s blog would be the most appreciable.

    ReplyDelete
  12. I am happy to be here because this is a very good site that provides lots of information about the topics covered in depth. I’m glad to see that people are actually writing about this issue in such a smart way.

    ReplyDelete
  13. i have no words to thank you for these free amazon gift card hacks
    amazon gift card code

    ReplyDelete

 
home | blog | contact us | Copyright 2014 - thinkst.com