Skip to content

Commit 7723e74

Browse files
committed
fix 0x_df issue with hosts file
1 parent ea77ad9 commit 7723e74

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nxc/protocols/smb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ def print_host_info(self):
330330

331331
if self.args.generate_hosts_file:
332332
with open(self.args.generate_hosts_file, "a+") as host_file:
333-
host_file.write(f"{self.host} {self.hostname} {self.hostname}.{self.targetDomain} {self.targetDomain if isdc else ''}\n")
334-
self.logger.debug(f"{self.host} {self.hostname} {self.hostname}.{self.targetDomain} {self.targetDomain if isdc else ''}")
333+
host_file.write(f"{self.host} {self.hostname}.{self.targetDomain} {self.targetDomain if isdc else ''} {self.hostname}\n")
334+
self.logger.debug(f"{self.host} {self.hostname}.{self.targetDomain} {self.targetDomain if isdc else ''} {self.hostname}")
335335
elif self.args.generate_krb5_file and isdc:
336336
with open(self.args.generate_krb5_file, "w+") as host_file:
337337
data = f"""

0 commit comments

Comments
 (0)