Beispiel #1
0
        public bool HotmailWithoutReference(string Email, string Password)
        {
            GlobusHttpHelper HttpHelper = new GlobusHttpHelper();
            bool             activate   = false;

            Chilkat.Http http = new Chilkat.Http();

            #region Hotmail
            try
            {
                if (Email.Contains("@hotmail"))
                {
                    if (popClient.Connected)
                    {
                        popClient.Disconnect();
                    }
                    popClient.Connect("pop3.live.com", int.Parse("995"), true);
                    popClient.Authenticate(Email, Password);
                    int Count = popClient.GetMessageCount();

                    for (int i = Count; i >= 1; i--)
                    {
                        OpenPOP.MIME.Message Message = popClient.GetMessage(i);
                        string subject = string.Empty;
                        subject = Message.Headers.Subject;

                        if (Message.Headers.Subject.Contains("[WordPress] Activate") && Message.Headers.Subject.Contains("wordpress.com"))
                        {
                            foreach (string href in GetUrlsFromStringHotmail(Message.MessageBody[0]))
                            {
                                try
                                {
                                    string staticUrl = string.Empty;
                                    staticUrl = href;

                                    string res = HttpHelper.getHtmlfromUrl1(new Uri(staticUrl));

                                    responce = http.QuickGetStr(staticUrl);
                                    if (responce.Contains("Your account is now active"))
                                    {
                                        Log("Account activated");
                                        activate = true;
                                    }
                                }
                                catch (Exception ex)
                                {
                                }
                            }
                        }
                    }
                }
            }
            catch { };
            #endregion
            return(activate);
        }
Beispiel #2
0
        public bool gmailWithoutReference(string Email, string Password)
        {
            bool activate = false;

            try
            {
                Chilkat.Http http = new Chilkat.Http();
                //HttpHelper = new GlobusHttpHelper();

                if (Email.Contains("@gmail"))
                {
                    if (popClient.Connected)
                    {
                        popClient.Disconnect();
                    }
                    popClient.Connect("pop.gmail.com", int.Parse("995"), true);
                    popClient.Authenticate(Email, Password);
                    int Count = popClient.GetMessageCount();

                    for (int i = Count; i >= 1; i--)
                    {
                        OpenPOP.MIME.Message Message = popClient.GetMessage(i);

                        string subject = Message.Headers.Subject;

                        if (Message.Headers.Subject.Contains("[WordPress] Activate") && Message.Headers.Subject.Contains("wordpress.com"))
                        {
                            foreach (string href in GetUrlsFromStringGmail(Message.MessageBody[0]))
                            {
                                try
                                {
                                    string staticUrl = string.Empty;

                                    staticUrl = href;

                                    responce = http.QuickGetStr(staticUrl);
                                    if (responce.Contains("Your account is now active"))
                                    {
                                        Log("[ " + DateTime.Now + " ] => [ Account activated ]");
                                        activate = true;
                                    }
                                }
                                catch (Exception ex)
                                {
                                }
                            }
                        }
                    }
                }
            }
            catch { };
            return(activate);
        }
