[FEATURE] Added version info

This commit is contained in:
hasherezade
2022-11-05 06:20:08 -07:00
parent 03530a5ec9
commit 3bf45afdf0
6 changed files with 49 additions and 6 deletions
+2
View File
@@ -1,2 +1,4 @@
docs/
*.aps
*.bak
+2 -1
View File
@@ -58,7 +58,8 @@ set (hdrs
)
set (rsrc
resources.h
resources.rc
hh_res.rc
hh_ver_short.h
)
# libs
+33
View File
@@ -0,0 +1,33 @@
#include "hh_ver_short.h"
#include "resources.h"
#include <windows.h>
#define VER_COMPANYNAME_STR "Hashereware (hashereware.com)"
#define VER_FILETYPE VFT_APP
#define VER_FILESUBTYPE VFT2_UNKNOWN
#define VER_FILEOS VOS_NT_WINDOWS32
#define VER_FILEDESCRIPTION_STR "Hollows Hunter: scans running processes, recognizes and dumps a variety of potentially malicious implants."
#define VER_INTERNALNAME_STR "hollows_hunter.exe"
#define VER_ORIGINALFILENAME_STR "hollows_hunter.exe"
#define VER_LEGALCOPYRIGHT_STR "Copyright © 2018-2022 Hasherezade"
#define VER_PRODUCTNAME_STR "Hollows Hunter"
#define VER_FILEVERSION HH_MAJOR_VERSION,HH_MINOR_VERSION,HH_MICRO_VERSION,HH_PATCH_VERSION
#define VER_PRODUCTVERSION_STR HH_VERSION_STR
#define VER_FILEFLAGSMASK (VS_FF_DEBUG | VS_FF_PRERELEASE)
#ifdef DEBUG
#define VER_FILEFLAGS (VS_FF_DEBUG)
#else
#define VER_FILEFLAGS (0)
#endif
#include "common.ver"
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDI_ICON1 ICON "logo/favicon.ico"
+8
View File
@@ -0,0 +1,8 @@
#pragma once
#define HH_MAJOR_VERSION 0
#define HH_MINOR_VERSION 3
#define HH_MICRO_VERSION 5
#define HH_PATCH_VERSION 0
#define HH_VERSION_STR "0.3.5"
+3 -4
View File
@@ -16,8 +16,7 @@
#include "util/process_privilege.h"
#include "util/strings_util.h"
#define VERSION "0.3.4"
#include "hh_ver_short.h"
using namespace hhunter::util;
@@ -62,7 +61,7 @@ int main(int argc, char *argv[])
hh_args_init(hh_args);
bool info_req = false;
HHParams uParams(VERSION);
HHParams uParams(HH_VERSION_STR);
if (!uParams.parse(argc, argv)) {
return PESIEVE_INFO;
}
@@ -76,7 +75,7 @@ int main(int argc, char *argv[])
}
}
print_version(VERSION);
print_version(HH_VERSION_STR);
std::cout << std::endl;
if (argc < 2) {
print_in_color(WHITE, "Default scan deployed.");