MCPcopy Create free account
hub / github.com/secdev/scapy / AUTHENTICATED

Method AUTHENTICATED

scapy/layers/smbclient.py:608–617  ·  view source on GitHub ↗
(self, ssp_blob=None)

Source from the content-addressed store, hash-verified

606
607 @ATMT.state()
608 def AUTHENTICATED(self, ssp_blob=None):
609 self.session.sspcontext, _, status = self.session.ssp.GSS_Init_sec_context(
610 self.session.sspcontext,
611 input_token=ssp_blob,
612 target_name="cifs/" + self.HOST if self.HOST else None,
613 )
614 if status != GSS_S_COMPLETE:
615 raise ValueError("Internal error: the SSP completed with an error.")
616 # Authentication was successful
617 self.session.computeSMBSessionKeys(IsClient=True)
618
619 # DEV: add a condition on AUTHENTICATED with prio=0
620

Callers 1

Calls 2

computeSMBSessionKeysMethod · 0.80
GSS_Init_sec_contextMethod · 0.45

Tested by

no test coverage detected