My crack code works for the rofl code but not for all I tried two other codes and I don't know why was it not able to crack thos codes even when I increased my range of characters for search
#define _XOPEN_SOURCE
#include<cs50.h>
#include<stdio.h>
#include<string.h>
#include<unistd.h>
int main(int argc, string argv[])
{
char i,j,k,l;
if(argc==2)
{
char a[5]="\0";
for(i=48;i<=122;i++)
{
a[0]=i;
if(strcmp(crypt(a,"50"),argv[1])==0)
{
printf("%s\n", a);
break;
}
else{
for(j=48;j<=122;j++)
{
a[1]=j;
if(strcmp(crypt(a,"50"), argv[1])==0)
{
printf("%s\n", a);
break;
}
else
{
for(k=48;k<=122;k++)
{
a[2]=k;
if(strcmp(crypt(a,"50"), argv[1])==0)
{
printf("%s\n", a);
break;
}
else
{
for(l=48;l<=122;l++)
{
a[3]=l;
if(strcmp(crypt(a,"50"), argv[1])==0)
{
printf("%s\n", a);
break;
}
}
}
}
}
}
}
}
}
}
Please help me fast....