MCPcopy Create free account
hub / github.com/fortra/impacket / parse_www_authenticate

Method parse_www_authenticate

impacket/http.py:94–108  ·  view source on GitHub ↗
(self, header)

Source from the content-addressed store, hash-verified

92 self.__TGS = TGS
93
94 def parse_www_authenticate(self, header):
95 ret = []
96
97 if 'NTLM' in header:
98 ret.append(AUTH_NTLM)
99 if 'Basic' in header:
100 ret.append(AUTH_BASIC)
101 if 'Negotiate' in header:
102 ret.append(AUTH_NEGOTIATE)
103 if 'Bearer' in header:
104 ret.append(AUTH_BEARER)
105 if 'Digest' in header:
106 ret.append(AUTH_DIGEST)
107
108 return ret
109
110 def connect(self, protocol, host_L6):
111 if protocol == 'http':

Callers 1

send_ntlm_type1Method · 0.95

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected