level4: add source

This commit is contained in:
0x35c 2025-04-29 11:36:57 +02:00
parent cd2fff2c46
commit 9366e1c9e6

28
level4/source.c Normal file
View File

@ -0,0 +1,28 @@
#include <stdio.h>
#include <stdlib.h>
int m;
void p(char *str)
{
printf(str);
return;
}
void n(void)
{
char buf[520];
fgets(buf, 512, stdin);
p(buf);
if (m == 0x1025544) {
system("/bin/cat /home/user/level5/.pass");
}
return;
}
int main(void)
{
n();
return 0;
}