level00: done
level01: done
This commit is contained in:
20
level00/source.c
Normal file
20
level00/source.c
Normal file
@ -0,0 +1,20 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int buf[4];
|
||||
|
||||
puts("***********************************");
|
||||
puts("* \t -Level00 -\t\t *");
|
||||
puts("***********************************");
|
||||
printf("Password:");
|
||||
scanf("%d", buf);
|
||||
if (buf[0] != 5276) {
|
||||
puts("\nInvalid Password!");
|
||||
} else {
|
||||
puts("\nAuthenticated!");
|
||||
system("/bin/sh");
|
||||
}
|
||||
return buf[0] != 5276;
|
||||
}
|
Reference in New Issue
Block a user