Revert "[wmi] More tips"

This reverts commit e8b8da1777, issues should be fix in #127
This commit is contained in:
XiaoliChan
2023-08-28 13:02:39 +08:00
parent 46e7f588c6
commit dc5134f35c
-3
View File
@@ -172,9 +172,6 @@ class wmi(connection):
return True
def check_if_admin(self):
if self.conn.getRemoteName() == self.domain:
self.logger.fail("Check admin error: get stringbinding failed: please use '-k' or '--local-auth' when your target is domain controller's hostname.")
return
try:
dcom = DCOMConnection(self.conn.getRemoteName(), self.username, self.password, self.domain, self.lmhash, self.nthash, oxidResolver=True, doKerberos=self.doKerberos ,kdcHost=self.kdcHost, aesKey=self.aesKey)
iInterface = dcom.CoCreateInstanceEx(CLSID_WbemLevel1Login, IID_IWbemLevel1Login)