Beispiel #3
0
        public bool GetYahooMails(string yahooEmail, string yahooPassword)
        {
            GlobusHttpHelper HttpHelper = new GlobusHttpHelper();
            bool             activate   = false;

            try
            {
                bool emaildata = false;

                Chilkat.Http http = new Chilkat.Http();



                ///Chilkat Http Request to be used in Http Post...
                Chilkat.HttpRequest req = new Chilkat.HttpRequest();
                bool success;

                // Any string unlocks the component for the 1st 30-days.
                success = http.UnlockComponent("THEBACHttp_b3C9o9QvZQ06");
                if (success != true)
                {
                    Console.WriteLine(http.LastErrorText);
                    return(false);
                }
                http.CookieDir   = "memory";
                http.SendCookies = true;
                http.SaveCookies = true;

                //http.ProxyDomain = "127.0.0.1";
                //http.ProxyPort = 8888;



                http.SetRequestHeader("Accept-Encoding", "gzip,deflate");



                Chilkat.Imap iMap     = new Imap();
                string       Username = yahooEmail;
                string       Password = yahooPassword;
                //Username = "******";
                //Password = "******";
                iMap.UnlockComponent("THEBACIMAPMAILQ_OtWKOHoF1R0Q");

                //iMap.
                //iMap.HttpProxyHostname = "127.0.0.1";
                //iMap.HttpProxyPort = 8888;

                iMap.Connect("imap.n.mail.yahoo.com");
                iMap.Login(yahooEmail, yahooPassword);
                iMap.SelectMailbox("Inbox");

                // Get a message set containing all the message IDs
                // in the selected mailbox.
                Chilkat.MessageSet msgSet;
                //msgSet = iMap.Search("FROM \"facebookmail.com\"", true);
                msgSet = iMap.GetAllUids();

                // Fetch all the mail into a bundle object.
                Chilkat.Email email = new Chilkat.Email();
                //bundle = iMap.FetchBundle(msgSet);
                string        strEmail = string.Empty;
                List <string> lstData  = new List <string>();
                if (msgSet != null)
                {
                    for (int i = msgSet.Count; i > 0; i--)
                    {
                        email    = iMap.FetchSingle(msgSet.GetId(i), true);
                        strEmail = email.Subject;
                        string emailHtml = email.GetHtmlBody();
                        lstData.Add(strEmail);


                        if (email.Subject.Contains("[WordPress] Activate") && email.Subject.Contains("wordpress.com"))
                        {
                            foreach (string href in GetUrlsFromString(email.Body))
                            {
                                try
                                {
                                    string staticUrl = string.Empty;


                                    staticUrl = href;
                                    responce  = http.QuickGetStr(staticUrl);

                                    if (responce.Contains("Your account is now active"))
                                    {
                                        emaildata = true;
                                        //Log("your Account is activate now");
                                        activate = true;
                                    }
                                }
                                catch (Exception ex)
                                {
                                    Console.WriteLine(ex.StackTrace);
                                }
                            }
                        }
                    }
                }
                if (emaildata == false)
                {
                    Log("[ " + DateTime.Now + " ] => [ activation link is not find in user account so your Account is not activate please activate now ]");
                }
            }
            catch (Exception ex)
            {
            }
            return(activate);
        }
Beispiel #4
0
        public bool ActivationProcess(string ActivationUrl)
        {
            bool IsActivated = false;

            try
            {
                Chilkat.Http http = new Chilkat.Http();

                ///Chilkat Http Request to be used in Http Post...
                Chilkat.HttpRequest req = new Chilkat.HttpRequest();
                bool success;

                // Any string unlocks the component for the 1st 30-days.
                success = http.UnlockComponent("THEBACHttp_b3C9o9QvZQ06");
                if (success != true)
                {
                    Console.WriteLine(http.LastErrorText);
                }
                http.CookieDir   = "memory";
                http.SendCookies = true;
                http.SaveCookies = true;


                http.SetRequestHeader("Accept-Encoding", "gzip,deflate");


                //complete url with website and address
                string siteurl = "http://blog.com/wp-login.php";
                //siteurl = Website;

                //  Send the HTTP GET and return the content in a string.
                string html = null;
                //html = http.QuickGetStr(siteurl);
                string actvateUrl = ActivationUrl.Substring(ActivationUrl.IndexOf("http"));

                html = http.QuickGetStr(actvateUrl);

                if (responce.Contains("Your account is now active"))
                {
                    Log("[ " + DateTime.Now + " ] => [ Account activated ]");
                    IsActivated = true;
                }

                if (!string.IsNullOrEmpty(html))
                {
                    if (html.Contains("Your account is now active") || html.Contains("Back to"))
                    {
                        //                   Log("blog account verified");

                        return(true);
                    }
                    else
                    {
                        //                  Log("blog account not verified");
                        return(false);
                    }
                }
                else
                {
                }
            }
            catch (Exception ex)
            {
            }


            return(IsActivated);
        }
