: Thank you very much for replying to my message in this group. I will be very glad if u give me some hints about virus coding in VB6.
:
: The things that astonises me and I want to learn about are:
:
: 1) How viruses spread from one file to another without damaging it ( I mean without damaging the functionality of the exe or com files)?
:
: 2) Second most important question is, although I have read some articles on virus coading and how they spread in a perticular PC from one file to another, I don't know how actually a virus spreads through the i-net or network. I find it very spooky because its easy to spread a virus within a perticular pc's files but when it comes about spreading from one pc to another in a network, lots of things like security system, proxy server, access authority etc.. etc... are related. So how actually a virus spread in a network?
:
: 3) Finally, as I've mentioned, all the articles I've read were written about how one can write virus in assembly language (althouth I did not understood all of it, just managed to understand 70%). So my question is, is it really possible to code a virus in VB6? (a real one that will have the ability to spread through net).
:
: Thanks again for replying to my message, and hope to hear from u soon. I want to mention again that the knowledge will be strictly used for educational purpose. If someone wants to let me know something on this matter and don't want all other to get this infomations then you can contact me in the following e-mail account.
:
: rana_mailbox@yahoo.com
:
:
: _____________________________________________________________________________
: Knowledge Is Power. Be Sure To Use This Power For Others WelFare. (;->
:
:
Just a little tip before I begin: do not ever post your email address on a forum; this will get you loads of spam. Instead, use something like rana (UNDERSCORE) mailbox [At] yahoo.com
Now, to enter your questions:
1. What a virus does to infect another executable, is paste its own code (not VB code, but exec code), minus the RET call, inside the program it's trying to infect. Because VB requires so much different dll imports and such, it is impossible to do this, unless you know absolutely sure what you are doing. It requires some unlovely hex editing I advise you to stay away from.
2. Virii tend to spread in several ways:
- Infecting P2P attractive files, like cracks and such
- Mailing themselves to every email address found on the computer
- Using exploits to attack other computers
3. Hypothetically, yes. Practically, no. If you really want to code something quick, clean and feisty, try a "real" language, like C++, Java, Python, even PHP. Or, if you are willing to dedicate the rest of your life and probably your afterlife, start learning ASM.
EtHeO out...