how do viruses add their code to an exe file?
Results 1 to 3 of 3

Thread: how do viruses add their code to an exe file?

  1. #1
    Banned
    Join Date
    Dec 2003
    Posts
    138

    how do viruses add their code to an exe file?

    Hi.
    I've always wondered how viruses can add their code to an exe file,i mean,when a virus is running,it itself is an exe file..so how does it add its code to another exe file?at the time a virus is running,its code is in binary form..how can you program a virus to add its binary code to another exe file?from the research i've done about it,it has something to do with the headers of an exe file?

  2. #2
    AO Curmudgeon rcgreen's Avatar
    Join Date
    Nov 2001
    Posts
    2,716
    I came in to the world with nothing. I still have most of it.

  3. #3
    Super Moderator: GMT Zone nihil's Avatar
    Join Date
    Jul 2003
    Location
    United Kingdom: Bridlington
    Posts
    17,192
    Hi,

    Pick a small .exe file and copy it as a .txt file, then open it in wordpad....................you will see that it is NOT binary.

    The viral code just adds itself to the .exe and gets run as part of that set of program instructions, just as if you wrote a program then added some intructions later on to make it do things differently from, or as well as, the original program.

    Remember that a lot of older .exe/.com viruses just deleted an existing program and renamed themselves as that program, so when it was called, the virus not the genuine program got launched...............AVs would report them as "uncleanable" because the program was now pure virus code.

    Hope that helps
    If you cannot do someone any good: don't do them any harm....
    As long as you did this to one of these, the least of my little ones............you did it unto Me.
    What profiteth a man if he gains the entire World at the expense of his immortal soul?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides