missing ddl |
==> |
1) string_len = 5
2) stringa_pass = 'A'
3) *usernmae != *password
- So all string with 5 or more char from A to Z, that are equal for user and pass |
==> |
SOLUTION :
int __cdecl main(int argc, const char** argv, const char** envp)
{
const char Str1[] = "qwerty";
const char Str2[] = "input";
printf("Password: ");
scanf("%s", &Str2);
//sub_401490();
if (!strcmp(Str1, Str2))
printf("Correct");
else
printf("Incorrect\nHint: decompile this executable with Hex-Rays Decompiler...\n");
return 0;
} |
==> |
// ENCRYPTION
for (i = 0; ; ++i)
{
v4 = strlen(userName);
if (v4 |
==> |
thanks man this is the decompile file
#define _CRT_SECURE_NO_WARNINGS
#include
#include
int __cdecl main(int argc, const char** argv, const char** envp)
{
unsigned int v3; // eax
size_t v4; // eax
char inputKey[50]; // [esp+12h] [ebp-5Eh] BYREF
char userName[20]; // [esp+44h] [ebp-2Ch] BYREF
int v8; // [esp+58h] [ebp-18h]
int k; // [esp+60h] [ebp-10h]
unsigned int i; // [esp+64h] [ebp-Ch]
int j; // [esp+68h] [ebp-8h]
int v13; // [esp+6Ch] [ebp-4h]
v13 = 0;
v3 = time(0);
srand(v3);
puts("Press enter to start");
getchar();
puts("\t\t#####################");
puts("\t\t# CRACK ME DADDY v2 #");
puts("\t\t#####################");
putchar(10);
printf("what is your username(do not add spaces to make it easier) ::");
scanf("%[^\n]%*c", userName);
// ENCRYPTION
for (i = 0; ; ++i)
{
v4 = strlen(userName);
if (v4 |
==> |