Skip to main content

Posts

Showing posts from November, 2009

My notes from Gray Hat Python book

I've picked up the book Gray Hat Python by Justin Seitz and although it's not exactly an introductory book, I think even python or security noob can find some some pretty cool stuff that would make it worth the price. I've decided to use this blog as a note book for a quick reference later in the next more advanced chapters if I need to. Much of the stuff included in these notes below, I learned before in Assembly language class years ago, but I haven't played with assembly in a while, and I wish I had taken easily accessible notes to jog my memory. The following is just basic CPU architecture taken from chapter 2: In the x86 instruction set, a CPU uses eight general-purpose registers: EAX, EDX, ECX, ESI, EDI, EBP, ESP, and EBX. The registers are small pieces of storage designed for for quick access by CPU. The eight general-purpose registers have specific roles and are designed to enable to CPU to efficiently process instructions. The EAX register: This register is...