Learning to read source code for n00bs – Day 2

by Security Dude

Steps that I took to learn to read the code:

  • I created a “Table of Contents” to visually see the straw man of the file.
  • I used pdb to step into and out of each of the functions and enumerate the logger object.
  • I used the print statements to enumerate variables and look at their state.
  • I followed the function calls, parameters, and looked up docs online.

Inception – “Dream within a Dream”. Screenshot below demonstrates stupidity. I’m trying to execute OPT on OPT code. System is clearly not happy with me and the exception gets caught. Now is the question of how stupid I’m going to be trying to get the code to run.



GREP, AWK, SED, ED, Basic Regular Expressions