Ok, first, let me get this straight:

I am not planning on writing a virus/trojan/worm or any other type of malacious piece of code. I'm asking out of sheer curiosity and interest, and one of those projects that you always get in the back of your head...




Anyway, how do they work, and what's their syntax like? I'm not asking to be lead to a site with a quote saying that they imbed themselves in memory and then start sending copies of themselves to other people, etc etc. What I want to know is what their guts(syntax) look like. And this is for interest and a project idea for the halting of their actions.