3 ms·
Good stuff. I have been using pcapy library from Python. It wraps libpcap has a bpf compiler and a filter that checks packets against it. Then using dpkt libra
by rdtsc 12y ago
Good stuff.
I have been using pcapy library from Python. It wraps libpcap has a bpf compiler and a filter that checks packets against it. Then using dpkt library to parse pcap format (and other typical stuff inside - ethernet/tcp/udp).
Having been wondering if there is way to use wireshark's plugins. They have plugins for so many protocols (including DNS). I haven't tried it though.
- majke 12y agoYeah, there was something with "pcapy" I didn't like, I don't remember what though. Anyway "pcappy" is pure-python and fairly simple. It is a tiny bit buggy, but what isn't :) Finding a python pcap bindings is the least of my worries. Dpkt is great, but also sizeable. For the "parsedns" we needed something straightforward, self contained and easily hackable. The least abstractions the better. Interesting idea with the wireshark plugins!