예제 #1
0
    // Token: 0x060002B3 RID: 691 RVA: 0x00018F88 File Offset: 0x00017188
    public static void smethod_13(object object_0, JSExtInvokeArgs jsextInvokeArgs_0)
    {
        OpenFileDialog openFileDialog = new OpenFileDialog();

        openFileDialog.Filter = Class185.smethod_0(537699280);
        openFileDialog.Title  = Class185.smethod_0(537699326);
        if (openFileDialog.ShowDialog() == DialogResult.OK)
        {
            JObject jobject = JObject.Parse(new StreamReader(openFileDialog.FileName).ReadToEnd().ToString());
            GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537699100)).smethod_0();
            GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537699181)).smethod_0();
            GForm1.webView_0.QueueScriptCall(string.Format(Class185.smethod_0(537702007), jobject[Class185.smethod_0(537701443)].ToString().smethod_6()));
            GForm1.webView_0.QueueScriptCall(string.Format(Class185.smethod_0(537701790), jobject[Class185.smethod_0(537701503)].ToString().smethod_6()));
            GForm1.webView_0.QueueScriptCall(string.Format(Class185.smethod_0(537699025), jobject[Class185.smethod_0(537701485)].ToString().smethod_6()));
            GClass0.jarray_0  = JArray.Parse(jobject[Class185.smethod_0(537701503)].ToString());
            GClass0.jobject_0 = JObject.Parse(jobject[Class185.smethod_0(537701485)].ToString());
            GClass0.jobject_1 = JObject.Parse(jobject[Class185.smethod_0(537701443)].ToString());
            GClass0.int_1     = (int)jobject[Class185.smethod_0(537699228)][Class185.smethod_0(537699211)];
            GClass0.int_0     = (int)jobject[Class185.smethod_0(537699228)][Class185.smethod_0(537699262)];
            GClass0.string_1  = ((jobject[Class185.smethod_0(537699228)][Class185.smethod_0(537699234)] == null) ? string.Empty : jobject[Class185.smethod_0(537699228)][Class185.smethod_0(537699234)].ToString());
            Class68.smethod_1();
            GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537699067));
            GClass0.smethod_2();
        }
    }
예제 #2
0
파일: Class68.cs 프로젝트: unionjl/CyberAIO
    // Token: 0x060002B3 RID: 691 RVA: 0x00016AF4 File Offset: 0x00014CF4
    public static void smethod_13(object object_0, JSExtInvokeArgs jsextInvokeArgs_0)
    {
        OpenFileDialog openFileDialog = new OpenFileDialog();

        openFileDialog.Filter = "CyberAIO Backups|*.json";
        openFileDialog.Title  = "Select your backup file";
        if (openFileDialog.ShowDialog() == DialogResult.OK)
        {
            JObject jobject = JObject.Parse(new StreamReader(openFileDialog.FileName).ReadToEnd().ToString());
            MainWindow.webView_0.QueueScriptCall("$('#taskbody')[0].innerHTML = ''; stopTask(JSON.stringify(tasklist)); tasklist = {}; setTasks(); tasks = 0").smethod_0();
            MainWindow.webView_0.QueueScriptCall("proxy_list = []; $('#proxybody')[0].innerHTML = ''; setProxies(); proxies = 0").smethod_0();
            MainWindow.webView_0.QueueScriptCall(string.Format("loadTasks('{0}')", jobject["tasks"].ToString().smethod_6()));
            MainWindow.webView_0.QueueScriptCall(string.Format("loadProxies('{0}')", jobject["proxies"].ToString().smethod_6()));
            MainWindow.webView_0.QueueScriptCall(string.Format("loadProfiles('{0}')", jobject["profiles"].ToString().smethod_6()));
            GClass0.jarray_0  = JArray.Parse(jobject["proxies"].ToString());
            GClass0.jobject_0 = JObject.Parse(jobject["profiles"].ToString());
            GClass0.jobject_1 = JObject.Parse(jobject["tasks"].ToString());
            GClass0.int_1     = (int)jobject["settings"]["global_delay"];
            GClass0.int_0     = (int)jobject["settings"]["monitor_delay"];
            GClass0.string_1  = ((jobject["settings"]["webhook"] == null) ? string.Empty : jobject["settings"]["webhook"].ToString());
            Class68.smethod_1();
            MainWindow.webView_0.QueueScriptCall("swal('Success', 'Successfully imported tasks, proxies, profiles and settings!','success',{timer:1500})");
            GClass0.smethod_2();
        }
    }
