FileZilla stores the recently accessed servers passwords inside XML file, So I've made this script to parse that XML file and display the password in CMD window or export it to file.

#!/usr/bin/perl use strict; use warnings; use XML::Simple; print "What do you want to do: \n"; print "1 - Display Stored Passwords\n"; print "2 - Export stored passwords\n"; print "3 - Exit\n"; chomp(my $OPTION = <STDIN>); while ($OPTION !~m/^[123]$/) { print "Wrong option selected, Please choose 1, 2 or 3: "; chomp($OPTION = <STDIN>); } if ( $OPTION == 3) { exit; }elsif ( $OPTION == 2 ) { print "Enter file name: "; chomp(my $File = <STDIN>); if (-e $File ) { print "File already exists, replace it? [Y,N]"; chomp(my $Answer = <STDIN>); while ($Answer!~m/^[YyNn]/) { print "Please answer Yes or NO: "; chomp($Answer = <STDIN>); } if ($Answer=~m/^[Nn]/ ) { exit; } } my @Passwords = ShowPasswords(); open(F,">$File"); print F @Passwords; close(F); print "Your password were saved to $File\n"; }else{ print ShowPasswords(); } sub ShowPasswords { my $APP_DATA = $ENV{'APPDATA'}; if (!-e "$APP_DATA/FileZilla/recentservers.xml" ) { print "No stored passwords found!"; }else{ my @List; my @Servers; my $xml = XML::Simple->new; my $data = $xml->XMLin("$APP_DATA/FileZilla/recentservers.xml" +); if (ref $data eq 'ARRAY' ) { @Servers = @{ $data->{'RecentServers'}->{'Server'} }; }else{ @Servers = $data->{'RecentServers'}->{'Server'}; } foreach my $Server (@Servers) { push @List, sprintf("%-30s%20s%20s\n",$Server->{'Host'},$S +erver->{'User'},$Server->{'Pass'}); } return @List; } }

In reply to Retrieve FileZilla stored passwords (Windows Only) by ahmad

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.