Skip to content

Commit 4143073

Browse files
committed
fix: moved display Information out of logic
1 parent a636fb4 commit 4143073

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

nxc/modules/timeroast.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ def on_login(self, context, connection):
5959
if self.target is None:
6060
self.target = connection.host
6161

62+
context.log.display("Starting Timeroasting...")
63+
6264
for rid, hash, salt in self.run_ntp_roast(context, self.target, self.rids, self.rate, self.timeout, self.old_hashes, self.src_port):
6365
context.log.highlight(hashcat_format(rid, hash, salt))
6466

@@ -82,7 +84,6 @@ def run_ntp_roast(self, context, dc_host, rids, rate, giveup_time, old_pwd, src_
8284
except PermissionError:
8385
context.log.exception(f'No permission to listen on port {src_port}. May need to run as root.')
8486

85-
context.log.display("Starting Timeroasting...")
8687

8788
query_interval = 1 / rate
8889
last_ok_time = time()

0 commit comments

Comments
 (0)