I've been wanting to dive into C++ and its OOP ways lately, and I came accross something called quines. A quine is a program that is able to print its own source code onto either the console or a file. While this would be very simple in an interpreted language like Perl, in compiled languages it would be pretty hard.
So for my question: Malware wouldn't be able to use this technique, as the source code would have to be compiled (and you don't know if the victim as a compiler installed). Therefore, there must be an easier way to do it. Having the program open, read, and then print itself again is the first that comes to mind, but does anyone here know if that's the easiest or most common method?
Not condoning viruses or anything... i run Windows, so the fewer the better




