Skip to content

Commit

Permalink
feat: use gitmodules
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom committed Apr 1, 2024
1 parent 1a46778 commit cc93d6c
Show file tree
Hide file tree
Showing 23 changed files with 261 additions and 114 deletions.
91 changes: 91 additions & 0 deletions .astro/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,104 @@ declare module 'astro:content' {
} & { render(): Render[".md"] };
};
"writeups": {
"utctf/2024/cryptography/beginner:-anti-dcode.fr.md": {
id: "utctf/2024/cryptography/beginner:-anti-dcode.fr.md";
slug: "utctf/2024/cryptography/beginner-anti-dcodefr";
body: string;
collection: "writeups";
data: InferEntrySchema<"writeups">
} & { render(): Render[".md"] };
"utctf/2024/cryptography/bits-and-pieces.md": {
id: "utctf/2024/cryptography/bits-and-pieces.md";
slug: "utctf/2024/cryptography/bits-and-pieces";
body: string;
collection: "writeups";
data: InferEntrySchema<"writeups">
} & { render(): Render[".md"] };
"utctf/2024/cryptography/numbers-go-brrr-2.md": {
id: "utctf/2024/cryptography/numbers-go-brrr-2.md";
slug: "utctf/2024/cryptography/numbers-go-brrr-2";
body: string;
collection: "writeups";
data: InferEntrySchema<"writeups">
} & { render(): Render[".md"] };
"utctf/2024/cryptography/numbers-go-brrr.md": {
id: "utctf/2024/cryptography/numbers-go-brrr.md";
slug: "utctf/2024/cryptography/numbers-go-brrr";
body: string;
collection: "writeups";
data: InferEntrySchema<"writeups">
} & { render(): Render[".md"] };
"utctf/2024/cryptography/rsa-256.md": {
id: "utctf/2024/cryptography/rsa-256.md";
slug: "utctf/2024/cryptography/rsa-256";
body: string;
collection: "writeups";
data: InferEntrySchema<"writeups">
} & { render(): Render[".md"] };
"utctf/2024/forensics/contracts.md": {
id: "utctf/2024/forensics/contracts.md";
slug: "utctf/2024/forensics/contracts";
body: string;
collection: "writeups";
data: InferEntrySchema<"writeups">
} & { render(): Render[".md"] };
"utctf/2024/forensics/osint-1.md": {
id: "utctf/2024/forensics/osint-1.md";
slug: "utctf/2024/forensics/osint-1";
body: string;
collection: "writeups";
data: InferEntrySchema<"writeups">
} & { render(): Render[".md"] };
"utctf/2024/forensics/study-music.md": {
id: "utctf/2024/forensics/study-music.md";
slug: "utctf/2024/forensics/study-music";
body: string;
collection: "writeups";
data: InferEntrySchema<"writeups">
} & { render(): Render[".md"] };
"utctf/2024/misc/ccv.md": {
id: "utctf/2024/misc/ccv.md";
slug: "utctf/2024/misc/ccv";
body: string;
collection: "writeups";
data: InferEntrySchema<"writeups">
} & { render(): Render[".md"] };
"utctf/2024/misc/survey.md": {
id: "utctf/2024/misc/survey.md";
slug: "utctf/2024/misc/survey";
body: string;
collection: "writeups";
data: InferEntrySchema<"writeups">
} & { render(): Render[".md"] };
"utctf/2024/reverse-engineering/beginner:-basic-reversing-problem.md": {
id: "utctf/2024/reverse-engineering/beginner:-basic-reversing-problem.md";
slug: "utctf/2024/reverse-engineering/beginner-basic-reversing-problem";
body: string;
collection: "writeups";
data: InferEntrySchema<"writeups">
} & { render(): Render[".md"] };
"utctf/2024/web/beginner:-off-brand-cookie-clicker.md": {
id: "utctf/2024/web/beginner:-off-brand-cookie-clicker.md";
slug: "utctf/2024/web/beginner-off-brand-cookie-clicker";
body: string;
collection: "writeups";
data: InferEntrySchema<"writeups">
} & { render(): Render[".md"] };
"utctf/2024/web/easy-mergers-v0.1.md": {
id: "utctf/2024/web/easy-mergers-v0.1.md";
slug: "utctf/2024/web/easy-mergers-v01";
body: string;
collection: "writeups";
data: InferEntrySchema<"writeups">
} & { render(): Render[".md"] };
"utctf/2024/web/schrödinger.md": {
id: "utctf/2024/web/schrödinger.md";
slug: "utctf/2024/web/schrödinger";
body: string;
collection: "writeups";
data: InferEntrySchema<"writeups">
} & { render(): Render[".md"] };
};

};
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "writeups"]
path = writeups
url = https://github.com/GerlachSnezka/writeups.git
25 changes: 25 additions & 0 deletions make.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

# update all submodules
git submodule update --init --recursive --remote

ctfs=$(find writeups/ -mindepth 1 -maxdepth 1 -type d -printf '%f\n')

