42_rainfall/level6/source.c
2025-04-29 14:00:03 +02:00

27 lines
350 B
C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void n(void)
{
system("/bin/cat /home/user/level7/.pass");
}
void m(void)
{
puts("Nope");
}
int main(int ac, char **av)
{
char *buf;
void (**fn_ptr)(void);
buf = (char *)malloc(64);
fn_ptr = (void (**)(void))malloc(4);
*fn_ptr = m;
strcpy(buf, av[1]);
(*fn_ptr)();
return 0;
}