Skip to content

Commit 015095d

Browse files
author
Sajjad Arshad
committed
TGHACK CTF
1 parent d16f895 commit 015095d

File tree

5 files changed

+33
-0
lines changed

5 files changed

+33
-0
lines changed

TGHACK/2020/Boofy/boofy

7.98 KB
Binary file not shown.

TGHACK/2020/Boofy/boofy.c

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#include <stdlib.h>
2+
#include <stdio.h>
3+
#include <unistd.h>
4+
5+
6+
void get_flag()
7+
{
8+
printf("TG20{the real flag is on the server}\n");
9+
}
10+
11+
12+
void try_password()
13+
{
14+
char password[20] = { 0 };
15+
int correct = 0;
16+
printf("Please enter the password?\n");
17+
gets(password);
18+
if (correct == 1) {
19+
get_flag();
20+
} else {
21+
printf("Sorry, but that's not the right password...\n");
22+
}
23+
24+
}
25+
26+
27+
28+
int main()
29+
{
30+
setvbuf(stdout, NULL, _IONBF, 0);
31+
try_password();
32+
return 0;
33+
}

TGHACK/2020/UselessCrap/crap

13.3 KB
Binary file not shown.

TGHACK/2020/UselessCrap/ld-2.31.so

1.29 MB
Binary file not shown.

TGHACK/2020/UselessCrap/libc-2.31.so

15.8 MB
Binary file not shown.

0 commit comments

Comments
 (0)