conpot
conpot copied to clipboard
Investigate using wireshark to dissect protocols
Wireshark has powerful dissectors for many of the protocols of interest to us. There are a couple of libraries to interface with wireshark: https://github.com/KimiNewt/pyshark and https://github.com/lukaslueg/wirepy
Cool, so there's no even need to wrap the C code directly?
If you can feed them the proper data from inside Conpot I assume your assumption is true :)
I don't think calling tshark for every packet is a good idea, anyway this could work: https://github.com/KimiNewt/pyshark/blob/master/src/pyshark/capture/inmem_capture.py#L69
LGTM. You might be able to tie this to our session handler to have a packet consumer per active session.