for ctf in $ctfs; do
echo "Parsing $ctf"

years=$(find writeups/utctf/ -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | grep -E '[0-9]{4}' | xargs -I {} basename {})

for year in $years; do
echo "Parsing $year for $ctf"

if [ ! -d src/content/writeups/$ctf/$year ]; then
mkdir -p src/content/writeups/$ctf/$year
fi

cp writeups/$ctf/$year/* src/content/writeups/$ctf/$year -r
rm src/content/writeups/$ctf/$year/README.md
rm src/content/writeups/$ctf/$year/data.json
rm src/content/writeups/$ctf/$year/**/README.md
done
done
3 changes: 2 additions & 1 deletion src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const writeups = defineCollection({
schema: z.object({
title: z.string(),
description: z.string(),
date: z.coerce.date(),
author: z.string().optional(),
date: z.coerce.date().optional(),
points: z.number(),
solves: z.number().default(0),
}),
Expand Down
14 changes: 8 additions & 6 deletions src/content/ctfs/2024/utctf.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ description: Online, jeopardy-style CTF.
dateStart: 03/29/2024
dateEnd: 03/31/2024
categories:
- name: binary-exploitation
description: Exploit vulnerabilities in program code ("pwn").
- name: cryptography
description: funny
description: Crack codes, decipher hidden messages, and understand encryption methods.
- name: forensics
description: foren
description: Analyze digital evidence to uncover hidden information.
- name: misc
description: MISC
- name: rev
description: reverse eng
description: Tackle challenges that don't fit neatly into other categories, often requiring creative thinking.
- name: reverse-engineering
description: Understand how software works by analyzing its code.
- name: web
description: webos
description: Find vulnerabilities in websites and web applications.
---

Online, jeopardy-style CTF. Free to play, with prizes offered first, second, and third place.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "Beginner: Anti-dcode.fr"
description: "task"
points: 100
solves: 305
author: nobody
---

yeh' Beginner: Anti-dcode.fr.... it was hard lol
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "bits and pieces"
description: "task"
points: 490
solves: 218
author: nobody
---

yeh' bits and pieces.... it was hard lol
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "numbers go brrr 2"
description: "task"
points: 831
solves: 126
author: nobody
---

yeh' numbers go brrr 2.... it was hard lol
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "numbers go brrr"
description: "task"
points: 476
solves: 228
author: nobody
---

yeh' numbers go brrr.... it was hard lol
9 changes: 9 additions & 0 deletions src/content/writeups/utctf/2024/cryptography/rsa-256.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "RSA-256"
description: "task"
points: 100
solves: 627
author: nobody
---

yeh' RSA-256.... it was hard lol
9 changes: 9 additions & 0 deletions src/content/writeups/utctf/2024/forensics/contracts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "Contracts"
description: "task"
points: 100
solves: 387
author: nobody
---

yeh' Contracts.... it was hard lol
9 changes: 9 additions & 0 deletions src/content/writeups/utctf/2024/forensics/osint-1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "OSINT 1"
description: "task"
points: 580
solves: 202
author: nobody
---

yeh' OSINT 1.... it was hard lol
9 changes: 9 additions & 0 deletions src/content/writeups/utctf/2024/forensics/study-music.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "Study Music"
description: "task"
points: 834
solves: 122
author: nobody
---

yeh' Study Music.... it was hard lol
9 changes: 9 additions & 0 deletions src/content/writeups/utctf/2024/misc/ccv.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "CCV"
description: "task"
points: 912
solves: 91
author: nobody
---

yeh' CCV.... it was hard lol
8 changes: 4 additions & 4 deletions src/content/writeups/utctf/2024/misc/survey.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: Survey
description: https://forms.gle/VaB186QBnViSNdCt8
date: 04/01/2024
title: "Survey"
description: "task"
points: 100
solves: 272
author: nobody
---

yeh' survey
yeh' Survey.... it was hard lol
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "Beginner: Basic Reversing Problem"
description: "task"
points: 100
solves: 310
author: nobody
---

yeh' Beginner: Basic Reversing Problem.... it was hard lol
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "Beginner: Off-Brand Cookie Clicker"
description: "task"
points: 100
solves: 474
author: nobody
---

yeh' Beginner: Off-Brand Cookie Clicker.... it was hard lol
9 changes: 9 additions & 0 deletions src/content/writeups/utctf/2024/web/easy-mergers-v0.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "Easy Mergers v0.1"
description: "task"
points: 787
solves: 143
author: nobody
---

yeh' Easy Mergers v0.1.... it was hard lol
9 changes: 9 additions & 0 deletions src/content/writeups/utctf/2024/web/schrödinger.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "Schrödinger"
description: "task"
points: 314
solves: 250
author: nobody
---

yeh' Schrödinger.... it was hard lol
47 changes: 0 additions & 47 deletions src/pages/blog/[...slug].astro

This file was deleted.

Loading

0 comments on commit cc93d6c

Please sign in to comment.