level03: done
This commit is contained in:
@ -10,10 +10,11 @@ int decrypt(char key)
|
||||
|
||||
// Stack canary protection (or SSP)
|
||||
// *(_DWORD *)((char *)&str[4] + 1) = __readgsdword(0x14u);
|
||||
//
|
||||
strcpy((char *)str, "Q}|u`sfg~sf{}|a3");
|
||||
len = strlen((const char *)str);
|
||||
for (int i = 0; i < len; ++i)
|
||||
*((char *)str + i) ^= key;
|
||||
str[i] ^= key;
|
||||
// Key needs to equal 12
|
||||
if (!strcmp((const char *)str, "Congratulations!"))
|
||||
return system("/bin/sh");
|
||||
|
Reference in New Issue
Block a user