Simulating a virtual worm inside a computer