Aggiunto 0x00 in stringa chiave

This commit is contained in:
Giulio De Pasquale 2017-07-09 00:11:34 +02:00
parent e3efd4f5d2
commit ef611dd100
2 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,7 @@ int main(int argc, char *argv[]) {
unsigned char opcode_key[] = {0x48, 0x61, 0x76, 0x65, 0x46, 0x75, 0x6e, unsigned char opcode_key[] = {0x48, 0x61, 0x76, 0x65, 0x46, 0x75, 0x6e,
0x21, 0x50, 0x6f, 0x6c, 0x69, 0x43, 0x54, 0x21, 0x50, 0x6f, 0x6c, 0x69, 0x43, 0x54,
0x46, 0x32, 0x30, 0x31, 0x37, 0x21}; 0x46, 0x32, 0x30, 0x31, 0x37, 0x21, 0x00};
printf("%s", banner); printf("%s", banner);
printf("\nHmmm...\n"); printf("\nHmmm...\n");

View File

@ -10,6 +10,7 @@ void VM::encryptOpcodes(uint8_t *key) {
uint32_t i, j, tmp, keysize; uint32_t i, j, tmp, keysize;
keysize = strlen((char *)key); keysize = strlen((char *)key);
DBG_INFO(("Using key: %s\n", key));
/* /*
RC4 KSA! :-D RC4 KSA! :-D
*/ */