-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgetFlag.c
86 lines (82 loc) · 4.16 KB
/
getFlag.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
# Haaroons CTF - Game Box - 15 September 2016 - v0.1
# Flag file
*/
#include <stdio.h>
// Colors you fool
#define ANSI_COLOR_RED "\x1b[31m"
#define ANSI_COLOR_GREEN "\x1b[32m"
#define ANSI_COLOR_YELLOW "\x1b[33m"
#define ANSI_COLOR_BLUE "\x1b[34m"
#define ANSI_COLOR_MAGENTA "\x1b[35m"
#define ANSI_COLOR_CYAN "\x1b[36m"
#define ANSI_COLOR_RESET "\x1b[0m"
// End colors
void stars(){
printf(ANSI_COLOR_BLUE "***********************************************" ANSI_COLOR_RESET "\n");
}
/* Main method, duhh */
int main() {
stars();
printf(ANSI_COLOR_GREEN";::::,,,::,,;';:,,:,....`.,.,..:';:,.,,:...,,,,\n");
printf(":,:::,:;':,::,....:,..,,.,,.,,:::,,,..,:,......\n");
printf(":,::,,;++:,.,,.,,,:,``.,,,:,,,:,,,,,,..,,.```..\n");
printf(":,,::;+#',..,,,,,.,.```,,:::::;:,:,:,,,,,.````.\n");
printf(",:;::'++;:,..:,,.`..``.,::;;:::::::::::,,..```.\n");
printf(";:;;'''':::,,,,...,..,:;,;:;:::::::;;::,,..``..\n");
printf("';'';;';:::::,,,,:..,:::::;;;;::::::;;:::..```.\n");
printf("';;;;'''';;::::::,.,;;;'';';;;;':;;+'';;;,````.\n");
printf(":::;'':::;:::::,`..::''';'::::;+;';;':;'::``...\n");
printf(":;::;,..:;;;::,`.,:::.:,,,:::,,:,:,::'';;:,`...\n");
printf(";::,,...:;;;:,..::.,,.,:::;:,::,:;,;:;;;,.:``..\n");
printf(";.,:,,.,:::;;..,,,,,.:::;;::::::,,::,;;:':.. `.\n");
printf(":..::,,:;;''..,,,,:::;:';''''':;',..:;:'';,. `.\n");
printf("::,:::,:;''...:.,:;;:;+'++''+'+''+:;:,`:';,.. .\n");
printf(":::::::;'':`,:,:;;:';''+++++++'''+':;;;,:;;;` `\n");
printf("';;:;;;;';``,,::;:;;''+'+##+#+++';';;::;:'':,` \n");
printf(";;;;;;;;:, .,:::::;:';'+#++#+##+';';::,:;;+;;` \n");
printf(";;::::::,..,::;:::;:;;:;::,;::;;'''''''.::;:;,`\n");
printf(";;:,:::::`.,::,:,,.....,,..,.,,::';;;;;:,;;:,,.\n");
printf(":,,,:,,::`.:::,,,,..,::,,......,.,,,:;;::,;;:;.\n");
printf(":,,::..:,`,,,:::::::,:::::::,:::,....:,;;:;;;.,\n");
printf(",,,,::,::`:,,::;'+#+'::;;;:;;;;::,,::,,;;;:;;;.\n");
printf("::,,::::..::;:''+#@###+'+++++''++++';:;;:;;;:#.\n");
printf("::,::::,`,;:;;;+#@@@@@@@######@@####+;:;;;;;:+;\n");
printf("/*;:::,::,.:::;'+####@#@@@@##@@@@@@@@##';';;+;,\n");
printf(":::,,,,,,:::;++++'+'@@#######@#@;@@@#+'';';';';\n");
printf(",,,,,,...;:;:'''::;'''+':'+##++#@@+##+'+'''':;:\n");
printf(",,,,,:,,,::';';':,;'';;,:;:;;;;'+';''''+''''';;\n");
printf(":::,,,:,,:'':''';;'::,;:,::;,;;:;;::;';':';';;'\n");
printf(":::::,,,:;'';:;;''':::,:,,:::;;;;::,;'''';';;;'\n");
printf("::;::,,,:;+';;';;++'::,,:,:::;:;;;';;';''''':;'\n");
printf(",:;:,,..:;';';:''+;+;:::;;::::::'';';;;'''+':''\n");
printf("...,:.``,;;;;:;;':'+::,,':;;'::'+';;:;;''+#;::'\n");
printf("..,,....,:';:;:;:''',,,,,',:;';+'++';;;'+++;:';\n");
printf(".:,,.,.`,:'';;;:';';,++:.,,,::'++'';:;'+++'':;'\n");
printf(",::,.,..,;'';;;;';';:+@@,.'#@:;'''';;:;''';;.;;\n");
printf(",;:,,...,';'';;::'':,'#@@+@@+,:;'';;;:;''+'',::\n");
printf(",,::,,,,,''';;;;'',;,:'#+###'::;'';;;;'+'';;,;;\n");
printf("::::,::::'''+:;'',,':,,:,:;:,,';';':;;';'+':;;:\n");
printf(":;;:;:.::+;'';;;;,,;:,,..,,,,;;:;;;;'';'+'+:::;\n");
printf(":;;:::,,:;+';'';.,:;;:,,,.,:;;;:;'''+'''++',';;\n");
printf(";;:::,:::;''+';'::;;;;::::;;;;;;:''++'++''':'';\n");
printf(";;;::,::,:':'';;;;';';;:::;;'''';'';'+''''';';;\n");
printf(";;;::;:;;:;;;''';;;;;;:;;;:;;;;'';+'++';'''':;'\n");
printf(";;;':;;:;;;:;''+;###;,` `;##';''''+'+;;''+'';;;\n");
printf(";;';:;;;;;;;:''++'''';;:,...:#@#+'+'+'''''+';;;\n");
printf("';';;;;;;';;;';+'+####@@###'';;'++++''''+++';::\n");
printf("''''''''''''';;+++#####@@@@####+++'+'+'+++';;;;\n");
printf("'+;'''''++';;;;++'##+######@##++'+'';'++#';';:;\n");
printf("''+'+'+++'';::;'+#++####+#####++++;+'+#++;';;;;\n");
printf("+'+''++'+;;::,:;+###########+###++'+###++;;;:;;\n");
printf("+''''+'+';:::,:::################'#####+'':;;;'\n");
printf("'''+++'';:::::::,'#@#######@##########+';'';;';\n");
printf("'''+''';:::::::::,+#@@@@##@@@######@@+''';'';';\n");
printf("''''';;:,,::::::,:;'#@@@@@@@#####@#@@'';'''';;;\n");
printf("'+';:;::::::;:::,:;++###@#@####@#####'';'''';;;\n");
printf("'';;;:;;;:::::;:,;;++#+#+#####@######'';''';;''\n"ANSI_COLOR_RESET);
printf(ANSI_COLOR_YELLOW "***************FLAG:HIDETOSURVIVE**************" ANSI_COLOR_RESET "\n");
stars();
fflush(stdout);
return 0;
}