-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchall.c
32 lines (25 loc) · 835 Bytes
/
chall.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <stdio.h>
#include <stdint.h>
int main() {
uint64_t first_check = 0x7d786168;
uint64_t second_check = 0x7233766730306f647d;
unsigned long long input1;
unsigned long long input2;
printf("Do you really want the flag? Then tell me the first phrase\n");
scanf("%llx", &input1);
if (input1 == first_check) {
printf("Wow, Did not think that. What about the Second Phrase?\n");
scanf("%llx", &input2);
if (input2 == second_check) {
printf("You have shown diligence in your ways\n");
return 1;
} else {
printf("BOOO, wrong phrase. so much to come so far\n");
return 0;
}
} else {
printf("Nope, Try again\n");
return 0;
}
return 0;
}