From c3346c1853893a3755f4af65181e7b0b2394fbb1 Mon Sep 17 00:00:00 2001 From: sina Date: Wed, 7 Oct 2026 15:44:39 +0200 Subject: [PATCH] show version in the help command --- hyperdbg/include/SDK/headers/Constants.h | 2 +- hyperdbg/libhyperdbg/code/debugger/core/interpreter.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hyperdbg/include/SDK/headers/Constants.h b/hyperdbg/include/SDK/headers/Constants.h index b66121c5..f1b92e2b 100644 --- a/hyperdbg/include/SDK/headers/Constants.h +++ b/hyperdbg/include/SDK/headers/Constants.h @@ -18,7 +18,7 @@ ////////////////////////////////////////////////// #define VERSION_MAJOR 0 -#define VERSION_MINOR 24 +#define VERSION_MINOR 25 #define VERSION_PATCH 0 #define BETA_VERSION FALSE diff --git a/hyperdbg/libhyperdbg/code/debugger/core/interpreter.cpp b/hyperdbg/libhyperdbg/code/debugger/core/interpreter.cpp index 1ac00b9a..a9ab644e 100644 --- a/hyperdbg/libhyperdbg/code/debugger/core/interpreter.cpp +++ b/hyperdbg/libhyperdbg/code/debugger/core/interpreter.cpp @@ -944,7 +944,7 @@ HyperDbgInterpreter(CHAR * Command) if (!FirstCommand.compare(".help") || !FirstCommand.compare("help") || !FirstCommand.compare(".hh") || !FirstCommand.compare("!help")) { - if (Tokens.size() == 2) + if (Tokens.size() >= 2) { // // Show that it's a help command @@ -954,8 +954,8 @@ HyperDbgInterpreter(CHAR * Command) } else { - ShowMessages("incorrect use of the '%s'\n\n", - GetCaseSensitiveStringFromCommandToken(Tokens.at(0)).c_str()); + ShowMessages("\nHyperDbg [version: %s, build: %s]\n\n", CompleteVersion, BuildVersion); + CommandHelpHelp(); return 0; }