From aaa83e61cc376c045fe9366f120bef58e7bc3ca4 Mon Sep 17 00:00:00 2001 From: C5pider <51360176+Cracked5pider@users.noreply.github.com> Date: Sun, 17 Mar 2024 16:05:42 +0100 Subject: [PATCH] Update RegQueryList.c --- reg/RegQueryList.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/reg/RegQueryList.c b/reg/RegQueryList.c index 350f7d0..62040d5 100644 --- a/reg/RegQueryList.c +++ b/reg/RegQueryList.c @@ -85,7 +85,12 @@ int main() // enumerate keys inside of the opened path // if ( ! NT_SUCCESS( Status = NtEnumerateKey( Key, KeyIndex, 0, KeyInfo, Length, &Length ) ) ) { - printf( "[-] NtEnumerateKey Failed: %lx\n", Status ); + // + // STATUS_NO_MORE_ENTRIES + // + if ( Status != 0x8000001A ) { + printf("[-] NtEnumerateKey Failed: %lx\n", Status); + } goto END_OF_ENUM; }