This book teaches excellent hacking techniques. Everything is build from scratch (c/assembly) so you get to understand things like buffer overflows to the core.