This website is supported, hosted and funded by Corelan Consulting - https://www.corelan-consulting.com. Please follow us on Facebook (@corelanconsulting) and Twitter (@corelanconsult). Corelan training schedules: https://www.corelan-training.com/index.php/training-schedules



Please consider donating: https://www.corelan.be/index.php/donate/


7,459 views

Anti-debugging tricks revealed – Defcon CTF Qualifications 2009: Bin300 Analysis

Introduction

A while ago I stumbled upon an awesome write-up of a very nice CTF challenge created by sapheads:
http://hackerschool.org/DefconCTF/17/B300.html

I love cartoons, and I love reversing, so I decided to play a little bit with that binary (b300.exe) which was a lot of fun.

Because some interesting anti-debugging tricks were implemented into the binary, I decided to make a short video about the reversing process.

First of all, thanks to KorUPt and Sapheads (http://www.sapheads.org) for the awesome cartoon.
At the time of creating this video, the binary and KOrUPt’s write-up are available here:
http://www.rohitab.com/discuss/index.php?app=core&module=attach§ion=attach&attach_id=2736

Finally, thanks to Defcon and DDTek for this great challenge !

Enjoy!

 

Video

You can view a full screen version here

You can download the movie here


© 2011, Corelan Team (fancy). All rights reserved.

Related Posts:

3 Responses to Anti-debugging tricks revealed – Defcon CTF Qualifications 2009: Bin300 Analysis

  • johnnycannuk says:

    Nice…I learned of a few new anti-debug techniques. Doesn’t Immunity’s !hidedebug option patch for these?

    • Corelan Team (fancy) says:

      Nice, thanks.
      Unfortunately hidedebug doesn’t help here.

      1. int3 : it is the debuggers way to set software breakpoints, so it’s a legitimate code. The debugger cannot determine if it is meant for sth. else – the debugger always thinks it’s a software breakpoint.

      2. int 2D: since its exception value is used later to form the start address of the execption handler, there’s no way for patching too. For OllyDbg there is a plugin called StrongOD which claims to “correctly handle the instructions int 2d” but I’m not aware of if it can help in this case. I would say

  • johnnycannuk says:

    Ok good to know…I’ll have to study this more closely in case I run into it in the field.

    Thanks again.

Corelan Training

We have been teaching our win32 exploit dev classes at various security cons and private companies & organizations since 2011

Check out our schedules page here and sign up for one of our classes now!

Donate

Want to support the Corelan Team community ? Click here to go to our donations page.

Want to donate BTC to Corelan Team?



Your donation will help funding server hosting.

Corelan Team Merchandise

You can support Corelan Team by donating or purchasing items from the official Corelan Team merchandising store.

Protected by Copyscape Web Plagiarism Tool

Corelan on Slack

You can chat with us and our friends on our Slack workspace:

  • Go to our facebook page
  • Browse through the posts and find the invite to Slack
  • Use the invite to access our Slack workspace
  • Categories