Exemple #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();
        }
    }
Exemple #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();
        }
    }
Exemple #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')");
 }
Exemple #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));
 }
Exemple #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();
    }
Exemple #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();
    }
Exemple #7
0
 private static Assembly smethod_0(object object_0, ResolveEventArgs resolveEventArgs_0)
 {
     lock (hashtable_0)
     {
         string str  = resolveEventArgs_0.Name.Trim();
         object obj2 = hashtable_0[str];
         if (obj2 == null)
         {
             try
             {
                 string str2 = smethod_1(str);
                 foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies())
                 {
                     if (assembly.GetName().Name.ToUpper() == str2.ToUpper())
                     {
                         return(assembly);
                     }
                 }
             }
             catch
             {
             }
         }
         if (obj2 == null)
         {
             try
             {
                 RSACryptoServiceProvider.UseMachineKeyStore = true;
                 string s     = smethod_1(str);
                 byte[] bytes = Encoding.Unicode.GetBytes(s);
                 string name  = "b0494a1f-4bd3-" + Convert.ToBase64String(Class68.smethod_9(bytes));
                 Stream manifestResourceStream = typeof(Class72).Assembly.GetManifestResourceStream(name);
                 if (manifestResourceStream != null)
                 {
                     try
                     {
                         BinaryReader reader = new BinaryReader(manifestResourceStream)
                         {
                             BaseStream = { Position = 0L }
                         };
                         byte[] buffer = new byte[manifestResourceStream.Length];
                         reader.Read(buffer, 0, buffer.Length);
                         reader.Close();
                         bool     flag      = false;
                         Assembly assembly2 = null;
                         try
                         {
                             assembly2 = Assembly.Load(buffer);
                         }
                         catch (FileLoadException)
                         {
                             flag = true;
                         }
                         catch (BadImageFormatException)
                         {
                             flag = true;
                         }
                         if (flag)
                         {
                             string path = Path.Combine(Path.Combine(Path.GetTempPath(), name), s + ".dll");
                             if (!File.Exists(path))
                             {
                                 Directory.CreateDirectory(Path.GetDirectoryName(path));
                                 FileStream stream2 = new FileStream(path, FileMode.Create, FileAccess.Write);
                                 stream2.Write(buffer, 0, buffer.Length);
                                 stream2.Close();
                             }
                             assembly2 = Assembly.LoadFile(path);
                             hashtable_0.Add(str, assembly2);
                             return(assembly2);
                         }
                         hashtable_0.Add(str, assembly2);
                         return(assembly2);
                     }
                     catch
                     {
                     }
                 }
             }
             catch
             {
             }
             return(null);
         }
         return((Assembly)obj2);
     }
 }
Exemple #8
0
        // Token: 0x06001467 RID: 5223 RVA: 0x00025318 File Offset: 0x00023518
        public void PlaylistChange(object Playlist, Enum0 change)
        {
            Class68 class68_ = new Class68(Playlist, change);

            this.class24_0.method_51(this.class24_0, class68_);
        }