diff --git a/HiveNightmare/HiveNightmare.cpp b/HiveNightmare/HiveNightmare.cpp index 97a2435..606987e 100644 --- a/HiveNightmare/HiveNightmare.cpp +++ b/HiveNightmare/HiveNightmare.cpp @@ -7,6 +7,7 @@ // 0.3 - 20/07/2021 - merge in support for SYSTEM and SECURITY dumping, various bug fixes // 0.4 - 21/07/2021 - better code shocker :O // 0.5 - 21/07/2021 - favour retrieving hives from latest snapshot, UTF-16 support, bump to 15 snapshots +// 0.6 - 26/07/2021 - close file handle to avoid being a dummy #include #include @@ -38,6 +39,9 @@ HANDLE getVssFileHandle(TCHAR* path, int maxSearch) { youngest = lastWriteTime; wcout << "Newer file found: " << fullPath << endl; } + else { + CloseHandle(hfile); + } } } } @@ -101,7 +105,7 @@ int main(int argc, char* argv[]) searchDepth = 15; } - wcout << L"\nHiveNightmare v0.5 - dump registry hives as non-admin users\n\nSpecify maximum number of shadows to inspect with parameter if wanted, default is 15.\n\nRunning...\n\n"; + wcout << L"\nHiveNightmare v0.6 - dump registry hives as non-admin users\n\nSpecify maximum number of shadows to inspect with parameter if wanted, default is 15.\n\nRunning...\n\n"; HANDLE hFile; diff --git a/Release/HiveNightmare.exe b/Release/HiveNightmare.exe index 2d7d2a2..e9fec1e 100644 Binary files a/Release/HiveNightmare.exe and b/Release/HiveNightmare.exe differ