// Token: 0x06000B6B RID: 2923 RVA: 0x0003B808 File Offset: 0x00039A08 private void method_4(string string_0, JsonWriter jsonWriter_1, JsonSchemaType jsonSchemaType_0) { if (Enum.IsDefined(typeof(JsonSchemaType), jsonSchemaType_0)) { jsonWriter_1.WritePropertyName(string_0); jsonWriter_1.WriteValue(Class130.smethod_1(jsonSchemaType_0)); return; } IEnumerator <JsonSchemaType> enumerator = Class53.smethod_1 <JsonSchemaType>(jsonSchemaType_0).Where(new Func <JsonSchemaType, bool>(Class141.Class142.class142_0.method_0)).GetEnumerator(); if (enumerator.MoveNext()) { jsonWriter_1.WritePropertyName(string_0); JsonSchemaType jsonSchemaType_ = enumerator.Current; if (enumerator.MoveNext()) { jsonWriter_1.WriteStartArray(); jsonWriter_1.WriteValue(Class130.smethod_1(jsonSchemaType_)); do { jsonWriter_1.WriteValue(Class130.smethod_1(enumerator.Current)); }while (enumerator.MoveNext()); jsonWriter_1.WriteEndArray(); return; } jsonWriter_1.WriteValue(Class130.smethod_1(jsonSchemaType_)); } }
// Token: 0x06000022 RID: 34 RVA: 0x000072D4 File Offset: 0x000054D4 public static void smethod_15(object object_0, JSExtInvokeArgs jsextInvokeArgs_0) { try { OpenFileDialog openFileDialog = new OpenFileDialog(); openFileDialog.Filter = "CyberAIO Backups|*.json"; openFileDialog.Title = "Select your backup file"; if (openFileDialog.ShowDialog() == DialogResult.OK) { JObject jobject = JObject.Parse(File.ReadAllText(openFileDialog.FileName)); MainWindow.webView_0.QueueScriptCall("$('#taskbody')[0].innerHTML = ''; stopTask(JSON.stringify(tasks)); tasks = {};").smethod_0(); MainWindow.webView_0.QueueScriptCall("proxies = []; $('#proxybody')[0].innerHTML = '';").smethod_0(); MainWindow.webView_0.QueueScriptCall(string.Format("loadTasks('{0}')", jobject["tasks"].ToString().smethod_8())); MainWindow.webView_0.QueueScriptCall(string.Format("loadProxies('{0}')", jobject["proxies"].ToString().smethod_8())); MainWindow.webView_0.QueueScriptCall(string.Format("loadProfiles('{0}')", jobject["profiles"].ToString().smethod_8())); Class130.jarray_0 = (JArray)jobject["proxies"]; Class130.jobject_2 = (JObject)jobject["profiles"]; Class130.jobject_3 = (JObject)jobject["tasks"]; Class130.int_1 = (int)jobject["settings"]["global_delay"]; Class130.int_0 = (int)jobject["settings"]["monitor_delay"]; Class130.string_2 = ((jobject["settings"]["webhook"] == null) ? string.Empty : jobject["settings"]["webhook"].ToString()); Class1.smethod_2(); MainWindow.webView_0.QueueScriptCall("swal('Success', 'Successfully imported tasks, proxies, profiles and settings!','success',{timer:1500})"); Class130.smethod_1(); } } catch { MainWindow.webView_0.QueueScriptCall("swal('Error', 'There was an error importing the data!','error',{timer:1500})"); } }
// Token: 0x0600058D RID: 1421 RVA: 0x00030E6C File Offset: 0x0002F06C public static void smethod_0() { if (!File.Exists(Class130.string_1)) { Class130.smethod_1(); } JObject jobject; try { jobject = JObject.Parse(File.ReadAllText(Class130.string_1)); } catch { jobject = new JObject(); } Class130.int_0 = (int)jobject["settings"]["monitor_delay"]; Class130.int_1 = (int)jobject["settings"]["retry_delay"]; Class130.string_2 = (string)jobject["settings"]["webhook"]; Class130.bool_0 = (jobject["settings"]["notifications"] != null && (bool)jobject["settings"]["notifications"]); Class130.string_3 = (string)jobject["license_key"]; Class130.jarray_0 = ((!jobject["proxies"].smethod_22()) ? ((JArray)jobject["proxies"]) : new JArray()); Class130.jobject_2 = ((!jobject["profiles"].smethod_22()) ? ((JObject)jobject["profiles"]) : new JObject()); Class130.jobject_3 = ((!jobject["tasks"].smethod_22()) ? ((JObject)jobject["tasks"]) : new JObject()); Class130.jobject_5 = ((!jobject["solvers"].smethod_22()) ? ((JObject)jobject["solvers"]) : new JObject()); }
// Token: 0x0600001E RID: 30 RVA: 0x000070F0 File Offset: 0x000052F0 public static void smethod_11(object object_0, JSExtInvokeArgs jsextInvokeArgs_0) { Class130.int_1 = (int)Convert.ToInt16(MainWindow.webView_0.QueueScriptCall("$('#globaldelay').val()").smethod_0()); Class130.int_0 = (int)Convert.ToInt16(MainWindow.webView_0.QueueScriptCall("$('#monitordelay').val()").smethod_0()); Class130.string_2 = MainWindow.webView_0.QueueScriptCall("$('#webhook').val()").smethod_0(); Class130.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})"); Class130.smethod_1(); }
public Class135(Class144 class1440, Class140 class1401, Class136 class1360, int int7, int int8, int int9) : base(class1401, int8) { _int6 = class1360.vmethod_2(); _int1 = int9; for (var i = 0; i < int9; i++) { _int5[i] = class1440.vmethod_12(int7); } var num = class1440.vmethod_10(4); if (num == 15) { throw new IOException("STREAM_DECODER_ERROR_STATUS_LOST_SYNC"); } _int2 = num + 1; _int3 = class1440.vmethod_12(5); for (var j = 0; j < int9; j++) { _int4[j] = class1440.vmethod_12(_int2); } var num2 = class1440.vmethod_10(2); var num3 = num2; if (num3 != 0) { throw new IOException("STREAM_DECODER_UNPARSEABLE_STREAM"); } _class1370 = new Class138(); ((Class138)_class1370).Int0 = class1440.vmethod_10(4); ((Class138)_class1370).Class1430 = class1360.vmethod_1(); if (_class1370 is Class138) { ((Class138)_class1370).vmethod_0(class1440, int9, ((Class138)_class1370).Int0, class1401, class1360.vmethod_2()); } Buffer.BlockCopy(_int5, 0, class1360.vmethod_0(), 0, int9 << 2); if (int7 + _int2 + Class141.smethod_0(int9) > 32) { Class130.smethod_1(class1360.vmethod_2(), class1401.Int0 - int9, _int4, int9, _int3, class1360.vmethod_0(), int9); return; } if (int7 <= 16 && _int2 <= 16) { Class130.smethod_0(class1360.vmethod_2(), class1401.Int0 - int9, _int4, int9, _int3, class1360.vmethod_0(), int9); return; } Class130.smethod_0(class1360.vmethod_2(), class1401.Int0 - int9, _int4, int9, _int3, class1360.vmethod_0(), int9); }
// Token: 0x0600054A RID: 1354 RVA: 0x0002D9C8 File Offset: 0x0002BBC8 public void method_2() { JObject jobject = new JObject(); foreach (GClass0 gclass in CaptchaQueue.dictionary_1.Values) { jobject[gclass.method_0()] = new JObject(); jobject[gclass.method_0()]["proxy"] = gclass.string_1; jobject[gclass.method_0()]["engine"] = gclass.string_0; } Class130.jobject_5 = jobject; Class130.smethod_1(); }
// Token: 0x06000019 RID: 25 RVA: 0x00007088 File Offset: 0x00005288 public static async void smethod_6(object object_0, JSExtInvokeArgs jsextInvokeArgs_0) { TaskAwaiter <string> taskAwaiter = MainWindow.webView_0.QueueScriptCall("JSON.stringify(tasks)").smethod_2().GetAwaiter(); if (!taskAwaiter.IsCompleted) { await taskAwaiter; TaskAwaiter <string> taskAwaiter2; taskAwaiter = taskAwaiter2; taskAwaiter2 = default(TaskAwaiter <string>); } Class130.jobject_3 = JObject.Parse(taskAwaiter.GetResult()); Class130.smethod_1(); }
// Token: 0x0600007F RID: 127 RVA: 0x00009308 File Offset: 0x00007508 void IAsyncStateMachine.MoveNext() { int num2; int num = num2; bool result; try { try { TaskAwaiter <HttpResponseMessage> taskAwaiter; if (num != 0) { taskAwaiter = Licenser.class14_0.method_2(string.Format("http://auth.botsupply.ml/api/key_check?key={1}&activate=0", "cybersole.io", Class130.string_3), false).GetAwaiter(); if (!taskAwaiter.IsCompleted) { num2 = 0; TaskAwaiter <HttpResponseMessage> taskAwaiter2 = taskAwaiter; this.asyncTaskMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <HttpResponseMessage>, Licenser.Struct8>(ref taskAwaiter, ref this); return; } } else { TaskAwaiter <HttpResponseMessage> taskAwaiter2; taskAwaiter = taskAwaiter2; taskAwaiter2 = default(TaskAwaiter <HttpResponseMessage>); num2 = -1; } taskAwaiter.GetResult().EnsureSuccessStatusCode(); Class130.string_3 = null; Class130.smethod_1(); result = true; } catch { result = false; } } catch (Exception exception) { num2 = -2; this.asyncTaskMethodBuilder_0.SetException(exception); return; } num2 = -2; this.asyncTaskMethodBuilder_0.SetResult(result); }
public Class135(Class144 class144_0, Class140 class140_1, Class136 class136_0, int int_7, int int_8, int int_9) : base(class140_1, int_8) { this.int_6 = class136_0.vmethod_2(); this.int_1 = int_9; for (int i = 0; i < int_9; i++) { this.int_5[i] = class144_0.vmethod_12(int_7); } int num = class144_0.vmethod_10(4); if (num == 15) { throw new IOException("STREAM_DECODER_ERROR_STATUS_LOST_SYNC"); } this.int_2 = num + 1; this.int_3 = class144_0.vmethod_12(5); for (int j = 0; j < int_9; j++) { this.int_4[j] = class144_0.vmethod_12(this.int_2); } int num2 = class144_0.vmethod_10(2); int num3 = num2; if (num3 != 0) { throw new IOException("STREAM_DECODER_UNPARSEABLE_STREAM"); } this.class137_0 = new Class138(); ((Class138)this.class137_0).int_0 = class144_0.vmethod_10(4); ((Class138)this.class137_0).class143_0 = class136_0.vmethod_1(); if (this.class137_0 is Class138) { ((Class138)this.class137_0).vmethod_0(class144_0, int_9, ((Class138)this.class137_0).int_0, class140_1, class136_0.vmethod_2()); } Buffer.BlockCopy(this.int_5, 0, class136_0.vmethod_0(), 0, int_9 << 2); if (int_7 + this.int_2 + Class141.smethod_0(int_9) > 32) { Class130.smethod_1(class136_0.vmethod_2(), class140_1.int_0 - int_9, this.int_4, int_9, this.int_3, class136_0.vmethod_0(), int_9); return; } if (int_7 <= 16 && this.int_2 <= 16) { Class130.smethod_0(class136_0.vmethod_2(), class140_1.int_0 - int_9, this.int_4, int_9, this.int_3, class136_0.vmethod_0(), int_9); return; } Class130.smethod_0(class136_0.vmethod_2(), class140_1.int_0 - int_9, this.int_4, int_9, this.int_3, class136_0.vmethod_0(), int_9); }
// Token: 0x06000071 RID: 113 RVA: 0x0000865C File Offset: 0x0000685C public static async Task <bool> smethod_4() { bool result; try { (await Licenser.class14_0.method_2(string.Format("http://auth.botsupply.ml/api/key_check?key={1}&activate=0", "cybersole.io", Class130.string_3), false)).EnsureSuccessStatusCode(); Class130.string_3 = null; Class130.smethod_1(); result = true; } catch { result = false; } return(result); }
// Token: 0x06000210 RID: 528 RVA: 0x00012B30 File Offset: 0x00010D30 private void method_2(object sender, MessageEventArgs e) { try { JObject jobject = JObject.Parse(e.Data); MainWindow.smethod_0(); if (jobject.ContainsKey("quicktask")) { Class170.smethod_0(jobject["quicktask"].ToString(), (string)jobject["id"]); } if (jobject.ContainsKey("stop")) { Class170.smethod_1(jobject["stop"].ToString()); } if (jobject.ContainsKey("stopall")) { Class26.smethod_3(Class130.jobject_3); } if (jobject.ContainsKey("startall")) { Class26.smethod_1(Class130.jobject_3, null); } if (jobject.ContainsKey("linkchange")) { Class1.smethod_1(jobject["linkchange"].ToString()); } if (jobject.ContainsKey("message")) { MainWindow.webView_0.QueueScriptCall(string.Format("swal('Message', '{0}', 'info')", jobject["message"].ToString().smethod_8())); } if (jobject.ContainsKey("reset")) { Class130.string_3 = null; Class130.smethod_1(); MainWindow.mainWindow_0.method_4(null, null); } if (jobject.ContainsKey("close")) { MainWindow.mainWindow_0.method_4(null, null); } } catch { } }
// Token: 0x06000029 RID: 41 RVA: 0x000077B4 File Offset: 0x000059B4 void IAsyncStateMachine.MoveNext() { int num2; int num = num2; try { TaskAwaiter <string> taskAwaiter3; if (num != 0) { taskAwaiter3 = MainWindow.webView_0.QueueScriptCall("JSON.stringify(tasks)").smethod_2().GetAwaiter(); if (!taskAwaiter3.IsCompleted) { num2 = 0; taskAwaiter2 = taskAwaiter3; this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <string>, Class1.Struct3>(ref taskAwaiter3, ref this); return; } } else { taskAwaiter3 = taskAwaiter2; taskAwaiter2 = default(TaskAwaiter <string>); num2 = -1; } Class130.jobject_3 = JObject.Parse(taskAwaiter3.GetResult()); Class130.smethod_1(); } catch (Exception exception) { num2 = -2; this.asyncVoidMethodBuilder_0.SetException(exception); return; } num2 = -2; this.asyncVoidMethodBuilder_0.SetResult(); }
// Token: 0x06000083 RID: 131 RVA: 0x00009614 File Offset: 0x00007814 void IAsyncStateMachine.MoveNext() { int num2; int num = num2; Licenser licenser = this; try { TaskAwaiter <GEnum2> taskAwaiter3; if (num != 0) { licenser.activate_btn.ButtonText = " Please wait..."; taskAwaiter3 = Licenser.smethod_6(licenser.key_box.Text, true).GetAwaiter(); if (!taskAwaiter3.IsCompleted) { num2 = 0; taskAwaiter2 = taskAwaiter3; this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <GEnum2>, Licenser.Struct10>(ref taskAwaiter3, ref this); return; } } else { taskAwaiter3 = taskAwaiter2; taskAwaiter2 = default(TaskAwaiter <GEnum2>); num2 = -1; } switch (taskAwaiter3.GetResult()) { case (GEnum2)0: Class130.string_3 = licenser.key_box.Text; Class130.smethod_1(); 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.smethod_21(null); licenser.Close(); Startup.startup_0.method_3(false); Startup.startup_0.smethod_20(null); break; case (GEnum2)1: 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; break; case (GEnum2)2: 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; break; case (GEnum2)3: licenser.key_box.BorderColorFocused = Color.Red; licenser.key_box.BorderColorIdle = Color.Red; licenser.key_box.BorderColorMouseHover = Color.Red; licenser.status_label.Text = "License is expired, please donwgrade by reinstalling."; licenser.status_label.ForeColor = Color.Red; break; case (GEnum2)4: 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; break; } licenser.activate_btn.ButtonText = " ACTIVATE"; } catch (Exception exception) { num2 = -2; this.asyncVoidMethodBuilder_0.SetException(exception); return; } num2 = -2; this.asyncVoidMethodBuilder_0.SetResult(); }
// Token: 0x06000081 RID: 129 RVA: 0x000093F4 File Offset: 0x000075F4 void IAsyncStateMachine.MoveNext() { int num = this.int_0; try { TaskAwaiter awaiter; TaskAwaiter <GEnum2> awaiter2; switch (num) { case 0: awaiter = this.taskAwaiter_0; this.taskAwaiter_0 = default(TaskAwaiter); this.int_0 = -1; break; case 1: awaiter2 = this.taskAwaiter_1; this.taskAwaiter_1 = default(TaskAwaiter <GEnum2>); this.int_0 = -1; goto IL_C3; case 2: awaiter = this.taskAwaiter_0; this.taskAwaiter_0 = default(TaskAwaiter); this.int_0 = -1; goto IL_163; default: goto IL_D4; } IL_94: awaiter.GetResult(); DateTime renewal = Licenser.class156_0.Renewal; awaiter2 = Licenser.smethod_6(Class130.string_3, false).GetAwaiter(); if (!awaiter2.IsCompleted) { this.int_0 = 1; this.taskAwaiter_1 = awaiter2; this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <GEnum2>, Licenser.Struct9>(ref awaiter2, ref this); return; } IL_C3: GEnum2 result = awaiter2.GetResult(); if (result != (GEnum2)0 && result != (GEnum2)4) { this.int_1 = 5; this.int_2 = 0; goto IL_109; } IL_D4: awaiter = Task.Delay(TimeSpan.FromSeconds(60.0)).GetAwaiter(); if (!awaiter.IsCompleted) { this.int_0 = 0; this.taskAwaiter_0 = awaiter; this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Licenser.Struct9>(ref awaiter, ref this); return; } goto IL_94; IL_109: if (this.int_1 <= this.int_2) { Class130.string_3 = null; Class130.smethod_1(); MainWindow.mainWindow_0.method_4(null, null); goto IL_D4; } 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) { this.int_0 = 2; this.taskAwaiter_0 = awaiter; this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Licenser.Struct9>(ref awaiter, ref this); return; } IL_163: awaiter.GetResult(); int num2 = this.int_2; this.int_2 = num2 + 1; goto IL_109; } catch (Exception exception) { this.int_0 = -2; this.asyncVoidMethodBuilder_0.SetException(exception); } }
// Token: 0x06000074 RID: 116 RVA: 0x0000870C File Offset: 0x0000690C private async void activate_btn_Click(object sender, EventArgs e) { this.activate_btn.ButtonText = " Please wait..."; TaskAwaiter <GEnum2> taskAwaiter = Licenser.smethod_6(this.key_box.Text, true).GetAwaiter(); if (!taskAwaiter.IsCompleted) { await taskAwaiter; TaskAwaiter <GEnum2> taskAwaiter2; taskAwaiter = taskAwaiter2; taskAwaiter2 = default(TaskAwaiter <GEnum2>); } switch (taskAwaiter.GetResult()) { case (GEnum2)0: Class130.string_3 = this.key_box.Text; Class130.smethod_1(); 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.smethod_21(null); base.Close(); Startup.startup_0.method_3(false); Startup.startup_0.smethod_20(null); break; case (GEnum2)1: 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; break; case (GEnum2)2: 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; break; case (GEnum2)3: this.key_box.BorderColorFocused = Color.Red; this.key_box.BorderColorIdle = Color.Red; this.key_box.BorderColorMouseHover = Color.Red; this.status_label.Text = "License is expired, please donwgrade by reinstalling."; this.status_label.ForeColor = Color.Red; break; case (GEnum2)4: 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; break; } this.activate_btn.ButtonText = " ACTIVATE"; }