def __init__(self, ccred, target, ccache=None): self.usercreds = ccred self.target = target self.ksoc = KerberosClientSocketSelector.select(self.target, True) self.ccache = CCACHE() if ccache is None else ccache self.kerberos_session_key = None self.kerberos_TGT = None self.kerberos_TGT_encpart = None self.kerberos_TGS = None self.kerberos_cipher = None self.kerberos_cipher_type = None self.kerberos_key = None self.server_salt = None
def __init__(self, target: KerberosTarget, spn: KerberosSPN): self.target = target self.spn = spn self.ksoc = KerberosClientSocketSelector.select(target, True)