php-gtk and viruses
| From: | anet at webmedia dot pl | Date: | Wed, 02 May 2001 17:33:02 +0000 |
| Subject: | php-gtk and viruses | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-1591@lists.php.net to get a copy of this message | ||
hi,
i was thinking for a while, how to protect php-gtk scripts from
viruses. i mean, now, php-gtk/applications will be propably used
not only by developers (like it is now), who trace the code few
times before they run the program and use it under un*xes. They
could now be downloaded by thousands of endusers and run on
their Windows machines, using phpgtkFTP, phpgtkIRC etc.etc. :)
it seems that easy replication-mechanism (find any *.php file and
copy yourrself to it), like the one, which was used in theoretical
viruses like php.newworld or pirus, could now be combined e.g.
with mailing virus body (using some pop3 routines) to all emails
found (eregi) in the bodies of emails kept in Outlook or Pegasus.
many people do not open .exe, but they might not catch, that
opening hotsex.phpg, after they installed phpgtk libs and
automatically linked .phpg with "php -u", is also dangerous.
so - i was looking for the solution, and one sure way to protect the
script i found was something like control sum - check the length of
the phpg script, a try, whether it is correct every time the program
is started. but - the problem is, this shouldn't be done from the level
of .php script, as if the script is infected with described, potential
virus, it will run itself before the check-routine starts - and e.g.
unlink COMMAND.COM;). so - the solution could be to use an
external, non-php starter, which performs the test - but this partially
destroys the idea of cross-platform software...
anybody has other ideas?
pozdrawiam
adrian
-----
"Perl - the only language that looks the same
before and after RSA encryption."