// Token: 0x060001D6 RID: 470 RVA: 0x0001171C File Offset: 0x0000F91C public void method_5(string string_7, string string_8, bool bool_3, bool bool_4) { if ((!this.bool_1 || bool_4) && string_7 != this.string_6) { this.string_6 = string_7; if (string_7.ToLower().Contains("error")) { string_8 = "red"; } MainWindow.webView_0.QueueScriptCall(string.Format("updateTable('{0}','{1}',{2},7)", string_7.smethod_8(), string_8, this.jtoken_0["id"])); if (bool_3) { GClass3.smethod_0(string_7, "Task " + this.jtoken_0["id"]); } if (this.string_5 != null) { JObject jobject = new JObject(); string propertyName = "quicktask"; JObject jobject2 = new JObject(); jobject2["id"] = this.string_5; jobject2["status"] = string_7; jobject2["color"] = string_8; jobject[propertyName] = jobject2; Class60.smethod_0(jobject); } } }
// Token: 0x06000103 RID: 259 RVA: 0x0000D520 File Offset: 0x0000B720 internal void method_0() { JObject jobject = Class20.smethod_4(this.bitmap_0); try { this.jobject_0[this.int_0.ToString()] = new JObject(); JToken jtoken = this.jobject_0[this.int_0.ToString()]; object key = "match"; bool value; if (jobject["description"]["tags"].Count <JToken>() <= 0) { value = false; } else { IEnumerable <JToken> source = jobject["description"]["tags"]; Func <JToken, bool> predicate; if ((predicate = this.func_0) == null) { predicate = (this.func_0 = new Func <JToken, bool>(this.method_1)); } value = (source.Where(predicate).Count <JToken>() > 0); } jtoken[key] = value; this.jobject_0[this.int_0.ToString()]["tags"] = jobject["description"]["tags"]; GClass3.smethod_0("Received answer for image " + this.int_0, "OCR"); } catch { Console.WriteLine(jobject); } }
// Token: 0x0600033B RID: 827 RVA: 0x0001BB5C File Offset: 0x00019D5C public void method_1() { for (;;) { try { this.class4_0.method_4("Getting PayPal data", "#c2c2c2", true, false); JObject jobject = JObject.Parse(this.class70_0.method_5(this.string_0, true).smethod_3().Split(new string[] { "/payee\", " }, StringSplitOptions.None)[1].Split(new string[] { ", \"payee" }, StringSplitOptions.None)[0]); this.string_4 = (string)jobject["data"]["merchant"]["id"]; this.string_2 = (string)jobject["meta"]["calc"]; GClass3.smethod_0("Got merchant ID: " + this.string_4, "PayPal"); GClass3.smethod_0("Got calc: " + this.string_2, "PayPal"); } catch (ThreadAbortException) { } catch { this.class4_0.method_4("Error getting PayPal data", "#c2c2c2", true, false); Thread.Sleep(GClass0.int_1); continue; } break; } }
// Token: 0x0600033B RID: 827 RVA: 0x0001E798 File Offset: 0x0001C998 public void method_1() { for (;;) { try { this.class4_0.method_4(Class185.smethod_0(537685253), Class185.smethod_0(537700781), true, false); JObject jobject = JObject.Parse(this.class70_0.method_5(this.string_0, true).smethod_3().Split(new string[] { Class185.smethod_0(537685295) }, StringSplitOptions.None)[1].Split(new string[] { Class185.smethod_0(537685343) }, StringSplitOptions.None)[0]); this.string_4 = (string)jobject[Class185.smethod_0(537706797)][Class185.smethod_0(537685326)][Class185.smethod_0(537703519)]; this.string_2 = (string)jobject[Class185.smethod_0(537685373)][Class185.smethod_0(537685352)]; GClass3.smethod_0(Class185.smethod_0(537685347) + this.string_4, Class185.smethod_0(537685131)); GClass3.smethod_0(Class185.smethod_0(537685176) + this.string_2, Class185.smethod_0(537685131)); } catch (ThreadAbortException) { } catch { this.class4_0.method_4(Class185.smethod_0(537685161), Class185.smethod_0(537700781), true, false); Thread.Sleep(GClass0.int_1); continue; } break; } }
// Token: 0x06000103 RID: 259 RVA: 0x0000E5CC File Offset: 0x0000C7CC internal void method_0() { JObject jobject = Class20.smethod_4(this.bitmap_0); try { this.jobject_0[this.int_0.ToString()] = new JObject(); JToken jtoken = this.jobject_0[this.int_0.ToString()]; object key = Class185.smethod_0(537704272); bool value; if (jobject[Class185.smethod_0(537704268)][Class185.smethod_0(537704318)].Count <JToken>() <= 0) { value = false; } else { IEnumerable <JToken> source = jobject[Class185.smethod_0(537704268)][Class185.smethod_0(537704318)]; Func <JToken, bool> predicate; if ((predicate = this.func_0) == null) { predicate = (this.func_0 = new Func <JToken, bool>(this.method_1)); } value = (source.Where(predicate).Count <JToken>() > 0); } jtoken[key] = value; this.jobject_0[this.int_0.ToString()][Class185.smethod_0(537704318)] = jobject[Class185.smethod_0(537704268)][Class185.smethod_0(537704318)]; GClass3.smethod_0(Class185.smethod_0(537704297) + this.int_0, Class185.smethod_0(537704074)); } catch { Console.WriteLine(jobject); } }
// Token: 0x0600016F RID: 367 RVA: 0x00007A20 File Offset: 0x00005C20 public static string smethod_6(string string_0, string string_1) { checked { string result; if (string_1.Length >= 10 && Versioned.IsNumeric(string_1.Substring(1, 9))) { string text = string_0.Replace(":", ""); ulong value = (ulong)Convert.ToInt64(text, 16); text = Convert.ToUInt64(decimal.Subtract(new decimal(value), 2m)).ToString("X12"); string text2 = string_1.Substring(1, 9); byte[] array = new byte[12]; int num = 0; do { array[11 - num] = (byte)Convert.ToInt32(text.Substring(num, 1), 16); num++; }while (num <= 11); byte[] array2 = new byte[9]; int num2 = 0; do { array2[8 - num2] = (byte)Convert.ToInt32(text2.Substring(num2, 1), 16); num2++; }while (num2 <= 8); int num3; int num4; unchecked { num3 = (int)((array2[2] + array2[3] + array[0] + array[1]) % 16); num4 = (int)((array2[0] + array2[1] + array[2] + array[3]) % 16); } byte[] array3 = new byte[] { (byte)((num3 ^ (int)array2[0]) % 16), (byte)((num3 ^ (int)array2[1]) % 16), (byte)((num4 ^ (int)array[2]) % 16), (byte)((num4 ^ (int)array[1]) % 16), (array[1] ^ array2[0]) % 16, (array[0] ^ array2[1]) % 16, (byte)((num3 ^ (int)array2[2]) % 16) }; string text3 = ""; int num5 = 0; do { text3 += Conversion.Hex(array3[num5]); num5++; }while (num5 <= 6); text3 = (Convert.ToInt32(text3, 16) % 10000000).ToString(); text3 += Conversions.ToString(GClass3.smethod_0(Conversions.ToInteger(text3.PadLeft(7, '0')))); result = text3.PadLeft(8, '0'); } else { result = ""; } return(result); } }
// Token: 0x06000098 RID: 152 RVA: 0x00009AE0 File Offset: 0x00007CE0 public bool method_0(object object_0, X509Certificate x509Certificate_0, X509Chain x509Chain_0, SslPolicyErrors sslPolicyErrors_0) { string host = ((HttpWebRequest)object_0).Host; string certHashString = x509Certificate_0.GetCertHashString(); if (Debugger.IsAttached) { return(true); } if (Class158.smethod_3().ToUpper().Contains(certHashString.ToUpper())) { return(true); } if (this.bool_0) { if (!x509Certificate_0.Issuer.Contains("Let's Encrypt Authority X3") && !x509Certificate_0.Issuer.Contains("DigiCert SHA2 High Assurance Server CA")) { GClass3.smethod_0(certHashString, "SSL"); return(false); } return(true); } else { if (host.Contains("supreme")) { return(true); } GClass3.smethod_0(certHashString, "SSL"); return(host.Replace("www.", string.Empty) == "supremenewyork.com" && x509Certificate_0.Issuer == "CN=GlobalSign CloudSSL CA - SHA256 - G3, O=GlobalSign nv-sa, C=BE"); } }
// Token: 0x060004A6 RID: 1190 RVA: 0x00021D50 File Offset: 0x0001FF50 internal void method_0(object sender, FirstChanceExceptionEventArgs e) { if (!e.Exception.GetType().ToString().Contains("ThreadAbortException") && !e.Exception.GetType().ToString().Contains("System.Exception") && !e.Exception.GetType().ToString().Contains("System.AggregateException") && !e.Exception.GetType().ToString().Contains("System.UriFormatException") && !e.Exception.ToString().Contains("wyDay") && !e.Exception.GetType().ToString().Contains("System.UriFormatException") && !e.Exception.ToString().Contains("Updater") && !e.Exception.ToString().Contains("AmbiguousMatchException")) { GClass3.smethod_0(e.Exception.ToString(), "ERROR"); } }
// Token: 0x0600016D RID: 365 RVA: 0x000077DC File Offset: 0x000059DC public static object smethod_4(string string_0) { int num = Convert.ToInt32(string_0.Replace(":", "").Substring(6, 6), 16) ^ 5614165; num ^= checked (((num & 15) << 4) + ((num & 15) << 8) + ((num & 15) << 12) + ((num & 15) << 16) + ((num & 15) << 20)); string text = (num % 10000000).ToString().PadLeft(7, '0'); return(text + Conversions.ToString(GClass3.smethod_0(Conversions.ToInteger(text)))); }
// Token: 0x0600016C RID: 364 RVA: 0x000076B4 File Offset: 0x000058B4 public static string smethod_3(string string_0) { string[] array = new string[7]; array = string_0.Split(new char[] { ':' }); string text = checked (Conversions.ToString((Convert.ToInt32(array[0], 16) + Convert.ToInt32(array[1], 16)) % 10) + Conversions.ToString((Convert.ToInt32(array[1], 16) + Convert.ToInt32(array[2], 16)) % 10) + Conversions.ToString((Convert.ToInt32(array[2], 16) + Convert.ToInt32(array[3], 16)) % 10) + Conversions.ToString((Convert.ToInt32(array[3], 16) + Convert.ToInt32(array[4], 16)) % 10) + Conversions.ToString((Convert.ToInt32(array[4], 16) + Convert.ToInt32(array[5], 16)) % 10) + Conversions.ToString((Convert.ToInt32(array[5], 16) + Convert.ToInt32(array[0], 16)) % 10) + Conversions.ToString((Convert.ToInt32(array[0], 16) + Convert.ToInt32(array[1], 16)) % 10)); return(text + GClass3.smethod_0(Convert.ToInt32(text)).ToString()); }
// Token: 0x0600016A RID: 362 RVA: 0x0000764C File Offset: 0x0000584C public static string smethod_1(string string_0) { string[] array = new string[7]; array = string_0.Split(new char[] { ':' }); int num = Convert.ToInt32(array[3] + array[4] + array[5], 16); num %= 10000000; return(num.ToString("D7") + GClass3.smethod_0(num).ToString()); }
// Token: 0x0600016E RID: 366 RVA: 0x00010374 File Offset: 0x0000E574 public static HttpResponseMessage smethod_2(string string_0, int int_0, JObject jobject_0, bool bool_0) { if (Class30.concurrentDictionary_0.ContainsKey(string_0)) { object objA = false; if (Class30.Class34.callSite_0 == null) { Class30.Class34.callSite_0 = CallSite <Func <CallSite, object, Thread> > .Create(Binder.Convert(CSharpBinderFlags.ConvertExplicit, typeof(Thread), typeof(Class30))); } if (object.Equals(objA, Class30.Class34.callSite_0.Target(Class30.Class34.callSite_0, Class30.concurrentDictionary_0[string_0]["thread"]).IsAlive)) { Class30.smethod_0(string_0, int_0, jobject_0); } } else { GClass3.smethod_0("Starting monitor for: " + new Uri(string_0).Authority, "Monitor"); Class30.smethod_0(string_0, int_0, jobject_0); } while (!Class30.concurrentDictionary_0[string_0].ContainsKey("tasks")) { Thread.Sleep(100); } if (Class30.Class34.callSite_1 == null) { Class30.Class34.callSite_1 = CallSite <Func <CallSite, object, List <int> > > .Create(Binder.Convert(CSharpBinderFlags.ConvertExplicit, typeof(List <int>), typeof(Class30))); } Class30.Class34.callSite_1.Target(Class30.Class34.callSite_1, Class30.concurrentDictionary_0[string_0]["tasks"]).Add(int_0); while (!Class30.concurrentDictionary_0[string_0].ContainsKey("response")) { Thread.Sleep(100); } if (!bool_0) { for (;;) { if (Class30.Class34.callSite_2 == null) { Class30.Class34.callSite_2 = CallSite <Func <CallSite, object, bool> > .Create(Binder.Convert(CSharpBinderFlags.ConvertExplicit, typeof(bool), typeof(Class30))); } if (Class30.Class34.callSite_2.Target(Class30.Class34.callSite_2, Class30.concurrentDictionary_0[string_0]["requested"])) { break; } Thread.Sleep(100); } } if (Class30.Class34.callSite_3 == null) { Class30.Class34.callSite_3 = CallSite <Func <CallSite, object, HttpResponseMessage> > .Create(Binder.Convert(CSharpBinderFlags.None, typeof(HttpResponseMessage), typeof(Class30))); } return(Class30.Class34.callSite_3.Target(Class30.Class34.callSite_3, Class30.concurrentDictionary_0[string_0]["response"])); }
// Token: 0x06000170 RID: 368 RVA: 0x00007C2C File Offset: 0x00005E2C public static string smethod_7(string string_0) { string[] array = new string[7]; array = string_0.Split(new char[] { ':' }); string text = Convert.ToInt32(array[5] + array[4] + array[3], 16).ToString().PadLeft(7, '0'); string text2 = text.Substring(checked (text.Length - 7), 7); return(text2 + Conversions.ToString(GClass3.smethod_0(Conversions.ToInteger(text2)))); }
// Token: 0x0600016E RID: 366 RVA: 0x00007864 File Offset: 0x00005A64 public static string smethod_5(string string_0) { string text = string_0.Replace(":", ""); string text2 = Convert.ToInt32(text.Substring(8, 4), 16).ToString("00000"); byte[] array = new byte[12]; int num = 0; byte[] array2; checked { do { array[num] = (byte)Convert.ToInt32(text.Substring(num, 1), 16); num++; }while (num <= 11); array2 = new byte[5]; int num2 = 0; do { array2[num2] = (byte)Convert.ToInt32(text2.Substring(num2, 1), 16); num2++; }while (num2 <= 4); } int num3 = (int)((array2[1] + array2[2] + array[10] + array[11]) % 16); int num4 = (int)((array2[3] + array2[4] + array[8] + array[9]) % 16); checked { byte[] array3 = new byte[] { (byte)((num3 ^ (int)array2[4]) % 16), (byte)((num3 ^ (int)array2[3]) % 16), (byte)((num4 ^ (int)array[9]) % 16), (byte)((num4 ^ (int)array[10]) % 16), (array[10] ^ array2[4]) % 16, (array[11] ^ array2[3]) % 16, (byte)((num3 ^ (int)array2[2]) % 16) }; string text3 = ""; int num5 = 0; do { text3 += Conversion.Hex(array3[num5]); num5++; }while (num5 <= 6); text3 = (Convert.ToInt32(text3, 16) % 10000000).ToString(); text3 += Conversions.ToString(GClass3.smethod_0(Conversions.ToInteger(text3.PadLeft(7, '0')))); return(text3.PadLeft(8, '0')); } }
// Token: 0x06000011 RID: 17 RVA: 0x00007448 File Offset: 0x00005648 public static WebView smethod_2(bool bool_1, out bool bool_2, out bool bool_3, out string string_0) { if (GForm0.concurrentDictionary_1[Class185.smethod_0(537706437)]) { GForm0.concurrentDictionary_1[Class185.smethod_0(537706437)] = false; bool_2 = false; bool_3 = true; string_0 = Class185.smethod_0(537706437); GClass3.smethod_0(Class185.smethod_0(537705886), Class185.smethod_0(537705917)); return(GForm0.webView_0); } if (bool_1) { GForm0.concurrentDictionary_1.Where(new Func <KeyValuePair <string, bool>, bool>(GForm0.Class0.class0_0.method_1)); if (GForm0.concurrentDictionary_1[Class185.smethod_0(537706077)]) { GForm0.concurrentDictionary_1[Class185.smethod_0(537706077)] = false; bool_2 = true; bool_3 = true; string_0 = Class185.smethod_0(537706077); GClass3.smethod_0(Class185.smethod_0(537705890), Class185.smethod_0(537705917)); return(GForm0.webView_1); } if (GForm0.concurrentDictionary_1[Class185.smethod_0(537706060)]) { GForm0.concurrentDictionary_1[Class185.smethod_0(537706060)] = false; bool_2 = true; bool_3 = true; string_0 = Class185.smethod_0(537706060); GClass3.smethod_0(Class185.smethod_0(537705934), Class185.smethod_0(537705917)); return(GForm0.webView_2); } if (GForm0.concurrentDictionary_1[Class185.smethod_0(537706107)]) { GForm0.concurrentDictionary_1[Class185.smethod_0(537706107)] = false; bool_2 = true; bool_3 = true; string_0 = Class185.smethod_0(537706107); GClass3.smethod_0(Class185.smethod_0(537705962), Class185.smethod_0(537705917)); return(GForm0.webView_2); } } bool_3 = false; bool_2 = false; string_0 = string.Empty; return(null); }
// Token: 0x06000011 RID: 17 RVA: 0x00007168 File Offset: 0x00005368 public static WebView smethod_2(bool bool_1, out bool bool_2, out bool bool_3, out string string_0) { if (CaptchaQueue.concurrentDictionary_1["main"]) { CaptchaQueue.concurrentDictionary_1["main"] = false; bool_2 = false; bool_3 = true; string_0 = "main"; GClass3.smethod_0("Main solver is available", "Captcha Solver"); return(CaptchaQueue.webView_0); } if (bool_1) { CaptchaQueue.concurrentDictionary_1.Where(new Func <KeyValuePair <string, bool>, bool>(CaptchaQueue.Class0.class0_0.method_1)); if (CaptchaQueue.concurrentDictionary_1["browser2"]) { CaptchaQueue.concurrentDictionary_1["browser2"] = false; bool_2 = true; bool_3 = true; string_0 = "browser2"; GClass3.smethod_0("Solver 2 is available", "Captcha Solver"); return(CaptchaQueue.webView_1); } if (CaptchaQueue.concurrentDictionary_1["browser3"]) { CaptchaQueue.concurrentDictionary_1["browser3"] = false; bool_2 = true; bool_3 = true; string_0 = "browser3"; GClass3.smethod_0("Solver 3 is available", "Captcha Solver"); return(CaptchaQueue.webView_2); } if (CaptchaQueue.concurrentDictionary_1["browser4"]) { CaptchaQueue.concurrentDictionary_1["browser4"] = false; bool_2 = true; bool_3 = true; string_0 = "browser4"; GClass3.smethod_0("Solver 4 is available", "Captcha Solver"); return(CaptchaQueue.webView_2); } } bool_3 = false; bool_2 = false; string_0 = string.Empty; return(null); }
// Token: 0x06000162 RID: 354 RVA: 0x000112F8 File Offset: 0x0000F4F8 public void method_12() { for (;;) { try { this.class4_0.method_4(Class185.smethod_0(537660636), Class185.smethod_0(537700964), true, false); Dictionary <string, string> dictionary = Class70.smethod_1(); dictionary[Class185.smethod_0(537692633)] = this.string_9; HttpResponseMessage httpResponseMessage_ = this.class70_0.method_7(Class185.smethod_0(537660613), dictionary, false); JObject jobject = httpResponseMessage_.smethod_0(); if (jobject.ContainsKey(Class185.smethod_0(537710733))) { if (jobject[Class185.smethod_0(537710733)].ToString().Contains(Class185.smethod_0(537660472))) { this.class4_0.method_9(true); this.class4_0.method_0(Class185.smethod_0(537660452), Class185.smethod_0(537700909), false); } else { this.class4_0.method_0(Class185.smethod_0(537660491), Class185.smethod_0(537700909), false); GClass3.smethod_0(httpResponseMessage_.smethod_3(), Class185.smethod_0(537710733)); } } else if (httpResponseMessage_.smethod_3().Contains(Class185.smethod_0(537660543))) { this.string_12 = (string)jobject[Class185.smethod_0(537658264)]; } else { this.class4_0.method_0(Class185.smethod_0(537660491), Class185.smethod_0(537700909), false); GClass3.smethod_0(httpResponseMessage_.smethod_3(), Class185.smethod_0(537710733)); } } catch (ThreadAbortException) { } catch { this.class4_0.method_4(Class185.smethod_0(537658263), Class185.smethod_0(537700781), true, false); Thread.Sleep(GClass0.int_0); continue; } break; } }
// Token: 0x06000162 RID: 354 RVA: 0x0000FBD4 File Offset: 0x0000DDD4 public void method_12() { for (;;) { try { this.class4_0.method_4("Processing payment", "orange", true, false); Dictionary <string, string> dictionary = Class70.smethod_1(); dictionary["token"] = this.string_9; HttpResponseMessage httpResponseMessage_ = this.class70_0.method_7("https://www.antonioli.eu/checkout/payment/process_token.json", dictionary, false); JObject jobject = httpResponseMessage_.smethod_0(); if (jobject.ContainsKey("error")) { if (jobject["error"].ToString().Contains("Autorizzazione negata")) { this.class4_0.method_9(true); this.class4_0.method_0("Payment Declined", "red", false); } else { this.class4_0.method_0("Payment error", "red", false); GClass3.smethod_0(httpResponseMessage_.smethod_3(), "error"); } } else if (httpResponseMessage_.smethod_3().Contains("gestpay_completion")) { this.string_12 = (string)jobject["redirect"]; } else { this.class4_0.method_0("Payment error", "red", false); GClass3.smethod_0(httpResponseMessage_.smethod_3(), "error"); } } catch (ThreadAbortException) { } catch { this.class4_0.method_4("Error processing payment", "#c2c2c2", true, false); Thread.Sleep(GClass0.int_0); continue; } break; } }
// Token: 0x0600002A RID: 42 RVA: 0x000080B0 File Offset: 0x000062B0 internal void method_0() { Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); while (!CaptchaQueue.concurrentDictionary_0.ContainsKey(this.class2_0.concurrentDictionary_0["token"]) && this.class2_0.concurrentDictionary_0["use_invisible"] == "true" && CaptchaQueue.list_0.Contains(this.class2_0.concurrentDictionary_0)) { try { string text = this.webView_0.QueueScriptCall("if(window.frames.length > 1){ if(window.frames[1].document.readyState == 'complete'){ window.frames[1].document.body.innerHTML; }else{ '' }}else{ ''}").smethod_0(); if (text.Contains("rc-imageselect-desc")) { this.webView_0.LoadHtml("WAITING"); GClass3.smethod_0("Manual solving needed, pushing to main queue", "Captcha Queue"); this.class2_0.concurrentDictionary_0["use_invisible"] = "false"; this.class2_0.concurrentDictionary_0["solving"] = "false"; CaptchaQueue.concurrentDictionary_1[this.string_0] = true; return; } if (text.Contains("recaptcha-checkbox-checkmark")) { this.webView_0.LoadHtml("WAITING"); CaptchaQueue.concurrentDictionary_1[this.string_0] = true; return; } if (stopwatch.Elapsed.TotalSeconds > 5.0) { this.webView_0.LoadHtml("WAITING"); GClass3.smethod_0("Solving timed out, pushing to main queue", "Captcha Queue"); this.class2_0.concurrentDictionary_0["solving"] = "false"; this.class2_0.concurrentDictionary_0["use_invisible"] = "false"; CaptchaQueue.concurrentDictionary_1[this.string_0] = true; return; } } catch { } Thread.Sleep(200); } CaptchaQueue.concurrentDictionary_1[this.string_0] = true; }
// Token: 0x0600002A RID: 42 RVA: 0x00008538 File Offset: 0x00006738 internal void method_0() { Stopwatch stopwatch = new Stopwatch(); stopwatch.Start(); while (!GForm0.concurrentDictionary_0.ContainsKey(this.class2_0.concurrentDictionary_0[Class185.smethod_0(537692633)]) && this.class2_0.concurrentDictionary_0[Class185.smethod_0(537706414)] == Class185.smethod_0(537692590) && GForm0.list_0.Contains(this.class2_0.concurrentDictionary_0)) { try { string text = this.webView_0.QueueScriptCall(Class185.smethod_0(537706478)).smethod_0(); if (text.Contains(Class185.smethod_0(537706122))) { this.webView_0.LoadHtml(Class185.smethod_0(537706480)); GClass3.smethod_0(Class185.smethod_0(537706164), Class185.smethod_0(537706183)); this.class2_0.concurrentDictionary_0[Class185.smethod_0(537706414)] = Class185.smethod_0(537692774); this.class2_0.concurrentDictionary_0[Class185.smethod_0(537692776)] = Class185.smethod_0(537692774); GForm0.concurrentDictionary_1[this.string_0] = true; return; } if (text.Contains(Class185.smethod_0(537706219))) { this.webView_0.LoadHtml(Class185.smethod_0(537706480)); GForm0.concurrentDictionary_1[this.string_0] = true; return; } if (stopwatch.Elapsed.TotalSeconds > 5.0) { this.webView_0.LoadHtml(Class185.smethod_0(537706480)); GClass3.smethod_0(Class185.smethod_0(537705998), Class185.smethod_0(537706183)); this.class2_0.concurrentDictionary_0[Class185.smethod_0(537692776)] = Class185.smethod_0(537692774); this.class2_0.concurrentDictionary_0[Class185.smethod_0(537706414)] = Class185.smethod_0(537692774); GForm0.concurrentDictionary_1[this.string_0] = true; return; } } catch { } Thread.Sleep(200); } GForm0.concurrentDictionary_1[this.string_0] = true; }
// Token: 0x060000FB RID: 251 RVA: 0x0000E29C File Offset: 0x0000C49C public static void smethod_2(string string_0) { try { HtmlDocument htmlDocument = new HtmlDocument(); htmlDocument.LoadHtml(string_0); string innerText = htmlDocument.DocumentNode.SelectSingleNode(Class185.smethod_0(537704168)).InnerText; GClass3.smethod_0(Class185.smethod_0(537704167) + innerText, Class185.smethod_0(537704074)); string text = htmlDocument.DocumentNode.SelectSingleNode(Class185.smethod_0(537703950)).Attributes[Class185.smethod_0(537703994)].Value.Replace(Class185.smethod_0(537703988), string.Empty); GClass3.smethod_0(Class185.smethod_0(537703983) + text, Class185.smethod_0(537704074)); int count = htmlDocument.DocumentNode.SelectNodes(Class185.smethod_0(537704023)).Count; GClass3.smethod_0(string.Format(Class185.smethod_0(537704032), count), Class185.smethod_0(537704074)); int num = htmlDocument.DocumentNode.SelectNodes(Class185.smethod_0(537703950)).Select(new Func <HtmlNode, string>(Class20.Class21.class21_0.method_0)).Distinct <string>().Count <string>(); GClass3.smethod_0(string.Format(Class185.smethod_0(537703818), num), Class185.smethod_0(537704074)); int num2 = htmlDocument.DocumentNode.SelectNodes(Class185.smethod_0(537703950)).Select(new Func <HtmlNode, string>(Class20.Class21.class21_0.method_1)).Distinct <string>().Count <string>(); GClass3.smethod_0(string.Format(Class185.smethod_0(537703858), num2), Class185.smethod_0(537704074)); WebClient webClient = new WebClient(); byte[] buffer; try { buffer = webClient.DownloadData(text); } finally { ((IDisposable)webClient).Dispose(); } MemoryStream memoryStream = new MemoryStream(buffer); try { Class20.smethod_1(new Bitmap(memoryStream), num, num2, innerText); } finally { ((IDisposable)memoryStream).Dispose(); } } catch { GClass3.smethod_0(Class185.smethod_0(537703901), Class185.smethod_0(537704074)); } }
// Token: 0x060000FB RID: 251 RVA: 0x0000D260 File Offset: 0x0000B460 public static void smethod_2(string string_0) { try { HtmlDocument htmlDocument = new HtmlDocument(); htmlDocument.LoadHtml(string_0); string innerText = htmlDocument.DocumentNode.SelectSingleNode("//strong").InnerText; GClass3.smethod_0("Found question: " + innerText, "OCR"); string text = htmlDocument.DocumentNode.SelectSingleNode("//img").Attributes["src"].Value.Replace("amp;", string.Empty); GClass3.smethod_0("Found image URL: " + text, "OCR"); int count = htmlDocument.DocumentNode.SelectNodes("//td[@class='rc-imageselect-tile']").Count; GClass3.smethod_0(string.Format("{0} images detected", count), "OCR"); int num = htmlDocument.DocumentNode.SelectNodes("//img").Select(new Func <HtmlNode, string>(Class20.Class21.class21_0.method_0)).Distinct <string>().Count <string>(); GClass3.smethod_0(string.Format("{0} rows detected", num), "OCR"); int num2 = htmlDocument.DocumentNode.SelectNodes("//img").Select(new Func <HtmlNode, string>(Class20.Class21.class21_0.method_1)).Distinct <string>().Count <string>(); GClass3.smethod_0(string.Format("{0} columns detected", num2), "OCR"); WebClient webClient = new WebClient(); byte[] buffer; try { buffer = webClient.DownloadData(text); } finally { ((IDisposable)webClient).Dispose(); } MemoryStream memoryStream = new MemoryStream(buffer); try { Class20.smethod_1(new Bitmap(memoryStream), num, num2, innerText); } finally { ((IDisposable)memoryStream).Dispose(); } } catch { GClass3.smethod_0("Error extracting OCR info", "OCR"); } }
// Token: 0x0600017E RID: 382 RVA: 0x000102D4 File Offset: 0x0000E4D4 public static Task <HttpResponseMessage> smethod_1(string string_0, JObject jobject_0, bool bool_0) { if (GClass2.concurrentDictionary_0.ContainsKey(string_0)) { if (GClass2.concurrentDictionary_0[string_0].task_0.Status == TaskStatus.WaitingForActivation) { GClass2.concurrentDictionary_0[string_0].dateTime_0 = DateTime.Now; goto IL_8B; } } if (bool_0) { GClass3.smethod_0("Starting monitor for: " + new Uri(string_0).Authority, "Monitor"); } GClass4 gclass = new GClass4(); GClass2.concurrentDictionary_0[string_0] = gclass; GClass2.concurrentDictionary_0[string_0].task_0 = GClass2.smethod_0(gclass, string_0, jobject_0); IL_8B: return(GClass2.concurrentDictionary_0[string_0].task_1); }
// Token: 0x06000211 RID: 529 RVA: 0x00012C88 File Offset: 0x00010E88 void IAsyncStateMachine.MoveNext() { int num = this.int_0; try { TaskAwaiter awaiter; if (num == 0) { awaiter = this.taskAwaiter_0; this.taskAwaiter_0 = default(TaskAwaiter); this.int_0 = -1; goto IL_68; } IL_28: if (Class60.webSocket_0.ReadyState == 3) { GClass3.smethod_0("Connection to server lost, attempting to reconnect...", "Websocket"); Class60.webSocket_0.ConnectAsync(); } awaiter = Task.Delay(10000).GetAwaiter(); if (!awaiter.IsCompleted) { this.int_0 = 0; this.taskAwaiter_0 = awaiter; this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Class60.Struct38>(ref awaiter, ref this); return; } IL_68: awaiter.GetResult(); goto IL_28; } catch (Exception exception) { this.int_0 = -2; this.asyncVoidMethodBuilder_0.SetException(exception); } }
// Token: 0x060000FA RID: 250 RVA: 0x0000D1BC File Offset: 0x0000B3BC public static void smethod_1(Bitmap bitmap_0, int int_0, int int_1, string string_0) { GClass3.smethod_0("Starting captcha OCR service", "OCR"); int width = bitmap_0.Width; int height = bitmap_0.Height; int num = 1; JObject jobject = new JObject(); for (int i = 0; i < height; i += height / int_0) { for (int j = 0; j < width; j += width / int_1) { Class20.smethod_3(Class20.smethod_0(j, i, width / int_1, height / int_0, bitmap_0), num, jobject, string_0); num++; } } while (jobject.Count != num - 1) { Thread.Sleep(200); } GClass3.smethod_0("OCR completed, attempting to solve captcha", "OCR"); Console.WriteLine(jobject.ToString()); }
// Token: 0x060000FA RID: 250 RVA: 0x0000E1E4 File Offset: 0x0000C3E4 public static void smethod_1(Bitmap bitmap_0, int int_0, int int_1, string string_0) { GClass3.smethod_0(Class185.smethod_0(537704068), Class185.smethod_0(537704074)); int width = bitmap_0.Width; int height = bitmap_0.Height; int num = 1; JObject jobject = new JObject(); for (int i = 0; i < height; i += height / int_0) { for (int j = 0; j < width; j += width / int_1) { Class20.smethod_3(Class20.smethod_0(j, i, width / int_1, height / int_0, bitmap_0), num, jobject, string_0); num++; } } while (jobject.Count != num - 1) { Thread.Sleep(200); } GClass3.smethod_0(Class185.smethod_0(537704103), Class185.smethod_0(537704074)); Console.WriteLine(jobject.ToString()); }
// Token: 0x06000359 RID: 857 RVA: 0x00013F3C File Offset: 0x0001213C private void method_1(bool bool_0) { checked { if (bool_0) { int num = 0; do { int num2 = num * 1000 + this.random_0.Next(0, 999); num2 = num2 * 10 + GClass3.smethod_0(num2); this.list_0.Add(num2.ToString("00000000")); num++; }while (num <= 9999); return; } int num3 = 0; do { this.list_0.Add((num3 * 10000 + this.random_0.Next(0, 9999)).ToString("00000000")); num3++; }while (num3 <= 9999); } }
// Token: 0x0600035A RID: 858 RVA: 0x00013FE0 File Offset: 0x000121E0 private void method_2(string string_0, bool bool_0) { checked { if (bool_0) { int num = 0; do { int num2 = (int)Math.Round(unchecked (Conversions.ToDouble(string_0) * 1000.0 + (double)num)); num2 = num2 * 10 + GClass3.smethod_0(Conversions.ToInteger(num2.ToString("0000000"))); this.list_0.Add(Conversions.ToString(num2)); num++; }while (num <= 999); return; } int num3 = 0; do { this.list_0.Add((unchecked (Conversions.ToDouble(string_0) * 10000.0 + (double)num3)).ToString("00000000")); num3++; }while (num3 <= 9999); } }
// Token: 0x060002C0 RID: 704 RVA: 0x00019684 File Offset: 0x00017884 public bool method_0(object object_0, X509Certificate x509Certificate_0, X509Chain x509Chain_0, SslPolicyErrors sslPolicyErrors_0) { string host = ((HttpWebRequest)object_0).Host; string certHashString = x509Certificate_0.GetCertHashString(); if (Debugger.IsAttached) { return(true); } if (Class173.string_2.ToUpper().Contains(certHashString.ToUpper())) { return(true); } if (this.bool_0) { return(x509Certificate_0.Issuer.Contains(Class185.smethod_0(537713911)) || x509Certificate_0.Issuer.Contains(Class185.smethod_0(537713672))); } if (host.Contains(Class185.smethod_0(537692180))) { return(true); } GClass3.smethod_0(certHashString, Class185.smethod_0(537713701)); return(host.Replace(Class185.smethod_0(537700393), string.Empty) == Class185.smethod_0(537713759) && x509Certificate_0.Issuer == Class185.smethod_0(537713784)); }
// Token: 0x06000135 RID: 309 RVA: 0x000036E5 File Offset: 0x000018E5 public static void smethod_2(object sender, ExceptionEventArgs e) { GClass3.smethod_0(e.ErrorException.Message, "Webview Error"); }