We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1393d13 + eb7b522 commit 3591950Copy full SHA for 3591950
1 file changed
nxc/protocols/smb.py
@@ -169,6 +169,7 @@ def get_os_arch(self):
169
170
def enum_host_info(self):
171
self.local_ip = self.conn.getSMBServer().get_socket().getsockname()[0]
172
+ self.is_host_dc()
173
174
try:
175
self.conn.login("", "")
@@ -190,7 +191,7 @@ def enum_host_info(self):
190
191
else:
192
193
# If we know the host is a DC we can still get the hostname over LDAP if NTLM is not available
- if self.is_host_dc() and detect_if_ip(self.host):
194
+ if self.isdc and detect_if_ip(self.host):
195
self.hostname, self.domain = LDAPResolution(self.host).get_resolution()
196
self.targetDomain = self.domain
197
# If we can't authenticate with NTLM and the target is supplied as a FQDN we must parse it
0 commit comments