Skip to content

Commit 01b83d4

Browse files
authored
fix review
1 parent 9a75539 commit 01b83d4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

nxc/protocols/smb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ def generate_tgt(self):
666666
def check_dc_ports(self, timeout=1):
667667
"""Check multiple DC-specific ports in case first check fails"""
668668
import socket
669-
dc_ports = [88, 389, 636, 3268] # Kerberos, LDAP, LDAPS, Global Catalog
669+
dc_ports = [88, 389, 636, 3268, 9389] # Kerberos, LDAP, LDAPS, Global Catalog, ADWS
670670
open_ports = 0
671671

672672
for port in dc_ports:
@@ -693,7 +693,7 @@ def is_host_dc(self):
693693
self.logger.debug("Port 135 is open, attempting MSRPC connection...")
694694
try:
695695
rpctransport = transport.DCERPCTransportFactory(f"ncacn_ip_tcp:{self.host}[135]")
696-
rpctransport.set_connect_timeout(5)
696+
rpctransport.set_connect_timeout(2)
697697

698698
dce = rpctransport.get_dce_rpc()
699699
dce.connect()

0 commit comments

Comments
 (0)