Skip to content

Commit 468754c

Browse files
committed
adding umd ctf 2023 writeup
1 parent 6c15cc2 commit 468754c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1764
-2
lines changed

content/about.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ author = "Hugo Authors"
88

99
Hello! My name's Audrey. Currently a student at the University of Michigan where I study Computer Science.
1010

11-
I am one of the officers for [WolvSec](https://wolvsec.org/), the cybersecurity club at UofM. I paricipate in CTF competitions with them as well. Currently focusing on `Forensics` and `OSINT` challenges, while advancing my skills in other categories. You can find my writeups for challenges in my [blog](https://dree.blog/posts).
11+
I am the president of [WolvSec](https://wolvsec.org/), the cybersecurity club at UofM. I paricipate in CTF competitions with them as well. Currently focusing on `Forensics` and `OSINT` challenges, while advancing my skills in other categories. You can find my writeups for challenges in my [blog](https://dree.blog/posts).
1212

13+
Expect a website redesign soon :)
128 KB
Loading
128 KB
Loading
94.8 MB
Loading
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
%Build script to beep-boop (UMDCTF2023, author: Assgent)
2+
3+
%{
4+
A flag was encoded into a sound file using the script below.
5+
Analyze the script and reverse-engineer the flag!
6+
%}
7+
8+
close
9+
clear all
10+
11+
flag = fileread("flag.txt");
12+
13+
Fs = 8192;
14+
sound = string_to_sound(flag, Fs, 1, 0.5);
15+
16+
sound_normalized = sound / (max(abs(sound)));
17+
audiowrite("sound.wav", sound_normalized, Fs);
18+
19+
function freq = get_frequency_1(char)
20+
freq = char * 13;
21+
end
22+
23+
function freq = get_frequency_2(char)
24+
freq = (char - 50) * 11;
25+
end
26+
27+
28+
% Fs is the samples/sec.
29+
% T is the duration of each key. (in seconds)
30+
% Tpause is the pause between keys. (in seconds)
31+
function x = string_to_sound(keys,Fs,T,Tpause)
32+
t = (0:fix(T*Fs)).'/Fs ;
33+
zp = zeros(fix(Tpause*Fs/2),1) ;
34+
x = [];
35+
for r = 1:length(keys(:))
36+
char = keys(r);
37+
x = [x ; zp ; cos(2*pi*get_frequency_1(char)*t) + cos(2*pi*get_frequency_2(char)*t) ; zp];
38+
end
39+
end
155 KB
Loading
21.2 KB
Loading
48 KB
Loading
38.6 KB
Loading
2.85 MB
Loading

0 commit comments

Comments
 (0)