Net::PcapWriter perl library for easy creation of pcap files from script instead of capturing data. Useful for testing IDS etc. | my $w = Net::PcapWriter->new('test.pcap'); | my $conn = $w->tcp_conn('1.2.3.4',1234,'5.6.7.8',80) or die; | $conn->write(0,"GET / HTTP/1.0 200 Ok\r\n\r\n"); | $conn->write(1,"HTTP/1.0 12345 ab\r\nContent-length: 0\r\n\r\n");