From fc121a65d8521bb5ca3a17010b38cb7e9d50b89d Mon Sep 17 00:00:00 2001 From: Prem Lingayat Date: Tue, 26 Aug 2025 20:40:45 -0400 Subject: [PATCH 1/2] Added hosts file saved success message --- nxc/hosts | 1 + nxc/protocols/smb.py | 1 + 2 files changed, 2 insertions(+) create mode 100644 nxc/hosts diff --git a/nxc/hosts b/nxc/hosts new file mode 100644 index 000000000..0e5debfaf --- /dev/null +++ b/nxc/hosts @@ -0,0 +1 @@ +10.10.11.181 DC.absolute.htb absolute.htb DC diff --git a/nxc/protocols/smb.py b/nxc/protocols/smb.py index e7bd58499..2ee384f67 100755 --- a/nxc/protocols/smb.py +++ b/nxc/protocols/smb.py @@ -312,6 +312,7 @@ def print_host_info(self): dc_part = f" {self.targetDomain}" if self.isdc else "" host_file.write(f"{self.host} {self.hostname}.{self.targetDomain}{dc_part} {self.hostname}\n") self.logger.debug(f"Line added to {self.args.generate_hosts_file} {self.host} {self.hostname}.{self.targetDomain}{dc_part} {self.hostname}") + self.logger.success(f"Hosts file saved to: {self.args.generate_hosts_file}") elif self.args.generate_krb5_file and self.isdc: with open(self.args.generate_krb5_file, "w+") as host_file: data = f""" From 68eaf38683a1f0c1ff2027c2ba566c67a9759ee4 Mon Sep 17 00:00:00 2001 From: Prem Lingayat Date: Tue, 26 Aug 2025 20:41:29 -0400 Subject: [PATCH 2/2] Added hosts file saved success message --- nxc/hosts | 1 - 1 file changed, 1 deletion(-) delete mode 100644 nxc/hosts diff --git a/nxc/hosts b/nxc/hosts deleted file mode 100644 index 0e5debfaf..000000000 --- a/nxc/hosts +++ /dev/null @@ -1 +0,0 @@ -10.10.11.181 DC.absolute.htb absolute.htb DC