October 2018
Beginner to intermediate
436 pages
9h 36m
English
The regenum program, as mentioned below, aims to enumerate all values and data in a given registry key. The parameters required for the APIs depend on the result of the previous APIs. Just like how we were able to write data to a file in the keylogger program, registry enumerating APIs also require a handle. In this case, a handle to the registry key is used by the RegEnumValueA and RegQueryValueExA APIs.
int main(){ LPCSTR lpSubKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Run"; HKEY hkResult; DWORD dwIndex; char ValueName[1024]; char ValueData[1024]; DWORD cchValueName; DWORD result; ...Read now
Unlock full access