Tshark manual5/17/2023 I would like to invoke the function I wrote for capture: def wire_cap(ip1,ip2,op_fold,file_name,duration): # invoke tshark to capture traffic during sessionĬmd='"tshark" -i 1 -P -w '+ op_fold+file_name+'.pcap src ' + str(ip1) + ' or src '+ str(ip2)Ĭmd='"tshark" -i 1 -a duration:'+str(duration)+' -P -w '+ op_fold+file_name+'.pcap src ' + str(ip1) + ' or src '+ str(ip2) ![]() ![]() I would like to do a packet capture using tshark, a command-line flavor of Wireshark, while connecting to a remote host device on telnet.
0 Comments
Leave a Reply. |