mirror of
https://github.com/es3n1n/defendnot.git
synced 2026-08-02 10:32:01 +00:00
feat(loader): check for wsc service before starting
This commit is contained in:
30
cxx-shared/shared/strings.hpp
Normal file
30
cxx-shared/shared/strings.hpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
#include "shared/util.hpp"
|
||||
#include <string_view>
|
||||
|
||||
namespace strings {
|
||||
constexpr std::string_view kProjectName = "defendnot";
|
||||
constexpr std::string_view kRepoUrl = "https://github.com/es3n1n/defendnot";
|
||||
constexpr std::string_view kVersion = "1.2.0";
|
||||
|
||||
constexpr std::string_view kDefaultAVName = "dnot.sh";
|
||||
|
||||
constexpr std::string_view kVictimProcess = "Taskmgr.exe";
|
||||
constexpr std::string_view kDllName = "defendnot.dll";
|
||||
|
||||
constexpr std::string_view kWSCUnavailableError = /// !winserver
|
||||
"Windows Security Center (WSC) is not available on this machine.\n"
|
||||
"For more details, please refer to: https://github.com/es3n1n/defendnot/issues/25";
|
||||
|
||||
constexpr std::string_view kWSCUnavailableErrorWinServer = /// winserver
|
||||
"Windows Security Center (WSC) is not available on this machine.\n"
|
||||
"This typically occurs on Windows Server operating systems, which are not supported by this tool.\n"
|
||||
"For more details, please refer to: https://github.com/es3n1n/defendnot/issues/17";
|
||||
|
||||
inline std::string_view wsc_unavailable_error() noexcept {
|
||||
if (shared::is_winserver()) {
|
||||
return kWSCUnavailableErrorWinServer;
|
||||
}
|
||||
return kWSCUnavailableError;
|
||||
}
|
||||
} // namespace strings
|
||||
Reference in New Issue
Block a user