| 31 | } |
| 32 | } |
| 33 | int 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 | } |
no outgoing calls
no test coverage detected