@conf.commands.register
def wireshark(pktlist):
 f = get_temp_file()
 wrpcap(f, pktlist)
 subprocess.Popen([conf.prog.wireshark, '-r', f])

@ conf . commands . register def wireshark ( pktlist ) : f = get_temp_file ( ) wrpcap ( f , pktlist ) subprocess . Popen ( [ conf . prog . wireshark , '-r' , f ] )
run wireshark on a list of packets .