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