Jump to content
AlucardHao

FileZilla Automatic Dumper

Recommended Posts

Posted

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;
?>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...