예제 #1
0
 // Token: 0x06000023 RID: 35 RVA: 0x00007E4C File Offset: 0x0000604C
 internal void method_2()
 {
     if (CaptchaQueue.list_0.Count > 0)
     {
         ConcurrentDictionary <string, string>[] array = CaptchaQueue.list_0.Where(new Func <ConcurrentDictionary <string, string>, bool>(CaptchaQueue.Class0.class0_0.method_3)).ToArray <ConcurrentDictionary <string, string> >();
         for (int i = 0; i < array.Length; i++)
         {
             CaptchaQueue.Class2 @class = new CaptchaQueue.Class2();
             @class.concurrentDictionary_0 = array[i];
             CaptchaQueue.Class3 class2 = new CaptchaQueue.Class3();
             class2.class2_0 = @class;
             if (class2.class2_0.concurrentDictionary_0 == null)
             {
                 return;
             }
             bool flag  = false;
             bool flag2 = false;
             class2.webView_0 = CaptchaQueue.smethod_2(class2.class2_0.concurrentDictionary_0["use_invisible"] == "true", out flag2, out flag, out class2.string_0);
             if (!flag2)
             {
                 class2.class2_0.concurrentDictionary_0["use_invisible"] = "false";
             }
             class2.class2_0.concurrentDictionary_0["browser_name"] = class2.string_0;
             if (flag)
             {
                 class2.class2_0.concurrentDictionary_0["solving"] = "true";
                 if (!flag2)
                 {
                     CaptchaQueue.soundPlayer_0.Play();
                 }
                 if (class2.class2_0.concurrentDictionary_0["domain"].Contains("supreme"))
                 {
                     class2.webView_0.LoadHtml(CaptchaQueue.smethod_5(class2.class2_0.concurrentDictionary_0["sitekey"], class2.class2_0.concurrentDictionary_0["token"]), class2.class2_0.concurrentDictionary_0["domain"]);
                 }
                 else
                 {
                     class2.webView_0.LoadHtml(CaptchaQueue.smethod_4(class2.class2_0.concurrentDictionary_0["sitekey"], class2.class2_0.concurrentDictionary_0["taskID"], class2.class2_0.concurrentDictionary_0["token"], class2.class2_0.concurrentDictionary_0["domain"]), class2.class2_0.concurrentDictionary_0["domain"]);
                 }
                 if (flag2)
                 {
                     new Task(new Action(class2.method_0)).Start();
                 }
             }
         }
         return;
     }
     if (CaptchaQueue.concurrentDictionary_1["main"] && !CaptchaQueue.webView_0.GetText().Contains("WAITING"))
     {
         CaptchaQueue.smethod_7();
     }
 }
예제 #2
0
    // Token: 0x0600000D RID: 13 RVA: 0x00006D68 File Offset: 0x00004F68
    public void method_0()
    {
        BrowserOptions options = new BrowserOptions
        {
            EnableXSSAuditor  = new bool?(false),
            EnableWebSecurity = new bool?(false)
        };

        CaptchaQueue.webView_0 = new WebView();
        CaptchaQueue.webView_0.SetOptions(options);
        CaptchaQueue.webView_0.Create(this.browser_panel.Handle);
        CaptchaQueue.webView_0.RegisterJSExtensionFunction("submit", new JSExtInvokeHandler(this.method_1));
        CaptchaQueue.webView_0.CertificateError    += this.method_3;
        CaptchaQueue.webView_0.BeforeContextMenu   += this.method_2;
        CaptchaQueue.concurrentDictionary_1["main"] = true;
        CaptchaQueue.webView_1 = this.threadRunner_0.CreateWebView();
        CaptchaQueue.webView_1.SetOptions(options);
        CaptchaQueue.webView_1.RegisterJSExtensionFunction("submit", new JSExtInvokeHandler(this.method_1));
        CaptchaQueue.webView_1.CertificateError        += this.method_3;
        CaptchaQueue.webView_1.BeforeContextMenu       += this.method_2;
        CaptchaQueue.concurrentDictionary_1["browser2"] = true;
        CaptchaQueue.webView_2 = this.threadRunner_0.CreateWebView();
        CaptchaQueue.webView_2.SetOptions(options);
        CaptchaQueue.webView_2.RegisterJSExtensionFunction("submit", new JSExtInvokeHandler(this.method_1));
        CaptchaQueue.webView_2.CertificateError        += this.method_3;
        CaptchaQueue.webView_2.BeforeContextMenu       += this.method_2;
        CaptchaQueue.concurrentDictionary_1["browser3"] = true;
        CaptchaQueue.webView_3 = this.threadRunner_0.CreateWebView();
        CaptchaQueue.webView_3.SetOptions(options);
        CaptchaQueue.webView_3.RegisterJSExtensionFunction("submit", new JSExtInvokeHandler(this.method_1));
        CaptchaQueue.webView_3.CertificateError        += this.method_3;
        CaptchaQueue.webView_3.BeforeContextMenu       += this.method_2;
        CaptchaQueue.concurrentDictionary_1["browser4"] = true;
        CaptchaQueue.smethod_7();
        this.google_Login_0 = new Google_Login();
    }