Пример #1
0
 private void keyloggerToolStripMenuItem_Click(object sender, EventArgs e)
 {
     foreach (Client c in GetSelectedClients())
     {
         FrmKeylogger frmKl = FrmKeylogger.CreateNewOrGetExisting(c);
         frmKl.Show();
         frmKl.Focus();
     }
 }
Пример #2
0
        /// <summary>
        /// Creates a new keylogger form for the client or gets the current open form, if there exists one already.
        /// </summary>
        /// <param name="client">The client used for the keylogger form.</param>
        /// <returns>
        /// Returns a new keylogger form for the client if there is none currently open, otherwise creates a new one.
        /// </returns>
        public static FrmKeylogger CreateNewOrGetExisting(Client client)
        {
            if (OpenedForms.ContainsKey(client))
            {
                return(OpenedForms[client]);
            }
            FrmKeylogger f = new FrmKeylogger(client);

            f.Disposed += (sender, args) => OpenedForms.Remove(client);
            OpenedForms.Add(client, f);
            return(f);
        }
Пример #3
0
 private void ctxtKeylogger_Click(object sender, EventArgs e)
 {
     foreach (Client c in GetSelectedClients())
     {
         if (c.Value.FrmKl != null)
         {
             c.Value.FrmKl.Focus();
             return;
         }
         FrmKeylogger frmKL = new FrmKeylogger(c);
         frmKL.Show();
     }
 }
Пример #4
0
 private void ctxtKeylogger_Click(object sender, EventArgs e)
 {
     if (lstClients.SelectedItems.Count != 0)
     {
         Client c = (Client)lstClients.SelectedItems[0].Tag;
         if (c.Value.FrmKl != null)
         {
             c.Value.FrmKl.Focus();
             return;
         }
         FrmKeylogger frmKL = new FrmKeylogger(c);
         frmKL.Show();
     }
 }
Пример #5
0
 private void ctxtKeylogger_Click(object sender, EventArgs e)
 {
     foreach (Client c in GetSelectedClients())
     {
         if (c.Value.FrmKl != null)
         {
             c.Value.FrmKl.Focus();
             return;
         }
         FrmKeylogger frmKL = new FrmKeylogger(c);
         frmKL.Show();
     }
 }
Пример #6
0
 private void ctxtKeylogger_Click(object sender, EventArgs e)
 {
     if (lstClients.SelectedItems.Count != 0)
     {
         Client c = (Client)lstClients.SelectedItems[0].Tag;
         if (c.Value.FrmKl != null)
         {
             c.Value.FrmKl.Focus();
             return;
         }
         FrmKeylogger frmKL = new FrmKeylogger(c);
         frmKL.Show();
     }
 }