Thursday, January 19, 2012

Remove eval(base64_decode) virus from your server or from website site

Given code below will remove this eval(base64_decode) virus from your website or server you have to save the file by name
and run the file on your server it display all the directory file when you run after successful run it remove the the given virus from site

Please check the same code in $str available on your site if other kindly replace that or dont use.

function listdir($dir='.') { 
if (!is_dir($dir)) { 
return false; 

$files = array(); 
listdiraux($dir, $files); 

return $files; 

function listdiraux($dir, &$files) { 
$handle = opendir($dir); 
while (($file = readdir($handle)) !== false) { 
if ($file == '.' || $file == '..') { 

$filepath = $dir == '.' ? $file : $dir . '/' . $file; 
if (is_link($filepath)) 
if (is_file($filepath)) 
$files[] = $filepath; 
else if (is_dir($filepath)) 
listdiraux($filepath, $files); 


$files = listdir('.'); 
sort($files, SORT_LOCALE_STRING); 

foreach ($files as $f) { 
echo $f, "
/*$file = $f; 
$rep =''; 
if($f == 'remove_in_dir.php' || $f == 'remove.php' || $f == 'list_files.php' ){}else 

$fh = fopen($file, 'r+'); 
if(filesize($file) == 0) {} else 

$contents = fread($fh, filesize($file)); 
$new_contents = str_replace($str, $rep, $contents); 


// Open file to write 
$fh = fopen($file, 'w+'); 
fwrite($fh, $new_contents); 




  1. specialty pharmacy trends 2006 nj pharmacy registry

  2. greetings admin discovered your website via search engine but it was hard to find and I see you could have more visitors because there are not so many comments yet. I have discovered website which offer to dramatically increase traffic to your website they claim they managed to get close to 1000 visitors/day using their services you could also get lot more targeted traffic from search engines as you have now. I used their services and got significantly more visitors to my website. Hope this helps :) They offer most cost effective backlinks Take care. Jason

  3. We hope that you will use this guide and adapt it to your own version of your perfect day, filling it with nourishing, nurturing thoughts, feelings and experiences that empower and uplift you. Just a smidgeon. It is also used to lower high cholesterol, treat arteriosclerosis and overweight problems. [URL= ]snowslides[/URL] In terms of data security, many businesses that face a lot of troubles can easily trace and configure their systems by cloud computing. Jerky is a food item originally from South America.

  4. $about = get_page_by_title( 'My page' );
    update_option( 'page_on_front', $about->ID );
    update_option( 'show_on_front', 'page' );


  6. I fοr all tіme emailed this blog post pagе to аll my frienԁs,
    since if like to rеad it afteг that my сontactѕ will too.

    Fеel fгee to surf to my homepagе -