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

Method get_auth_headers

impacket/http.py:120–126  ·  view source on GitHub ↗
(self, http_obj, method, path, headers)

Source from the content-addressed store, hash-verified

118 return HTTPSConnection(host_L6)
119
120 def get_auth_headers(self, http_obj, method, path, headers):
121 if self.__auth_type == AUTH_BASIC:
122 return self.get_auth_headers_basic(http_obj, method, path, headers)
123 elif self.__auth_type in [AUTH_AUTO, AUTH_NTLM]:
124 return self.get_auth_headers_auto(http_obj, method, path, headers)
125 else:
126 raise Exception('%s auth type not supported' % self.__auth_type)
127
128 def get_auth_headers_basic(self, http_obj, method, path, headers):
129 if self.__lmhash != '' or self.__nthash != '' or \

Callers 1

create_channelMethod · 0.80

Calls 2

get_auth_headers_autoMethod · 0.95

Tested by

no test coverage detected