From d2019084bd92df6080e20fd9730acfd53165cb5f Mon Sep 17 00:00:00 2001 From: Mark Unwin Date: Thu, 15 Aug 2024 07:51:21 +1000 Subject: [PATCH] Allow for a Windows credentials to not have an @. --- app/Helpers/wmi_helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Helpers/wmi_helper.php b/app/Helpers/wmi_helper.php index 947f2bd0f..741f8a830 100644 --- a/app/Helpers/wmi_helper.php +++ b/app/Helpers/wmi_helper.php @@ -826,7 +826,7 @@ function wmi_command(string $ip = '', object $credentials = null, string $comman if (php_uname('s') == 'Windows NT') { $temp = explode('@', $credentials->credentials->username); $username = $temp[0]; - $domain = $temp[1]; + $domain = @$temp[1]; if ($domain != '') { $domain .= '\\'; }