Skip to content

Commit aa38c7a

Browse files
revert spacing for Admin/Guest output
1 parent 3797ccf commit aa38c7a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

nxc/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ def login(self):
563563
return True
564564

565565
def mark_pwned(self):
566-
return highlight(f" ({pwned_label})" if self.admin_privs else "")
566+
return highlight(f"({pwned_label})" if self.admin_privs else "")
567567

568568
def load_modules(self):
569569
self.logger.info(f"Loading modules for target: {self.host}")

nxc/protocols/smb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def plaintext_login(self, domain, username, password):
387387

388388
self.db.add_loggedin_relation(user_id, host_id)
389389

390-
out = f"{domain}\\{self.username}:{process_secret(self.password)}{self.mark_guest()}{self.mark_pwned()}"
390+
out = f"{domain}\\{self.username}:{process_secret(self.password)} {self.mark_guest()}{self.mark_pwned()}"
391391
self.logger.success(out)
392392

393393
if not self.args.local_auth and self.username != "":
@@ -1783,4 +1783,4 @@ def add_ntds_hash(ntds_hash, host_id):
17831783
NTDS.finish()
17841784

17851785
def mark_guest(self):
1786-
return highlight(f" {highlight('(Guest)')}" if self.is_guest else "")
1786+
return highlight(f"{highlight('(Guest)')}" if self.is_guest else "")

0 commit comments

Comments
 (0)