1
0
mirror of https://github.com/CPunch/Laika.git synced 2025-10-10 01:40:09 +00:00

Implemented VMBoxes, linux persistence related strings are obfuscated, added VMBoxGen tool

- lboxconfig.h holds obfuscated data, which is generated by VMBoxGen
- linpersist.c now uses obfuscated strings
This commit is contained in:
2022-05-09 16:41:01 -05:00
parent 7ca855410d
commit 71db213261
11 changed files with 232 additions and 27 deletions

View File

@@ -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;
}