Example #1
0
        public bool LoginMainIndexWeb3(string pResponseText)
        {
            string        str  = this.ConvertLine1(this.GetLine());
            List <string> list = new List <string>();

            pResponseText = CommFunc.GetIndexString(pResponseText, "<input name", "</form>", 0);
            List <string> list2 = CommFunc.SplitString(pResponseText, "><", -1);

            for (int i = 0; i < list2.Count; i++)
            {
                string pStr = list2[i];
                string item = HttpUtility.UrlEncode(CommFunc.GetIndexString(pStr, "value=\"", "\"", 0));
                list.Add(item);
            }
            string pReferer      = $"{this.GetLine()}/CCLHUSR/VioletWood/desktop/loginProduct.page?txtProductId=LCB&t={DateTime.Now.ToOADate()}";
            string pUrl          = str + "/CCGLCBUSRAPI/checkLogin.jsp";
            string pResponsetext = "";
            string pData         = $"vendorid={list[0]}&uid={list[1]}&lang={list[2]}&timeZone={list[3]}&loginKey={list[4]}&passAgreementPage={list[5]}&gameKey={list[6]}&openInInnerFrame={list[7]}&template={list[8]}&device={list[9]}&lobbyUrl={list[10]}";

            HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, pReferer, 0x2710, "UTF-8", true);
            bool flag = pResponsetext.Contains("plugin/jquery/jquery.min.js");

            if (flag)
            {
                HttpHelper.ConvertCookie(str.Replace(this.HttpString1, this.HttpString1 + "www."), str.Replace(this.HttpString1, ""));
            }
            return(flag);
        }
Example #2
0
        public bool LoginWeb1()
        {
            string pReferer      = "";
            string pUrl          = this.GetLine() + "/auth?url=%2F";
            string pResponsetext = "";

            HttpHelper.GetResponse6(ref pResponsetext, pUrl, "GET", string.Empty, pReferer, 0x2710, "UTF-8", true);
            HttpHelper.ConvertCookie(pUrl, this.GetHostLine());
            return(true);
        }
Example #3
0
        public bool InputPWWeb(string pID, string pW, ref string pHint)
        {
            string pReferer      = this.GetLine() + "/CCLHUSR/VioletWood/desktop/hello.page";
            string pUrl          = this.GetLine() + "/CCLHUSR/VioletWood/desktop/checkPassword.page";
            string pResponsetext = "";
            string str4          = HttpUtility.UrlEncode(pW);
            string pData         = $"txtPassword={str4}";

            HttpHelper.GetResponse(ref pResponsetext, pUrl, "POST", pData, pReferer, 0x2710, "UTF-8", true);
            bool flag = pResponsetext.Contains("title:'交易协议',yes:'确定',no:'取消'");

            if (!flag)
            {
                pHint = CommFunc.GetIndexString(pResponsetext, "showMessage(\"", "\"", pResponsetext.IndexOf("ready(function()"));
                return(flag);
            }
            HttpHelper.ConvertCookie(this.GetLine() + "/CCLHUSR", this.GetLine().Replace(this.HttpString1, ""));
            return(flag);
        }