level7: few fixes on the source code and walkthrough complete

This commit is contained in:
2025-05-02 16:54:51 +02:00
parent 943d8fb772
commit a8ff8f0105
2 changed files with 21 additions and 9 deletions

View File

@ -14,18 +14,18 @@ void m(void)
return;
}
int32_t main(int32_t ac, char **av)
int main(int ac, char **av)
{
int32_t *str = malloc(8);
str[0] = 1;
str[1] = malloc(8);
int *s1 = malloc(8);
s1[0] = 1;
s1[1] = malloc(8);
int32_t *str2 = malloc(8);
str2[0] = 2;
str2[1] = malloc(8);
int *s2 = malloc(8);
s2[0] = 2;
s2[1] = malloc(8);
strcpy(str[1], av[1]);
strcpy(str2[1], av[2]);
strcpy(s1[1], av[1]);
strcpy(s2[1], av[2]);
fgets(c, 68, fopen("/home/user/level8/.pass", "r"));
puts("~~");
return 0;