Necessity is the mother of invention.
i was in the need of some pcap files of irc bot infected machines, unfortunatly they are not so easy to get. thus, i decided to write a little tool which automatically generates pcap traces for submitted samples.
the tool is devided into two parts. the first part is a little windows tcp server, capable of receiving binary data and executing it. this part runs in a virtual machines running windows as operating system. the second part is a short python script running on a linux host outside the virtual machine. it takes binary files from a directory and transmits them one by one to the virutal machine. while the virtual host runs the submitted binary the python script captures the network traffic and constructs the pcap file. after a predefined timeout, the python scripts sends a revert to snapshot to the virtual machine and sends the next binary.
as a result i have a little tool to automatically construct pcap files of infected machines running for a configurable time. currently i am constructing pcaps of malware running 5 minutes on the virutal machine.