Skip to content

Commit

Permalink
samruser: clean auth line up
Browse files Browse the repository at this point in the history
  • Loading branch information
Marshall-Hallenbeck committed Mar 21, 2024
1 parent 2a66f36 commit 54e6ebb
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions nxc/protocols/smb/samruser.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,11 @@ def dump(self, requested_users=None):
protodef = UserSamrDump.KNOWN_PROTOCOLS[protocol]
port = protodef[1]
except KeyError:
self.logger.debug(f"Invalid Protocol '{protocol}'")
self.logger.debug(f"Invalid Protocol: {protocol}")

self.logger.debug(f"Trying protocol {protocol}")
self.rpc_transport = transport.SMBTransport(
self.addr,
port,
r"\samr",
self.username,
self.password,
self.domain,
self.lmhash,
self.nthash,
self.aesKey,
doKerberos=self.doKerberos,
)
self.rpc_transport = transport.SMBTransport(self.addr, port, r"\samr", self.username, self.password, self.domain, self.lmhash, self.nthash, self.aesKey, doKerberos=self.doKerberos)

try:
self.fetch_users(requested_users)
break
Expand Down

0 comments on commit 54e6ebb

Please sign in to comment.