开发者

put stream from tcpdump into an array - which python version should i use?

i want to use python in combination with tcpdump to put the generated stream from tcpdump into a more readable way. There are some fields in the streams with interesting values.

I found some stuff here at stackoverflow regarding python and tcpdump but in my mind the best way is to 开发者_高级运维put it in an array.

After this is done i want to read some fields out of the array, and than it can be cleared and used for the next network frame.

Can somebody give me some hints, how this can be done?


You can use the python libpcap library to capture network packets directly from python :).


You can try using Scapy sniffing function sniff, append the captured packets to a list and do your extraction process.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