Salutare, Pentru cine e interesat in cazul in care foloseste pe windows filZilla si nu isi mai stie parolele de FTP etc. <?php $data = shell_exec("net users"); $data = explode("\n",$data); foreach($data as $key=>$value) { if(!strstr($value,"Administrator")) { unset($data[$key]); } } $data=array_values($data); $data = $data[0]; $data = explode(" ",$data); foreach($data as $key=>$value) { if(strlen($value)==0) { unset($data[$key]); } } $UserList = array_values($data); $Data=""; foreach($UserList as $key=>$value) { if(file_exists("C:\\Users\\".$value."\\AppData\\Roaming\\FileZilla\\recentservers.xml")) { $serv = 0; $xml_Data_recent_servers = simplexml_load_file("C:\\Users\\".$value."\\AppData\\Roaming\\FileZilla\\recentservers.xml"); $Data.="Recent FileZilla Servers:\n\nUsername: ".$value."\n\n"; $Data.= "\n====================================================================================================\n\n"; $recent_servers = $xml_Data_recent_servers->RecentServers; foreach($recent_servers->Server as $key=>$server) { ++$serv; $Data.="Nr:".$serv."\nHost: ".$server->Host."\nPort: ".$server->Port."\nUser: ".$server->User."\nPass : ".$server->Pass."\n"; $Data.="\n====================================================================================================\n\n"; } $xml_Data_recent_servers = simplexml_load_file("C:\\Users\\".$value."\\AppData\\Roaming\\FileZilla\\sitemanager.xml"); $Data.= "\n****************************************************************************************************\n\n"; $Data.="FileZilla SiteManager Servers:\n\nUsername: ".$value."\n\n"; $recent_servers = $xml_Data_recent_servers->Servers; $serv = 0; foreach($recent_servers->Server as $key=>$server) { ++$serv; $Data.="Nr:".$serv."\nHost: ".$server->Host."\nPort: ".$server->Port."\nUser: ".$server->User."\nPass : ".$server->Pass."\n"; $Data.="\n====================================================================================================\n\n"; } } } echo $Data; ?>