level4: add source
This commit is contained in:
parent
cd2fff2c46
commit
9366e1c9e6
28
level4/source.c
Normal file
28
level4/source.c
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user