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

Function ReadStringTodeskPath

Ghostwolf/Application.cpp:233–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231 PRINT("%s\n", buf);
232}
233void ReadStringTodeskPath(HANDLE hProcess, TodeskString string) {
234 unsigned char* buf = (unsigned char*)malloc(string.len + 1);
235 if (buf == 0 || !ReadProcessMemory(hProcess, reinterpret_cast<LPCVOID>(string.string_part_1), buf, string.len + 1, nullptr)) {
236 PRINT("Failed to read todesk value");
237 free(buf);
238 return;
239 }
240 PRINT("%s\n", buf);
241}
242
243void ReadVector(HANDLE hProcess, RemoteVector vector, DWORD origSize) {
244 size_t szSize = vector.end_ - vector.begin_;

Callers 1

PrintValuesTodeskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected