[smb] Change wmiexec fail message

Signed-off-by: Xiaoli Chan <2209553467@qq.com>
main
Xiaoli Chan 2023-08-16 01:03:12 +08:00
parent f6ca9c40ff
commit 005c73a7d2
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class WMIEXEC:
try:
self.firewall_check(iInterface, self.__timeout)
except:
self.logger.fail(f'WMIEXEC: Dcom initialization failed on connection with stringbinding: "{self.__stringBinding}", please try "--wmiexec-timeout".')
self.logger.fail(f'WMIEXEC: Dcom initialization failed on connection with stringbinding: "{self.__stringBinding}", please try "--wmiexec-timeout" option. If it\'s still failing maybe something is blocking the RPC connection, try another exec method')
self.__dcom.disconnect()
iWbemLevel1Login = wmi.IWbemLevel1Login(iInterface)
iWbemServices = iWbemLevel1Login.NTLMLogin("//./root/cimv2", NULL, NULL)