Results 1 to 4 of 4

Thread: PHP Virus

  1. #1
    Junior Member
    Join Date
    Sep 2001

    PHP Virus

    Can a virus be embedded in a PHP code.

  2. #2
    Senior Member
    Join Date
    Aug 2001


    Short answer: Yes

    Long answer: By the loose definition of a virus, yes, you can make a PHP script that, for example, will go through every other PHP file on your computer and tack on the virus code to it. In fact, there are 2 viruses that do exactly that. Here is one: http://www.europe.f-secure.com/v-descs/neworld.shtml

    The thing is, though, these kinds of things are easy to detect. Just edit your PHP files and look for anything strange that wasn't in there when you made it. It is also nice, because unlike compiled viruses, you can usually pretty easily see what the virus could have or has already done making it easy for cleanup.
    \"If you torture the data enough, it will confess.\" --Ronald Coase

  3. #3

    Re: PHP Virus

    Originally posted by deenx
    Can a virus be embedded in a PHP code.
    In fact, if you mean that "can my computer used as a web client be infected by a PHP virus", the answer is as far as I know no.

    PHP is a scripting language that is executed on the server, not on the client. So, no risks for the client.


  4. #4
    Join Date
    Aug 2001

    just an update

    keep in mind tho, that php possesses the ability to create html files in a sense. (i think its the writef function? not sure) anyways, that means that any other exploit or "virus" can be coded in php, even perhaps scrambled ina variety of characters and such, so that it will generate a harmful page.
    visit clublouie.com!!

Posting Permissions

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