Network traffic monitor with pcapy in python

别说谁变了你拦得住时间么 提交于 2019-11-29 15:48:33

Use a filter to capture only the useful tcp streams, ftp-data :

port ftp-data

I suggest also to capture in promiscous mode, only the packet headers ( you don't need the full data to know the length ):

open_live( device, 4096, True, 100 )

In your handler, it is correct to use header.getlen().

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!