예제 #3
0
    // Token: 0x06000035 RID: 53 RVA: 0x00008B18 File Offset: 0x00006D18
    public static void smethod_1()
    {
        if (!File.Exists(GClass0.string_0))
        {
            GClass0.smethod_2();
        }
        JObject jobject;

        try
        {
            jobject = JObject.Parse(File.ReadAllText(GClass0.string_0));
        }
        catch
        {
            jobject = new JObject();
        }
        GClass0.int_0     = (int)jobject[Class185.smethod_0(537699228)][Class185.smethod_0(537699262)];
        GClass0.int_1     = (int)jobject[Class185.smethod_0(537699228)][Class185.smethod_0(537714228)];
        GClass0.string_1  = (string)jobject[Class185.smethod_0(537699228)][Class185.smethod_0(537699234)];
        GClass0.bool_0    = (jobject[Class185.smethod_0(537699228)][Class185.smethod_0(537714214)] != null && (bool)jobject[Class185.smethod_0(537699228)][Class185.smethod_0(537714214)]);
        GClass0.string_2  = (string)jobject[Class185.smethod_0(537714250)];
        GClass0.jarray_0  = (JArray)jobject[Class185.smethod_0(537701503)];
        GClass0.jobject_0 = (JObject)jobject[Class185.smethod_0(537701485)];
        GClass0.jobject_1 = (JObject)jobject[Class185.smethod_0(537701443)];
        GClass0.jobject_3 = (((JObject)jobject[Class185.smethod_0(537714300)] != null) ? ((JObject)jobject[Class185.smethod_0(537714300)]) : new JObject());
    }
예제 #4
0
    // Token: 0x06000130 RID: 304 RVA: 0x0000F030 File Offset: 0x0000D230
    public static void smethod_9(object object_0, JSExtInvokeArgs jsextInvokeArgs_0)
    {
        GClass0.smethod_2();
        MethodInvoker method = new MethodInvoker(Class23.Class24.class24_0.method_0);

        GForm1.gform1_0.BeginInvoke(method, null);
        Class23.automaticUpdaterBackend_0.InstallNow();
    }
예제 #5
0
 // Token: 0x060002AF RID: 687 RVA: 0x00018D88 File Offset: 0x00016F88
 public static void smethod_9(object object_0, JSExtInvokeArgs jsextInvokeArgs_0)
 {
     GClass0.int_1    = (int)Convert.ToInt16(GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537701767)).smethod_0());
     GClass0.int_0    = (int)Convert.ToInt16(GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537701797)).smethod_0());
     GClass0.string_1 = GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537701828)).smethod_0();
     GClass0.bool_0   = (GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537701870)).smethod_0() == Class185.smethod_0(537692590));
     GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537701674));
     GClass0.smethod_2();
 }
예제 #6
0
파일: Class68.cs 프로젝트: unionjl/CyberAIO
 // Token: 0x060002AF RID: 687 RVA: 0x00016950 File Offset: 0x00014B50
 public static void smethod_9(object object_0, JSExtInvokeArgs jsextInvokeArgs_0)
 {
     GClass0.int_1    = (int)Convert.ToInt16(MainWindow.webView_0.QueueScriptCall("$('#globaldelay').val()").smethod_0());
     GClass0.int_0    = (int)Convert.ToInt16(MainWindow.webView_0.QueueScriptCall("$('#monitordelay').val()").smethod_0());
     GClass0.string_1 = MainWindow.webView_0.QueueScriptCall("$('#webhook').val()").smethod_0();
     GClass0.bool_0   = (MainWindow.webView_0.QueueScriptCall("$('#desktop-notification').prop('checked').toString()").smethod_0() == "true");
     MainWindow.webView_0.QueueScriptCall("swal('Success', 'Successfully saved settings','success',{timer:1500})");
     GClass0.smethod_2();
 }
예제 #7
0
    // Token: 0x06000202 RID: 514 RVA: 0x00011970 File Offset: 0x0000FB70
    private async void activate_btn_Click(object sender, EventArgs e)
    {
        this.activate_btn.ButtonText = " Please wait...";
        string text = "valid";

        if (text == "valid")
        {
            GClass0.string_2 = this.key_box.Text;
            GClass0.smethod_2();
            this.key_box.BorderColorFocused    = Color.Green;
            this.key_box.BorderColorIdle       = Color.Green;
            this.key_box.BorderColorMouseHover = Color.Green;
            this.status_label.Text             = "Key is valid, thank you for your purchase!";
            this.status_label.ForeColor        = Color.Green;
            this.method_1();
            new Loading(true, text);
        }
        else if (text == "assigned")
        {
            this.key_box.BorderColorFocused    = Color.Red;
            this.key_box.BorderColorIdle       = Color.Red;
            this.key_box.BorderColorMouseHover = Color.Red;
            this.status_label.Text             = "Key is already activated on another computer, please deactivate it first";
            this.status_label.ForeColor        = Color.Red;
        }
        else if (text == "invalid")
        {
            this.key_box.BorderColorFocused    = Color.Red;
            this.key_box.BorderColorIdle       = Color.Red;
            this.key_box.BorderColorMouseHover = Color.Red;
            this.status_label.Text             = "Key is invalid";
            this.status_label.ForeColor        = Color.Red;
        }
        else if (text == "error")
        {
            this.key_box.BorderColorFocused    = Color.Red;
            this.key_box.BorderColorIdle       = Color.Red;
            this.key_box.BorderColorMouseHover = Color.Red;
            this.status_label.Text             = "There was an error checking your key, please contact support";
            this.status_label.ForeColor        = Color.Red;
        }
        this.activate_btn.ButtonText = "  ACTIVATE";
    }
예제 #8
0
    // Token: 0x06000202 RID: 514 RVA: 0x0001328C File Offset: 0x0001148C
    private async void bunifuFlatButton_0_Click(object sender, EventArgs e)
    {
        this.bunifuFlatButton_0.ButtonText = Class185.smethod_0(537708238);
        string text = await GForm3.smethod_11(this.bunifuMetroTextbox_0.Text, true, false);

        if (text == Class185.smethod_0(537706979))
        {
            GClass0.string_2 = this.bunifuMetroTextbox_0.Text;
            GClass0.smethod_2();
            this.bunifuMetroTextbox_0.BorderColorFocused    = Color.Green;
            this.bunifuMetroTextbox_0.BorderColorIdle       = Color.Green;
            this.bunifuMetroTextbox_0.BorderColorMouseHover = Color.Green;
            this.bunifuCustomLabel_0.Text      = Class185.smethod_0(537708276);
            this.bunifuCustomLabel_0.ForeColor = Color.Green;
            this.method_1();
            new GForm5(true, text);
        }
        else if (text == Class185.smethod_0(537708475))
        {
            this.bunifuMetroTextbox_0.BorderColorFocused    = Color.Red;
            this.bunifuMetroTextbox_0.BorderColorIdle       = Color.Red;
            this.bunifuMetroTextbox_0.BorderColorMouseHover = Color.Red;
            this.bunifuCustomLabel_0.Text      = Class185.smethod_0(537708037);
            this.bunifuCustomLabel_0.ForeColor = Color.Red;
        }
        else if (text == Class185.smethod_0(537708458))
        {
            this.bunifuMetroTextbox_0.BorderColorFocused    = Color.Red;
            this.bunifuMetroTextbox_0.BorderColorIdle       = Color.Red;
            this.bunifuMetroTextbox_0.BorderColorMouseHover = Color.Red;
            this.bunifuCustomLabel_0.Text      = Class185.smethod_0(537708148);
            this.bunifuCustomLabel_0.ForeColor = Color.Red;
        }
        else if (text == Class185.smethod_0(537710733))
        {
            this.bunifuMetroTextbox_0.BorderColorFocused    = Color.Red;
            this.bunifuMetroTextbox_0.BorderColorIdle       = Color.Red;
            this.bunifuMetroTextbox_0.BorderColorMouseHover = Color.Red;
            this.bunifuCustomLabel_0.Text      = Class185.smethod_0(537707929);
            this.bunifuCustomLabel_0.ForeColor = Color.Red;
        }
        this.bunifuFlatButton_0.ButtonText = Class185.smethod_0(537707996);
    }
예제 #9
0
        // Token: 0x0600020E RID: 526 RVA: 0x00012DB4 File Offset: 0x00010FB4
        void IAsyncStateMachine.MoveNext()

        {
            int num = this.int_0;

            try
            {
                TaskAwaiter <HttpResponseMessage> awaiter;
                if (num != 0)
                {
                    awaiter = new Class70(null, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36", 10, false, false, null, false).method_6(string.Format("https://www.cybersole.io/api/{0}?secret={1}&key={2}&activate=0", Class168.struct42_1.method_1(), Class168.struct42_0.method_1(), GClass0.string_2), false).GetAwaiter();
                    if (!awaiter.IsCompleted)
                    {
                        this.int_0         = 0;
                        this.taskAwaiter_0 = awaiter;
                        this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <HttpResponseMessage>, Licenser.Struct7>(ref awaiter, ref this);
                        return;
                    }
                }
                else
                {
                    awaiter            = this.taskAwaiter_0;
                    this.taskAwaiter_0 = default(TaskAwaiter <HttpResponseMessage>);
                    this.int_0         = -1;
                }
                awaiter.GetResult();
                GClass0.string_2 = null;
                GClass0.smethod_2();
            }
            catch (Exception exception)
            {
                this.int_0 = -2;
                this.asyncVoidMethodBuilder_0.SetException(exception);
                return;
            }
            this.int_0 = -2;
            this.asyncVoidMethodBuilder_0.SetResult();
        }
예제 #10
0
        // Token: 0x0600020E RID: 526 RVA: 0x000148E0 File Offset: 0x00012AE0
        void IAsyncStateMachine.MoveNext()
        {
            int num = this.int_0;

            try
            {
                TaskAwaiter <HttpResponseMessage> awaiter;
                if (num != 0)
                {
                    awaiter = new Class70(null, Class185.smethod_0(537692910), 10, false, false, null, false).method_6(string.Format(Class185.smethod_0(537708169), Class173.struct42_1.method_1(), Class173.struct42_0.method_1(), GClass0.string_2), false).GetAwaiter();
                    if (!awaiter.IsCompleted)
                    {
                        this.int_0         = 0;
                        this.taskAwaiter_0 = awaiter;
                        this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <HttpResponseMessage>, GForm3.Struct7>(ref awaiter, ref this);
                        return;
                    }
                }
                else
                {
                    awaiter            = this.taskAwaiter_0;
                    this.taskAwaiter_0 = default(TaskAwaiter <HttpResponseMessage>);
                    this.int_0         = -1;
                }
                awaiter.GetResult();
                GClass0.string_2 = null;
                GClass0.smethod_2();
            }
            catch (Exception exception)
            {
                this.int_0 = -2;
                this.asyncVoidMethodBuilder_0.SetException(exception);
                return;
            }
            this.int_0 = -2;
            this.asyncVoidMethodBuilder_0.SetResult();
        }
예제 #11
0
 // Token: 0x0600007C RID: 124 RVA: 0x0000306A File Offset: 0x0000126A
 public void method_9(object object_0, JSExtInvokeArgs jsextInvokeArgs_0)
 {
     GClass0.smethod_2();
     GForm1.gform1_0.BeginInvoke(null, null);
     Process.GetCurrentProcess().Kill();
 }
예제 #12
0
파일: Class68.cs 프로젝트: unionjl/CyberAIO
 // Token: 0x060002AB RID: 683 RVA: 0x000044C4 File Offset: 0x000026C4
 public static void smethod_5(object object_0, JSExtInvokeArgs jsextInvokeArgs_0)
 {
     GClass0.jarray_0 = JArray.Parse(MainWindow.webView_0.QueueScriptCall("JSON.stringify(proxy_list)").smethod_0());
     GClass0.smethod_2();
 }
예제 #13
0
파일: Class68.cs 프로젝트: unionjl/CyberAIO
 // Token: 0x060002AA RID: 682 RVA: 0x0000449F File Offset: 0x0000269F
 public static void smethod_4(object object_0, JSExtInvokeArgs jsextInvokeArgs_0)
 {
     GClass0.jobject_1 = JObject.Parse(MainWindow.webView_0.QueueScriptCall("JSON.stringify(tasklist)").smethod_0());
     GClass0.smethod_2();
 }
예제 #14
0
        // Token: 0x0600020C RID: 524 RVA: 0x00014618 File Offset: 0x00012818
        void IAsyncStateMachine.MoveNext()
        {
            int    num2;
            int    num   = num2;
            GForm3 gform = this;

            try
            {
                TaskAwaiter <string> taskAwaiter;
                if (num != 0)
                {
                    gform.bunifuFlatButton_0.ButtonText = Class185.smethod_0(537708238);
                    taskAwaiter = GForm3.smethod_11(gform.bunifuMetroTextbox_0.Text, true, false).GetAwaiter();
                    if (!taskAwaiter.IsCompleted)
                    {
                        num2 = 0;
                        TaskAwaiter <string> taskAwaiter2 = taskAwaiter;
                        this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <string>, GForm3.Struct6>(ref taskAwaiter, ref this);
                        return;
                    }
                }
                else
                {
                    TaskAwaiter <string> taskAwaiter2;
                    taskAwaiter  = taskAwaiter2;
                    taskAwaiter2 = default(TaskAwaiter <string>);
                    num2         = -1;
                }
                string result = taskAwaiter.GetResult();
                if (result == Class185.smethod_0(537706979))
                {
                    GClass0.string_2 = gform.bunifuMetroTextbox_0.Text;
                    GClass0.smethod_2();
                    gform.bunifuMetroTextbox_0.BorderColorFocused    = Color.Green;
                    gform.bunifuMetroTextbox_0.BorderColorIdle       = Color.Green;
                    gform.bunifuMetroTextbox_0.BorderColorMouseHover = Color.Green;
                    gform.bunifuCustomLabel_0.Text      = Class185.smethod_0(537708276);
                    gform.bunifuCustomLabel_0.ForeColor = Color.Green;
                    gform.method_1();
                    new GForm5(true, result);
                }
                else if (result == Class185.smethod_0(537708475))
                {
                    gform.bunifuMetroTextbox_0.BorderColorFocused    = Color.Red;
                    gform.bunifuMetroTextbox_0.BorderColorIdle       = Color.Red;
                    gform.bunifuMetroTextbox_0.BorderColorMouseHover = Color.Red;
                    gform.bunifuCustomLabel_0.Text      = Class185.smethod_0(537708037);
                    gform.bunifuCustomLabel_0.ForeColor = Color.Red;
                }
                else if (result == Class185.smethod_0(537708458))
                {
                    gform.bunifuMetroTextbox_0.BorderColorFocused    = Color.Red;
                    gform.bunifuMetroTextbox_0.BorderColorIdle       = Color.Red;
                    gform.bunifuMetroTextbox_0.BorderColorMouseHover = Color.Red;
                    gform.bunifuCustomLabel_0.Text      = Class185.smethod_0(537708148);
                    gform.bunifuCustomLabel_0.ForeColor = Color.Red;
                }
                else if (result == Class185.smethod_0(537710733))
                {
                    gform.bunifuMetroTextbox_0.BorderColorFocused    = Color.Red;
                    gform.bunifuMetroTextbox_0.BorderColorIdle       = Color.Red;
                    gform.bunifuMetroTextbox_0.BorderColorMouseHover = Color.Red;
                    gform.bunifuCustomLabel_0.Text      = Class185.smethod_0(537707929);
                    gform.bunifuCustomLabel_0.ForeColor = Color.Red;
                }
                gform.bunifuFlatButton_0.ButtonText = Class185.smethod_0(537707996);
            }
            catch (Exception exception)
            {
                num2 = -2;
                this.asyncVoidMethodBuilder_0.SetException(exception);
                return;
            }
            num2 = -2;
            this.asyncVoidMethodBuilder_0.SetResult();
        }
예제 #15
0
        // Token: 0x0600020A RID: 522 RVA: 0x000143C4 File Offset: 0x000125C4
        void IAsyncStateMachine.MoveNext()
        {
            int num = this.int_0;

            try
            {
                for (;;)
                {
                    try
                    {
                        TaskAwaiter          awaiter;
                        TaskAwaiter <string> awaiter2;
                        switch (num)
                        {
                        case 0:
                        {
                            awaiter            = this.taskAwaiter_0;
                            this.taskAwaiter_0 = default(TaskAwaiter);
                            int num2 = -1;
                            num        = -1;
                            this.int_0 = num2;
                            break;
                        }

                        case 1:
                        {
                            awaiter2           = this.taskAwaiter_1;
                            this.taskAwaiter_1 = default(TaskAwaiter <string>);
                            int num3 = -1;
                            num        = -1;
                            this.int_0 = num3;
                            goto IL_D9;
                        }

                        case 2:
                        {
                            awaiter            = this.taskAwaiter_0;
                            this.taskAwaiter_0 = default(TaskAwaiter);
                            int num4 = -1;
                            num        = -1;
                            this.int_0 = num4;
                            goto IL_19A;
                        }

                        default:
                            awaiter = Task.Delay(GForm3.int_0 * 1000).GetAwaiter();
                            if (!awaiter.IsCompleted)
                            {
                                int num5 = 0;
                                num                = 0;
                                this.int_0         = num5;
                                this.taskAwaiter_0 = awaiter;
                                this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, GForm3.Struct5>(ref awaiter, ref this);
                                return;
                            }
                            break;
                        }
                        awaiter.GetResult();
                        awaiter2 = GForm3.smethod_11(GClass0.string_2, false, true).GetAwaiter();
                        if (!awaiter2.IsCompleted)
                        {
                            int num6 = 1;
                            num                = 1;
                            this.int_0         = num6;
                            this.taskAwaiter_1 = awaiter2;
                            this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <string>, GForm3.Struct5>(ref awaiter2, ref this);
                            break;
                        }
IL_D9:
                        string result = awaiter2.GetResult();
                        if (!(result != Class185.smethod_0(537706979)) || !(result != Class185.smethod_0(537710733)))
                        {
                            continue;
                        }
                        this.int_1 = 5;
                        this.int_2 = 0;
IL_139:
                        if (this.int_1 <= this.int_2)
                        {
                            GClass0.string_2 = null;
                            GClass0.smethod_2();
                            GForm1.gform1_0.method_9(null, null);
                            continue;
                        }
                        GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537708504) + (this.int_1 - this.int_2).ToString() + Class185.smethod_0(537708322));
                        awaiter = Task.Delay(1000).GetAwaiter();
                        if (!awaiter.IsCompleted)
                        {
                            int num7 = 2;
                            num                = 2;
                            this.int_0         = num7;
                            this.taskAwaiter_0 = awaiter;
                            this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, GForm3.Struct5>(ref awaiter, ref this);
                            break;
                        }
IL_19A:
                        awaiter.GetResult();
                        int num8 = this.int_2;
                        this.int_2 = num8 + 1;
                        goto IL_139;
                    }
                    catch
                    {
                    }
                }
            }
            catch (Exception exception)
            {
                this.int_0 = -2;
                this.asyncVoidMethodBuilder_0.SetException(exception);
            }
        }
예제 #16
0
 // Token: 0x0600007C RID: 124 RVA: 0x00003052 File Offset: 0x00001252
 public void method_9(object object_0, JSExtInvokeArgs jsextInvokeArgs_0)
 {
     GClass0.smethod_2();
     MainWindow.mainWindow_0.BeginInvoke(null, null);
     Process.GetCurrentProcess().Kill();
 }
예제 #17
0
 // Token: 0x060002AB RID: 683 RVA: 0x00004522 File Offset: 0x00002722
 public static void smethod_5(object object_0, JSExtInvokeArgs jsextInvokeArgs_0)
 {
     GClass0.jarray_0 = JArray.Parse(GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537701932)).smethod_0());
     GClass0.smethod_2();
 }
예제 #18
0
 // Token: 0x060002AA RID: 682 RVA: 0x000044F8 File Offset: 0x000026F8
 public static void smethod_4(object object_0, JSExtInvokeArgs jsextInvokeArgs_0)
 {
     GClass0.jobject_1 = JObject.Parse(GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537700382)).smethod_0());
     GClass0.smethod_2();
 }
예제 #19
0
        // Token: 0x0600020A RID: 522 RVA: 0x000128E0 File Offset: 0x00010AE0
        void IAsyncStateMachine.MoveNext()
        {
            int num = this.int_0;

            try
            {
                for (;;)
                {
                    try
                    {
                        TaskAwaiter          awaiter;
                        TaskAwaiter <string> awaiter2;
                        switch (num)
                        {
                        case 0:
                        {
                            awaiter            = this.taskAwaiter_0;
                            this.taskAwaiter_0 = default(TaskAwaiter);
                            int num2 = -1;
                            num        = -1;
                            this.int_0 = num2;
                            break;
                        }

                        case 1:
                        {
                            awaiter2           = this.taskAwaiter_1;
                            this.taskAwaiter_1 = default(TaskAwaiter <string>);
                            int num3 = -1;
                            num        = -1;
                            this.int_0 = num3;
                            goto IL_D9;
                        }

                        case 2:
                        {
                            awaiter            = this.taskAwaiter_0;
                            this.taskAwaiter_0 = default(TaskAwaiter);
                            int num4 = -1;
                            num        = -1;
                            this.int_0 = num4;
                            goto IL_186;
                        }

                        default:
                            awaiter = Task.Delay(Licenser.int_0 * 1000).GetAwaiter();
                            if (!awaiter.IsCompleted)
                            {
                                int num5 = 0;
                                num                = 0;
                                this.int_0         = num5;
                                this.taskAwaiter_0 = awaiter;
                                this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Licenser.Struct5>(ref awaiter, ref this);
                                return;
                            }
                            break;
                        }
                        awaiter.GetResult();
                        awaiter2 = Licenser.smethod_11(GClass0.string_2, false, true).GetAwaiter();
                        if (!awaiter2.IsCompleted)
                        {
                            int num6 = 1;
                            num                = 1;
                            this.int_0         = num6;
                            this.taskAwaiter_1 = awaiter2;
                            this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <string>, Licenser.Struct5>(ref awaiter2, ref this);
                            break;
                        }
IL_D9:
                        string result = awaiter2.GetResult();
                        if (!(result != "valid") || !(result != "error"))
                        {
                            continue;
                        }
                        this.int_1 = 5;
                        this.int_2 = 6;
IL_12F:
                        if (this.int_1 <= this.int_2)
                        {
                            GClass0.string_2 = null;
                            GClass0.smethod_2();
                            MainWindow.mainWindow_0.method_9(null, null);
                            continue;
                        }
                        MainWindow.webView_0.QueueScriptCall("swal('Uh oh!', 'It seems that your key has been deactivated, or is being used on another PC. The bot will close in " + (this.int_1 - this.int_2).ToString() + " seconds.\\n', 'warning',  {buttons:{visible: false}, closeOnClickOutside:false})");
                        awaiter = Task.Delay(1000).GetAwaiter();
                        if (!awaiter.IsCompleted)
                        {
                            int num7 = 2;
                            num                = 2;
                            this.int_0         = num7;
                            this.taskAwaiter_0 = awaiter;
                            this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Licenser.Struct5>(ref awaiter, ref this);
                            break;
                        }
IL_186:
                        awaiter.GetResult();
                        int num8 = this.int_2;
                        this.int_2 = num8 + 1;
                        goto IL_12F;
                    }
                    catch
                    {
                    }
                }
            }
            catch (Exception exception)
            {
                this.int_0 = -2;
                this.asyncVoidMethodBuilder_0.SetException(exception);
            }
        }
예제 #20
0
        // Token: 0x0600020C RID: 524 RVA: 0x00012B20 File Offset: 0x00010D20
        void IAsyncStateMachine.MoveNext()
        {
            int      num      = this.int_0;
            Licenser licenser = this.licenser_0;

            try
            {
                TaskAwaiter <string> awaiter;
                if (num != 0)
                {
                    licenser.activate_btn.ButtonText = " Please wait...";
                    awaiter = Licenser.smethod_11(licenser.key_box.Text, true, false).GetAwaiter();
                    if (!awaiter.IsCompleted)
                    {
                        this.int_0         = 0;
                        this.taskAwaiter_0 = awaiter;
                        this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <string>, Licenser.Struct6>(ref awaiter, ref this);
                        return;
                    }
                }
                else
                {
                    awaiter            = this.taskAwaiter_0;
                    this.taskAwaiter_0 = default(TaskAwaiter <string>);
                    this.int_0         = -1;
                }
                string result = "valid";

                if (result == "valid")
                {
                    GClass0.string_2 = licenser.key_box.Text;
                    GClass0.smethod_2();
                    licenser.key_box.BorderColorFocused    = Color.Green;
                    licenser.key_box.BorderColorIdle       = Color.Green;
                    licenser.key_box.BorderColorMouseHover = Color.Green;
                    licenser.status_label.Text             = "Key is valid, thank you for your purchase!";
                    licenser.status_label.ForeColor        = Color.Green;
                    licenser.method_1();
                    new Loading(true, result);
                }
                else if (result == "assigned")
                {
                    licenser.key_box.BorderColorFocused    = Color.Red;
                    licenser.key_box.BorderColorIdle       = Color.Red;
                    licenser.key_box.BorderColorMouseHover = Color.Red;
                    licenser.status_label.Text             = "Key is already activated on another computer, please deactivate it first";
                    licenser.status_label.ForeColor        = Color.Red;
                }
                else if (result == "invalid")
                {
                    licenser.key_box.BorderColorFocused    = Color.Red;
                    licenser.key_box.BorderColorIdle       = Color.Red;
                    licenser.key_box.BorderColorMouseHover = Color.Red;
                    licenser.status_label.Text             = "Key is invalid";
                    licenser.status_label.ForeColor        = Color.Red;
                }
                else if (result == "error")
                {
                    licenser.key_box.BorderColorFocused    = Color.Red;
                    licenser.key_box.BorderColorIdle       = Color.Red;
                    licenser.key_box.BorderColorMouseHover = Color.Red;
                    licenser.status_label.Text             = "There was an error checking your key, please contact support";
                    licenser.status_label.ForeColor        = Color.Red;
                }
                licenser.activate_btn.ButtonText = "  ACTIVATE";
            }
            catch (Exception exception)
            {
                this.int_0 = -2;
                this.asyncVoidMethodBuilder_0.SetException(exception);
                return;
            }
            this.int_0 = -2;
            this.asyncVoidMethodBuilder_0.SetResult();
        }