Beispiel #5
0
        public bool gmail(string Email, string Password)
        {
            GlobusHttpHelper HttpHelper = new GlobusHttpHelper();
            bool             activate   = false;

            Chilkat.Http http = new Chilkat.Http();



            ///Chilkat Http Request to be used in Http Post...
            Chilkat.HttpRequest req = new Chilkat.HttpRequest();
            bool success;

            // Any string unlocks the component for the 1st 30-days.
            success = http.UnlockComponent("THEBACHttp_b3C9o9QvZQ06");
            if (success != true)
            {
                Console.WriteLine(http.LastErrorText);
                return(false);
            }
            http.CookieDir   = "memory";
            http.SendCookies = true;
            http.SaveCookies = true;

            //http.ProxyDomain = "127.0.0.1";
            //http.ProxyPort = 8888;


            http.SetRequestHeader("Accept-Encoding", "gzip,deflate");


            if (Email.Contains("@gmail"))
            {
                if (popClient.Connected)
                {
                    popClient.Disconnect();
                }
                popClient.Connect("pop.gmail.com", int.Parse("995"), true);
                popClient.Authenticate(Email, Password);
                int Count = popClient.GetMessageCount();

                for (int i = Count; i >= 1; i--)
                {
                    OpenPOP.MIME.Message Message = popClient.GetMessage(i);

                    string subject = Message.Headers.Subject;

                    if (Message.Headers.Subject.Contains("[WordPress] Activate") && Message.Headers.Subject.Contains("wordpress.com"))
                    {
                        foreach (string href in GetUrlsFromStringGmail(Message.MessageBody[0]))
                        {
                            try
                            {
                                string staticUrl = string.Empty;

                                staticUrl = href;

                                responce = http.QuickGetStr(staticUrl);
                                if (responce.Contains("Your account is now active"))
                                {
                                    Log("[ " + DateTime.Now + " ] => [ Account activated ]");
                                    activate = true;
                                }
                            }
                            catch (Exception ex)
                            {
                            }
                        }
                    }
                }
            }
            return(activate);
        }
        public bool HotmailWithoutReference(string Email, string Password)
        {
            GlobusHttpHelper HttpHelper = new GlobusHttpHelper();
            bool activate = false;
            Chilkat.Http http =new Chilkat.Http();

            #region Hotmail
            try
            {
                if (Email.Contains("@hotmail"))
                {
                    if (popClient.Connected)
                        popClient.Disconnect();
                    popClient.Connect("pop3.live.com", int.Parse("995"), true);
                    popClient.Authenticate(Email, Password);
                    int Count = popClient.GetMessageCount();

                    for (int i = Count; i >= 1; i--)
                    {
                        OpenPOP.MIME.Message Message = popClient.GetMessage(i);
                        string subject = string.Empty;
                        subject = Message.Headers.Subject;

                        if (Message.Headers.Subject.Contains("[WordPress] Activate") && Message.Headers.Subject.Contains("wordpress.com"))
                        {
                            foreach (string href in GetUrlsFromStringHotmail(Message.MessageBody[0]))
                            {
                                try
                                {
                                    string staticUrl = string.Empty;
                                    staticUrl = href;

                                    string res = HttpHelper.getHtmlfromUrl1(new Uri(staticUrl));

                                    responce = http.QuickGetStr(staticUrl);
                                    if (responce.Contains("Your account is now active"))
                                    {
                                        Log("Account activated");
                                        activate = true;
                                    }
                                }
                                catch (Exception ex)
                                {

                                }
                            }
                        }
                    }
                }
            }
            catch { };
            #endregion
            return activate;
        }
        public bool gmailWithoutReference(string Email, string Password)
        {
            bool activate = false;
            try
            {
                Chilkat.Http http = new Chilkat.Http();
                //HttpHelper = new GlobusHttpHelper();

                if (Email.Contains("@gmail"))
                {
                    if (popClient.Connected)
                        popClient.Disconnect();
                    popClient.Connect("pop.gmail.com", int.Parse("995"), true);
                    popClient.Authenticate(Email, Password);
                    int Count = popClient.GetMessageCount();

                    for (int i = Count; i >= 1; i--)
                    {
                        OpenPOP.MIME.Message Message = popClient.GetMessage(i);

                        string subject = Message.Headers.Subject;

                        if (Message.Headers.Subject.Contains("[WordPress] Activate") && Message.Headers.Subject.Contains("wordpress.com"))
                        {
                            foreach (string href in GetUrlsFromStringGmail(Message.MessageBody[0]))
                            {
                                try
                                {
                                    string staticUrl = string.Empty;

                                    staticUrl = href;

                                    responce = http.QuickGetStr(staticUrl);
                                    if (responce.Contains("Your account is now active"))
                                    {
                                        Log("[ " + DateTime.Now + " ] => [ Account activated ]");
                                        activate = true;
                                    }

                                }
                                catch (Exception ex)
                                {

                                }
                            }
                        }
                    }
                }
            }
            catch { };
            return activate;
        }
        public bool gmail(string Email, string Password)
        {
            GlobusHttpHelper HttpHelper = new GlobusHttpHelper();
            bool activate = false;

            Chilkat.Http http = new Chilkat.Http();

            ///Chilkat Http Request to be used in Http Post...
            Chilkat.HttpRequest req = new Chilkat.HttpRequest();
            bool success;

            // Any string unlocks the component for the 1st 30-days.
            success = http.UnlockComponent("THEBACHttp_b3C9o9QvZQ06");
            if (success != true)
            {
                Console.WriteLine(http.LastErrorText);
                return false;
            }
            http.CookieDir = "memory";
            http.SendCookies = true;
            http.SaveCookies = true;

            //http.ProxyDomain = "127.0.0.1";
            //http.ProxyPort = 8888;

            http.SetRequestHeader("Accept-Encoding", "gzip,deflate");

            if (Email.Contains("@gmail"))
            {
                if (popClient.Connected)
                    popClient.Disconnect();
                popClient.Connect("pop.gmail.com", int.Parse("995"), true);
                popClient.Authenticate(Email, Password);
                int Count = popClient.GetMessageCount();

                for (int i = Count; i >= 1; i--)
                {
                    OpenPOP.MIME.Message Message = popClient.GetMessage(i);

                    string subject = Message.Headers.Subject;

                    if (Message.Headers.Subject.Contains("[WordPress] Activate") && Message.Headers.Subject.Contains("wordpress.com"))
                    {
                        foreach (string href in GetUrlsFromStringGmail(Message.MessageBody[0]))
                        {
                            try
                            {
                                string staticUrl = string.Empty;

                                staticUrl = href;

                                responce = http.QuickGetStr(staticUrl);
                                if (responce.Contains("Your account is now active"))
                                {
                                    Log("[ " + DateTime.Now + " ] => [ Account activated ]");
                                    activate = true;
                                }

                            }
                            catch (Exception ex)
                            {

                            }
                        }
                    }
                }
            }
            return activate;
        }
        public bool ActivationProcess(string ActivationUrl)
        {
            bool IsActivated = false;

            try
            {
                Chilkat.Http http = new Chilkat.Http();

                ///Chilkat Http Request to be used in Http Post...
                Chilkat.HttpRequest req = new Chilkat.HttpRequest();
                bool success;

                // Any string unlocks the component for the 1st 30-days.
                success = http.UnlockComponent("THEBACHttp_b3C9o9QvZQ06");
                if (success != true)
                {
                    Console.WriteLine(http.LastErrorText);
                }
                http.CookieDir = "memory";
                http.SendCookies = true;
                http.SaveCookies = true;

                http.SetRequestHeader("Accept-Encoding", "gzip,deflate");

                //complete url with website and address
                string siteurl = "http://blog.com/wp-login.php";
                //siteurl = Website;

                //  Send the HTTP GET and return the content in a string.
                string html = null;
                //html = http.QuickGetStr(siteurl);
                string actvateUrl = ActivationUrl.Substring(ActivationUrl.IndexOf("http"));

                html = http.QuickGetStr(actvateUrl);

                if (responce.Contains("Your account is now active"))
                {
                    Log("[ " + DateTime.Now + " ] => [ Account activated ]");
                    IsActivated = true;
                }

                if (!string.IsNullOrEmpty(html))
                {
                    if (html.Contains("Your account is now active") || html.Contains("Back to"))
                    {
                        //                   Log("blog account verified");

                        return true;
                    }
                    else
                    {
                        //                  Log("blog account not verified");
                        return false;
                    }
                }
                else
                {

                }

            }
            catch (Exception ex)
            {

            }

            return IsActivated;
        }
        public bool GetYahooMails(string yahooEmail, string yahooPassword)
        {
            GlobusHttpHelper HttpHelper = new GlobusHttpHelper();
            bool activate = false;
            try
            {
                bool emaildata = false;

                Chilkat.Http http = new Chilkat.Http();

                ///Chilkat Http Request to be used in Http Post...
                Chilkat.HttpRequest req = new Chilkat.HttpRequest();
                bool success;

                // Any string unlocks the component for the 1st 30-days.
                success = http.UnlockComponent("THEBACHttp_b3C9o9QvZQ06");
                if (success != true)
                {
                    Console.WriteLine(http.LastErrorText);
                    return false;
                }
                http.CookieDir = "memory";
                http.SendCookies = true;
                http.SaveCookies = true;

                //http.ProxyDomain = "127.0.0.1";
                //http.ProxyPort = 8888;

                http.SetRequestHeader("Accept-Encoding", "gzip,deflate");

                Chilkat.Imap iMap = new Imap();
                string Username = yahooEmail;
                string Password = yahooPassword;
                //Username = "******";
                //Password = "******";
                iMap.UnlockComponent("THEBACIMAPMAILQ_OtWKOHoF1R0Q");

                //iMap.
                //iMap.HttpProxyHostname = "127.0.0.1";
                //iMap.HttpProxyPort = 8888;

                iMap.Connect("imap.n.mail.yahoo.com");
                iMap.Login(yahooEmail, yahooPassword);
                iMap.SelectMailbox("Inbox");

                // Get a message set containing all the message IDs
                // in the selected mailbox.
                Chilkat.MessageSet msgSet;
                //msgSet = iMap.Search("FROM \"facebookmail.com\"", true);
                msgSet = iMap.GetAllUids();

                // Fetch all the mail into a bundle object.
                Chilkat.Email email = new Chilkat.Email();
                //bundle = iMap.FetchBundle(msgSet);
                string strEmail = string.Empty;
                List<string> lstData = new List<string>();
                if (msgSet != null)
                {
                    for (int i = msgSet.Count; i > 0; i--)
                    {
                        email = iMap.FetchSingle(msgSet.GetId(i), true);
                        strEmail = email.Subject;
                        string emailHtml = email.GetHtmlBody();
                        lstData.Add(strEmail);

                        if (email.Subject.Contains("[WordPress] Activate") && email.Subject.Contains("wordpress.com"))
                        {
                            foreach (string href in GetUrlsFromString(email.Body))
                            {
                                try
                                {

                                    string staticUrl = string.Empty;

                                    staticUrl = href;
                                    responce = http.QuickGetStr(staticUrl);

                                    if (responce.Contains("Your account is now active"))
                                    {
                                        emaildata = true;
                                        //Log("your Account is activate now");
                                        activate = true;
                                    }
                                }
                                catch (Exception ex)
                                {
                                    Console.WriteLine(ex.StackTrace);
                                }
                            }
                        }
                    }
                }
                if (emaildata == false)
                {
                    Log("[ " + DateTime.Now + " ] => [ activation link is not find in user account so your Account is not activate please activate now ]");
                }
            }
            catch (Exception ex)
            {
            }
            return activate;
        }