示例#1
0
    // 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();
        }
    }
示例#2
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();
        }
    }
示例#3
0
 // Token: 0x060005D2 RID: 1490 RVA: 0x000302A0 File Offset: 0x0002E4A0
 internal void method_0()
 {
     MainWindow.webView_0.QueueScriptCall("swal('Please wait...', 'Waiting for license renewal to complete', 'info', {buttons:{visible: false}, closeOnClickOutside:false})");
     for (int i = 0; i < 5; i++)
     {
         Licenser.smethod_11(GClass0.string_2, false, true);
         if (Licenser.dateTime_0 > Class168.dateTime_0)
         {
             MainWindow.webView_0.QueueScriptCall("swal('Success', 'You have successfully renewed your license! You may now update to the latest version.', 'Success')");
             Class68.smethod_1();
             return;
         }
         Thread.Sleep(3000);
     }
     MainWindow.webView_0.QueueScriptCall("swal('Uh oh', 'It seems there was a problem renewing your license, please contact [email protected]', 'warning')");
 }
示例#4
0
 // Token: 0x060005F2 RID: 1522 RVA: 0x000353F0 File Offset: 0x000335F0
 internal void method_0()
 {
     GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537714943));
     for (int i = 0; i < 5; i++)
     {
         GForm3.smethod_11(GClass0.string_2, false, true);
         if (GForm3.dateTime_0 > Class173.dateTime_0)
         {
             GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537714806));
             Class68.smethod_1();
             return;
         }
         Thread.Sleep(3000);
     }
     GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537716720));
 }
示例#5
0
    // Token: 0x0600006F RID: 111 RVA: 0x0000A3CC File Offset: 0x000085CC
    private void method_2(object sender, LoadCompletedEventArgs e)
    {
        this.method_1();
        Class68.smethod_1();
        MainWindow.captchaQueue_V1_0 = new CaptchaQueue_V1(true);
        Class68.smethod_6();
        Class68.smethod_7();
        Class68.smethod_8();
        Class68.smethod_5(null, null);
        bool isAttached = Debugger.IsAttached;

        Licenser.smethod_9();
        Class168.jobject_3 = JObject.Parse(MainWindow.webView_0.QueueScriptCall("JSON.stringify(window.Countries)").smethod_0());
        Class23.smethod_0();
        base.Opacity = 0.0;
        base.Show();
        this.timer_0.Interval = 10;
        this.timer_0.Tick    += this.timer_0_Tick;
        this.timer_0.Start();
    }
示例#6
0
    // Token: 0x0600006F RID: 111 RVA: 0x0000ADF4 File Offset: 0x00008FF4
    private void method_2(object sender, LoadCompletedEventArgs e)
    {
        this.method_1();
        Class68.smethod_1();
        GForm1.gform7_0 = new GForm7(true);
        Class68.smethod_6();
        Class68.smethod_7();
        Class68.smethod_8();
        Class68.smethod_5(null, null);
        bool isAttached = Debugger.IsAttached;

        GForm3.smethod_9();
        Class173.jobject_3 = JObject.Parse(GForm1.webView_0.QueueScriptCall(Class185.smethod_0(537707460)).smethod_0());
        Class23.smethod_0();
        base.Opacity = 0.0;
        base.Show();
        this.timer_0.Interval = 10;
        this.timer_0.Tick    += this.timer_0_Tick;
        this.timer_0.Start();
    }