Simple virus check

Discussion in 'Questions (Windows Mobile)' started by kolbe, Jul 12, 2009.

  1. kolbe

    kolbe Active Member Licensed User

    One of my executables for the PC was infected by a virus. That started me thinking, is there a way to detect that the exe was infected. I'm thinking along the lines of just a warning to the user that the file may be infected by a virus and doing an appclose. A files size check and name check is a start but are there any byte strings I can check for in the executable to verify that the exe remains more or less as it was compiled? I imagine most viruses are smart enough not to change the file size of the file they are infecting.

    Thanks
     
  2. moster67

    moster67 Expert Licensed User

  3. kolbe

    kolbe Active Member Licensed User

    Good idea, I'll give that a try. Thanks
     
  4. LineCutter

    LineCutter Active Member Licensed User

    You can use the cryptoEx library to calculate the hash value.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice