python - Pyshark interfaces in Live Capture -
i need capture live packets more 1 interface using live capture module in pyshark. cap=pyshark.livecpature(interface='eth0')
how can add 1 more interface using live capture. ex: need capture packets interfaces eth0 , eth1.
thanks in advance.
there's no way directly in constructor @ moment in pyshark, can do:
cap = pyshark.livecapture() cap.interfaces = ['eth0', 'eth1'] this should work. i've opened issue in pyshark repo add feature.
Comments
Post a Comment