Skip to content

Commit 459b603

Browse files
committed
Dawg CTF
1 parent 3abc64b commit 459b603

File tree

11 files changed

+58
-0
lines changed

11 files changed

+58
-0
lines changed
16.6 KB
Binary file not shown.

DawgCTF/2020/OnLockdown/onlockdown

15.2 KB
Binary file not shown.

DawgCTF/2020/OnLockdown/onlockdown.c

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#include <stdio.h>
2+
#include <stdlib.h>
3+
#include <string.h>
4+
5+
void flag_me(){
6+
system("cat flag.txt");
7+
}
8+
9+
void lockdown(){
10+
int lock = 0;
11+
char buf[64];
12+
printf("I made this really cool flag but Governor Hogan put it on lockdown\n");
13+
printf("Can you convince him to give it to you?\n");
14+
gets(buf);
15+
if(lock == 0xdeadbabe){
16+
flag_me();
17+
}else{
18+
printf("I am no longer asking. Give me the flag!\n");
19+
}
20+
}
21+
22+
int main(){
23+
lockdown();
24+
return 0;
25+
}

DawgCTF/2020/TiKToK/libc-2.27.tar.gz

863 KB
Binary file not shown.

DawgCTF/2020/TiKToK/tiktok

17 KB
Binary file not shown.
Binary file not shown.

DawgCTF/2020/WhereWeRoppinBoys/rop

15.5 KB
Binary file not shown.

DawgCTF/2020/bof-to-the-top/bof

15.1 KB
Binary file not shown.

DawgCTF/2020/bof-to-the-top/bof.c

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#include "stdio.h"
2+
#include "string.h"
3+
#include "stdlib.h"
4+
5+
// gcc -m32 -fno-stack-protector -no-pie bof.c -o bof
6+
7+
void audition(int time, int room_num){
8+
char* flag = "/bin/cat flag.txt";
9+
if(time == 1200 && room_num == 366){
10+
system(flag);
11+
}
12+
}
13+
14+
void get_audition_info(){
15+
char name[50];
16+
char song[50];
17+
printf("What's your name?\n");
18+
gets(name);
19+
printf("What song will you be singing?\n");
20+
gets(song);
21+
}
22+
23+
void welcome(){
24+
printf("Welcome to East High!\n");
25+
printf("We're the Wildcats and getting ready for our spring musical\n");
26+
printf("We're now accepting signups for auditions!\n");
27+
}
28+
29+
int main(){
30+
welcome();
31+
get_audition_info();
32+
return 0;
33+
}
16.5 KB
Binary file not shown.

DawgCTF/2020/trASCII/trASCII

15.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)