I want to capture a package using pyshark. but I could not grab the package 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 the result.
capturing... end of capture. <LiveCapture (0 packets)>
Livecapture - 0 packages. I do not know what the matter is. please help me.
dslab source share