mirror of
https://github.com/Pennyw0rth/NetExec
synced 2026-06-06 16:34:30 +00:00
Revert "[wmi] More tips"
This reverts commit e8b8da1777, issues should be fix in #127
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user