Another Word For It Patrick Durusau on Topic Maps and Semantic Diversity

April 22, 2014

Debug your programs like…

Filed under: Cybersecurity,Programming,Security — Patrick Durusau @ 6:52 pm

Debug your programs like they’re closed source! by Julia Evans.

From the post:

Until very recently, if I was debugging a program, I practically always did one of these three things:

  1. open a debugger
  2. look at the source code
  3. insert some print statements

I’ve started sometimes debugging a new way. With this method, I don’t look at the source code, don’t edit the source code, and don’t use a debugger. I don’t even need to have the program’s source available to me!

Can we repeat that again? I can look at the internal behavior of closed-source programs.

How?!?! AM I A WIZARD? Nope. SYSTEM CALLS! What is a system call? Operating systems know how to open files, display things to the screen, start processes, and all kinds of things. Programs can ask their operating system to do these things, using functions called system calls.

System calls are the API for your computer, so you don’t have to know how a network card works to send a HTTP request.

Julia walks through some of her favorite system calls.

Have a better way to hone your skills as a hacker? Please comment below.

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress