I want to capture the packet using pyshark. but I could not capture the packet on windows 7.
this is my python code
import pyshark
def NetCap():
print 'capturing...'
livecapture = pyshark.LiveCapture(interface="eth0", output_file='./test.pcapng')
livecapture.sniff(packet_count=10)
print 'end of capture.'
print livecapture
if __name__ == "__main__":
NetCap()
this is result
capturing...
end of capture.
<LiveCapture (0 packets)>
Livecapture is 0 packets. I don't know what is the matter. please help me.