| 163 | } |
| 164 | |
| 165 | void ReadStringFireFox(HANDLE hProcess, NsCString string) { |
| 166 | if (string.address != 0) { |
| 167 | unsigned char* buf = (unsigned char*)malloc(string.len + 1); |
| 168 | if (buf == 0 || !ReadProcessMemory(hProcess, reinterpret_cast<LPCVOID>(string.address), buf, string.len + 1, nullptr)) { |
| 169 | PRINT("Failed to read cookie value"); |
| 170 | free(buf); |
| 171 | return; |
| 172 | } |
| 173 | PRINT("%s\n", buf); |
| 174 | } |
| 175 | } |
| 176 | void ReadPassEdge(HANDLE hProcess, int64_t address, char len) { |
| 177 | unsigned char* buf = (unsigned char*)malloc(len + 1); |
| 178 | if (buf == 0 || !ReadProcessMemory(hProcess, reinterpret_cast<LPCVOID>(address), buf, len + 1, nullptr)) { |
no outgoing calls
no test coverage detected