MCPcopy Create free account
hub / github.com/MorDavid/NetworkHound / __init__

Method __init__

utils/impacket_auth.py:33–60  ·  view source on GitHub ↗

Initialize the authentication class Args: target: Server address (IP or hostname) domain: Domain name username: Username password: Plain password ntlm_hash: NTLM hash (format: LM:NT or just NT) kerberos

(self, target, domain="", username="", password="", 
                 ntlm_hash="", kerberos_ticket="", use_kerberos=False)

Source from the content-addressed store, hash-verified

31 """
32
33 def __init__(self, target, domain="", username="", password="",
34 ntlm_hash="", kerberos_ticket="", use_kerberos=False):
35 """
36 Initialize the authentication class
37
38 Args:
39 target: Server address (IP or hostname)
40 domain: Domain name
41 username: Username
42 password: Plain password
43 ntlm_hash: NTLM hash (format: LM:NT or just NT)
44 kerberos_ticket: Path to ticket file or base64 encoded ticket
45 use_kerberos: Whether to use Kerberos
46 """
47 self.target = target
48 self.domain = domain
49 self.username = username
50 self.password = password
51 self.ntlm_hash = ntlm_hash
52 self.kerberos_ticket = kerberos_ticket
53 self.use_kerberos = use_kerberos
54 # SMB shares are now handled by SMBSharesManager
55
56 # Process NTLM hash
57 self.lm_hash = ""
58 self.nt_hash = ""
59 if ntlm_hash:
60 self._parse_ntlm_hash()
61
62 def _parse_ntlm_hash(self):
63 """Process NTLM hash to correct format"""

Callers

nothing calls this directly

Calls 1

_parse_ntlm_hashMethod · 0.95

Tested by

no test coverage detected