I'm awful partial to:

Exploiting Software by Hoglund and McGraw

As well as the Stealing The Network books published by Black Hat