Skip to content

Commit 7106a25

Browse files
authored
Add missing declaration for stealth marker
Signed-off-by: Fox <22664861+Mercury0@users.noreply.github.com>
1 parent 3333781 commit 7106a25

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

nxc/protocols/smb.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
from impacket.smb3structs import FILE_READ_ATTRIBUTES, FILE_DIRECTORY_FILE, FILE_OPEN
3737
from impacket.dcerpc.v5 import tsts as TSTS
3838

39-
from nxc.config import process_secret, host_info_colors
39+
from nxc.config import process_secret, host_info_colors, stealth_label
4040
from nxc.connection import connection, sem, requires_admin, dcom_FirewallChecker
4141
from nxc.helpers.misc import gen_random_string, validate_ntlm
4242
from nxc.logger import NXCAdapter
@@ -2051,3 +2051,6 @@ def add_ntds_hash(ntds_hash, host_id):
20512051

20522052
def mark_guest(self):
20532053
return highlight(f"{highlight('(Guest)')}" if self.is_guest else "")
2054+
2055+
def mark_stealth(self):
2056+
return highlight(f"({stealth_label})" if self.admin_privs else "")

0 commit comments

Comments
 (0)