(self, domain, baseDN, username, password, address, options)
| 14 | |
| 15 | class ldap_Shell: |
| 16 | def __init__(self, domain, baseDN, username, password, address, options): |
| 17 | self.domain = domain |
| 18 | self.baseDN = baseDN |
| 19 | self.username = username |
| 20 | self.password = password |
| 21 | self.lmhash = '' |
| 22 | self.nthash = '' |
| 23 | self.address = address |
| 24 | self.ldaps_flag = '' |
| 25 | |
| 26 | if options.ldaps == True: |
| 27 | self.ldaps_flag = True |
| 28 | |
| 29 | if options.hashes is not None: |
| 30 | self.lmhash, self.nthash = options.hashes.split(':') |
| 31 | if self.lmhash == "": |
| 32 | self.lmhash = "aad3b435b51404eeaad3b435b51404ee" |
| 33 | |
| 34 | def ldap_connection(self, tls_version): |
| 35 | user_withDomain = '%s\\%s' % (self.domain, self.username) |
nothing calls this directly
no outgoing calls
no test coverage detected