public string[] GetCaptchaImage(ref string _status) { _status = "Getting Captcha..."; this.restClient_0.BaseUrl = HttpHandler.uri_0; if (this.mainForm_0.proxy) { this.restClient_0.Proxy = new WebProxy(this.mainForm_0.proxyval, this.mainForm_0.proxyport); } this.restRequest_0.Method = Method.GET; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; IRestResponse restResponse = this.restClient_0.Execute(this.restRequest_0); try { this.string_0 = HttpHandler.regex_0.Matches(restResponse.Content)[0].Groups[1].Value; } catch (Exception ex) { MessageBox.Show(ex.ToString()); MessageBox.Show(restResponse.Content); MessageBox.Show(restResponse.ErrorException.ToString()); MessageBox.Show(restResponse.StatusCode.ToString()); } this.restClient_0.BaseUrl = new Uri(HttpHandler.uri_1 + this.string_0); if (this.mainForm_0.proxy) { this.restClient_0.Proxy = new WebProxy(this.mainForm_0.proxyval, this.mainForm_0.proxyport); } string text = ""; for (int i = 0; i < 10; i++) { _status = "Getting Captcha.. " + i / 10 * 100 + "%"; byte[] captcha = this.restClient_0.DownloadData(this.restRequest_0); string str = this.getbasefromimage(captcha); if (i == 9) { text += str; } else { text = text + str + ";"; } } _status = "Recognizing Captcha!"; this.restClient_0.BaseUrl = new Uri("http://dedsecmail.jdevcloud.com/"); RestRequest restRequest = new RestRequest("mailv3.php", Method.POST, DataFormat.Xml); byte[] bytes = Convert.FromBase64String("NjI5MTkwODQ4"); string @string = Encoding.UTF8.GetString(bytes); string str2 = text; string value = HttpHandler.Reverse(HttpHandler.Base64Encode(HttpHandler.Base64Encode(HttpHandler.Base64Encode(HttpHandler.Base64Encode(HttpHandler.Reverse(HttpHandler.Base64Encode(HttpHandler.Reverse(HttpHandler.Encipher(@string + ":" + str2, 9))))))))); restRequest.AddParameter("query", value); object arg = JObject.Parse(this.restClient_0.Execute(restRequest).Content); if (HttpHandler.Class2.callSite_2 == null) { HttpHandler.Class2.callSite_2 = CallSite <Func <CallSite, object, string[]> > .Create(Binder.Convert(CSharpBinderFlags.None, typeof(string[]), typeof(HttpHandler))); } Func <CallSite, object, string[]> target = HttpHandler.Class2.callSite_2.Target; CallSite callSite_ = HttpHandler.Class2.callSite_2; if (HttpHandler.Class2.callSite_1 == null) { HttpHandler.Class2.callSite_1 = CallSite <Func <CallSite, object, object> > .Create(Binder.InvokeMember(CSharpBinderFlags.None, "ToObject", new Type[] { typeof(string[]) }, typeof(HttpHandler), new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) })); } Func <CallSite, object, object> target2 = HttpHandler.Class2.callSite_1.Target; CallSite callSite_2 = HttpHandler.Class2.callSite_1; if (HttpHandler.Class2.callSite_0 == null) { HttpHandler.Class2.callSite_0 = CallSite <Func <CallSite, object, object> > .Create(Binder.GetMember(CSharpBinderFlags.None, "solutions", typeof(HttpHandler), new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) })); } string[] array = target(callSite_, target2(callSite_2, HttpHandler.Class2.callSite_0.Target(HttpHandler.Class2.callSite_0, arg))); _status = "Got Captcha..." + array.ToString(); return(array); }
public bool CompleteSignup(string alias, string password, ref string status, bool addcsgo) { if (!HttpHandler.smethod_0(alias, ref status)) { return(false); } if (!HttpHandler.smethod_1(password, alias, ref status)) { return(false); } this.restClient_0.BaseUrl = HttpHandler.uri_7; if (this.mainForm_0.proxy) { this.restClient_0.Proxy = new WebProxy(this.mainForm_0.proxyval, this.mainForm_0.proxyport); } this.restRequest_0.Method = Method.POST; this.restRequest_0.AddParameter("accountname", alias); this.restRequest_0.AddParameter("password", password); this.restRequest_0.AddParameter("creation_sessionid", this.string_1); this.restRequest_0.AddParameter("count", "1"); this.restRequest_0.AddParameter("lt", "0"); IRestResponse restResponse = this.restClient_0.Execute(this.restRequest_0); RestResponseCookie restResponseCookie = restResponse.Cookies.SingleOrDefault(new Func <RestResponseCookie, bool>(HttpHandler.Class5.class5_0.method_0)); if (restResponseCookie != null) { this._cookieJar.Add(new Cookie(restResponseCookie.Name, restResponseCookie.Value, restResponseCookie.Path, restResponseCookie.Domain)); } this.restRequest_0.Parameters.Clear(); object arg = JsonConvert.DeserializeObject(restResponse.Content); if (HttpHandler.Class4.callSite_2 == null) { HttpHandler.Class4.callSite_2 = CallSite <Func <CallSite, object, bool> > .Create(Binder.UnaryOperation(CSharpBinderFlags.None, ExpressionType.IsTrue, typeof(HttpHandler), new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) })); } Func <CallSite, object, bool> target = HttpHandler.Class4.callSite_2.Target; CallSite callSite_ = HttpHandler.Class4.callSite_2; if (HttpHandler.Class4.callSite_1 == null) { HttpHandler.Class4.callSite_1 = CallSite <Func <CallSite, object, string, object> > .Create(Binder.BinaryOperation(CSharpBinderFlags.None, ExpressionType.Equal, typeof(HttpHandler), new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType | CSharpArgumentInfoFlags.Constant, null) })); } Func <CallSite, object, string, object> target2 = HttpHandler.Class4.callSite_1.Target; CallSite callSite_2 = HttpHandler.Class4.callSite_1; if (HttpHandler.Class4.callSite_0 == null) { HttpHandler.Class4.callSite_0 = CallSite <Func <CallSite, object, object> > .Create(Binder.GetMember(CSharpBinderFlags.None, "bSuccess", typeof(HttpHandler), new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) })); } if (target(callSite_, target2(callSite_2, HttpHandler.Class4.callSite_0.Target(HttpHandler.Class4.callSite_0, arg), "true"))) { status = "Account created"; this.restClient_0.FollowRedirects = false; this.restClient_0.CookieContainer = this._cookieJar; this.restClient_0.BaseUrl = new Uri("https://store.steampowered.com/twofactor/manage_action"); if (this.mainForm_0.proxy) { this.restClient_0.Proxy = new WebProxy(this.mainForm_0.proxyval, this.mainForm_0.proxyport); } this.restRequest_0.Method = Method.POST; this.restRequest_0.AddParameter("action", "actuallynone"); this.restRequest_0.AddParameter("sessionid", this.string_1); IRestResponse restResponse2 = this.restClient_0.Execute(this.restRequest_0); string value = ""; restResponseCookie = restResponse2.Cookies.SingleOrDefault(new Func <RestResponseCookie, bool>(HttpHandler.Class5.class5_0.method_1)); if (restResponseCookie != null) { this._cookieJar.Add(new Cookie(restResponseCookie.Name, restResponseCookie.Value, restResponseCookie.Path, restResponseCookie.Domain)); value = restResponseCookie.Value; } this.restRequest_0.Parameters.Clear(); this.restClient_0.CookieContainer = this._cookieJar; this.restClient_0.BaseUrl = new Uri("https://store.steampowered.com/twofactor/manage_action"); if (this.mainForm_0.proxy) { this.restClient_0.Proxy = new WebProxy(this.mainForm_0.proxyval, this.mainForm_0.proxyport); } this.restRequest_0.Method = Method.POST; this.restRequest_0.AddParameter("action", "actuallynone"); this.restRequest_0.AddParameter("sessionid", value); this.restClient_0.Execute(this.restRequest_0); this.restClient_0.FollowRedirects = true; this.restRequest_0.Parameters.Clear(); if (addcsgo) { this.restClient_0.BaseUrl = new Uri("https://store.steampowered.com/checkout/addfreelicense"); if (this.mainForm_0.proxy) { this.restClient_0.Proxy = new WebProxy(this.mainForm_0.proxyval, this.mainForm_0.proxyport); } this.restRequest_0.Method = Method.POST; this.restRequest_0.AddParameter("action", "add_to_cart"); this.restRequest_0.AddParameter("subid", 303386); this.restRequest_0.AddParameter("sessionid", value); this.restClient_0.Execute(this.restRequest_0); this.restClient_0.FollowRedirects = true; } return(true); } if (HttpHandler.Class4.callSite_4 == null) { HttpHandler.Class4.callSite_4 = CallSite <Func <CallSite, object, string> > .Create(Binder.Convert(CSharpBinderFlags.None, typeof(string), typeof(HttpHandler))); } Func <CallSite, object, string> target3 = HttpHandler.Class4.callSite_4.Target; CallSite callSite_3 = HttpHandler.Class4.callSite_4; if (HttpHandler.Class4.callSite_3 == null) { HttpHandler.Class4.callSite_3 = CallSite <Func <CallSite, object, object> > .Create(Binder.GetMember(CSharpBinderFlags.None, "details", typeof(HttpHandler), new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null) })); } status = target3(callSite_3, HttpHandler.Class4.callSite_3.Target(HttpHandler.Class4.callSite_3, arg)); return(false); }