May 21, 2009 at 09:21 AM | categories: python, psa | View Comments

So, pcapy is a great, simple library to interface with libpcap. It works well for reading live packets and dump files. There's only one problem: there is no way to modify or create a struct pcap_header from Python code. So there's really no way to add data to the packets and add them to a dump file.

View a Certificate

May 20, 2009 at 11:10 AM | categories: tips | View Comments

Yet another command I'll never remember unless I write it down. Here's how to view a certificate. In my case I was viewing a certificate that Mutt had stored:

openssl x509 -in .mutt_certs -noout -text