Skip to content

Commit d56be12

Browse files
committed
Highlight the IP address
1 parent e2a7d5c commit d56be12

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

nxc/modules/entra-id.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11

22
import re
3+
4+
from termcolor import colored
35
from nxc.parsers.ldap_results import parse_result_attributes
6+
from nxc.config import host_info_colors
47

58

69
class NXCModule:
@@ -75,4 +78,4 @@ def on_login(self, context, connection):
7578
if hosts:
7679
self.context.log.success("Found Entra ID sync servers:")
7780
for host in hosts:
78-
self.context.log.highlight(f"{host['hostname']}: {host['ip'].get('host', '<not found>')} (MSOL Account: {host.get('msol_account', 'N/A')})")
81+
self.context.log.highlight(f"{host['hostname']}: {colored(host['ip'].get('host', '<not found>'), host_info_colors[0])}" + colored(f" (MSOL Account: {host.get('msol_account', 'N/A')})", "yellow", attrs=["bold"]))

0 commit comments

Comments
 (0)