First cut at a sniffer.

Needs work but it's better than bawolff's `nc` loop.