mirror of
https://github.com/Pennyw0rth/NetExec.git
synced 2026-11-07 09:26:01 -10:00
Merge pull request #1500 from Pennyw0rth/neff-uppercase-nbt-name
This commit is contained in:
1 file changed
+1
-1
@@ -218,7 +218,7 @@ class smb(connection):
|
||||
self.remoteName = self.host
|
||||
if not self.no_ntlm:
|
||||
# Try to get hostname with getServerDNSHostName as getServerName is truncated to 15 chars
|
||||
dns_hostname = sanitize_dns(self.conn.getServerDNSHostName() or self.conn.getServerName(), self.logger)
|
||||
dns_hostname = sanitize_dns(self.conn.getServerDNSHostName() or self.conn.getServerName(), self.logger).upper()
|
||||
if dns_hostname and "." in dns_hostname:
|
||||
self.hostname = dns_hostname.split(".", 1)[0]
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user