MCPcopy Create free account
hub / github.com/decoder-it/ADCSCoercePotato / ExtractType2FromHttp

Function ExtractType2FromHttp

HTTPCrossProtocolRelay.cpp:157–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157void ExtractType2FromHttp(char* httpPacket, int httpPacketLen, char* ntlmType2, int* ntlmType2Len) {
158 char b64Type2[DEFAULT_BUFLEN];
159 int b64Type2Len = 0;
160 findBase64NTLM(httpPacket, httpPacketLen, b64Type2, &b64Type2Len);
161
162 char* decodedType2Tmp = base64Decode(b64Type2, b64Type2Len, ntlmType2Len);
163
164 memset(ntlmType2, 0, DEFAULT_BUFLEN);
165 memcpy(ntlmType2, decodedType2Tmp, *ntlmType2Len);
166
167}
168
169
170int findBase64NTLM(char* buffer, int buffer_len, char* outbuffer, int* outbuffer_len) {

Callers 1

startCOMListenerMethod · 0.85

Calls 2

findBase64NTLMFunction · 0.85
base64DecodeFunction · 0.85

Tested by

no test coverage detected