File2pcap takes any sort of input file and creates a pcap showing this file in transfer by Http/Http2, Ftp(active/passive) or by email(Smtp/Pop3/Imap) in the form of an attachment. The generated pcap includes a full TCP stream from Syn to Fin.

The tool supports both IPv4 and IPv6 as well as various encodings for the email options.