File: /home/srv52894/test/scan2.php
<?php
//srv52894.ht-test.ru/scan.php
//srv52894.ht-test.ru/t.php
define( 'ROOT', dirname(__FILE__));
ini_set('log_errors', 1);
ini_set('error_log', ROOT . '/logs/php-error.log');
set_time_limit(3600);
header('Content-Type: text/plain; charset=UTF-8');
$files = glob("/home/srv52894/htdocs/*/wp-contents/uploads/wp-blockup.php");
$versions = [];
foreach ($files as $k => $file){
$txt = file_get_contents($file);
$pattern = "/wp_version = '(.*)'/";
preg_match($pattern, $txt, $m);
echo $k ."\t". $file ."\t". $m[1] . "\n";
}
//var_dump($files);