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

Function findNTLMBytes

Utils.cpp:33–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32}
33int findNTLMBytes(char* bytes, int len) {
34
35 char pattern[7] = { 0x4E, 0x54, 0x4C, 0x4D, 0x53, 0x53, 0x50 };
36 int pIdx = 0;
37 int i;
38 for (i = 0; i < len; i++) {
39 if (bytes[i] == pattern[pIdx]) {
40 pIdx = pIdx + 1;
41 if (pIdx == 7) return (i - 6);
42 }
43 else {
44 pIdx = 0;
45 }
46 }
47 return -1;
48}

Callers 2

ExtractType3FromRpcFunction · 0.85
startCOMListenerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected