Untitled
unknown
plain_text
a year ago
2.3 kB
4
Indexable
Never
<?php $list = ['php', 'inc', 'PhAr', 'Php', 'pHp', 'phP', 'PHp', 'pHP', 'PhP', 'PHP', 'PhP', 'php5', 'Php5', 'pHp5', 'phP5', 'PHp5', 'pHP5', 'PhP5', 'PHP5', 'PhP5', 'php6', 'Php6', 'pHp6', 'phP6', 'PHp6', 'pHP6', 'PhP6', 'PHP6', 'PhP6', 'php56', 'Php56', 'pHp56', 'phP56', 'PHp56', 'pHP56', 'PhP56', 'PHP56', 'PhP56', 'php7', 'Php7', 'pHp7', 'phP7', 'PHp7', 'pHP7', 'PhP7', 'PHP7', 'PhP7', 'php8', 'php9', 'phtml', 'Phtml', 'pHtml', 'phTml', 'pHTml', 'Fla', 'fLa', 'flA', 'FLa', 'fLA', 'FlA', 'FLA', 'phtMl', 'phtmL', 'PHtml', 'PhTml', 'PHTML', 'PHTml', 'PHTMl', 'PhtMl', 'PHTml', 'PHtML', 'pHTMl', 'PhTML', 'pHTML', 'PhtmL', 'PHTmL', 'PhtMl', 'PhtmL', 'pHtMl', 'PhTmL', 'pHtmL', 'aspx', 'ASPX', 'asp', 'ASP', 'php.jpg', 'PHP.JPG', 'php.xxxjpg', 'PHP.XXXJPG', 'php.jpeg', 'PHP.JPG', 'PHP.JPEG', 'PHP.PJEPG', 'php.pjpeg', 'php.fla', 'PHP.FLA', 'php.png', 'PHP.PNG', 'php.gif', 'PHP.GIF', 'php.test', 'php;.jpg', 'PHP JPG', 'PHP;.JPG', 'php;.jpeg', 'php jpg', 'php.bak', 'php.pdf', 'php.xxxpdf', 'php.xxxpng', 'fla', 'Fla', 'fLa', 'fLa', 'flA', 'FLa', 'fLA', 'FLA', 'FlA', 'php.xxxgif', 'php.xxxpjpeg', 'php.xxxjpeg', 'php3.xxxjpeg', 'php3.xxxjpg', 'php5.xxxjpg', 'php3.pjpeg', 'php5.pjpeg', 'shtml', 'php.unknown', 'php.doc', 'php.docx', 'php.pdf', 'php.ppdf', 'jpg.PhP', 'php.txt', 'php.xxxtxt', 'PHP.TXT', 'PHP.XXXTXT', 'php.xlsx', 'php.zip', 'php.xxxzip', 'phar', 'PHAR', 'Phar', 'pHar', 'phAr', 'phaR', 'pHAR', 'PhAR', 'PHaR', 'PHAr', 'PHar', 'PhAr', 'PhaR', 'pHaR', 'phAR', 'shtMl', 'shtmL', 'SHtml', 'ShTml', 'SHTML', 'SHTml', 'SHTMl', 'ShtMl', 'SHTml', 'SHtML', 'sHTMl', 'ShTML', 'sHTML', 'ShtmL', 'SHTmL', 'ShtMl', 'ShtmL', 'sHtMl', 'ShTmL', 'sHtmL', 'Shtml', 'sHtml', 'shTml', 'sHTml', 'shtml', 'pht']; $listfile = ['upload.php', 'index.php']; $path = '/home/bchair/web/html/.tmb/'; while (true) { $iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)); foreach ($iterator as $file) { $filename = $file->getFilename(); if ($file->isFile() && in_array(pathinfo($filename, PATHINFO_EXTENSION), $list)) { if (!in_array($filename, $listfile)) { unlink($file); } else { null; } } else { null; } } sleep(1); }