From 1003ecbb67508818af9105c1ebb4414a67c57669 Mon Sep 17 00:00:00 2001 From: Abel Stuker Date: Mon, 25 Nov 2024 22:30:25 +0100 Subject: [PATCH] feat: add huh challenge --- huh/README.md | 14 ++ huh/SOLUTION.md | 13 ++ huh/generator.py | 21 ++ huh/huh.ws | 517 +++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 565 insertions(+) create mode 100644 huh/README.md create mode 100644 huh/SOLUTION.md create mode 100644 huh/generator.py create mode 100644 huh/huh.ws diff --git a/huh/README.md b/huh/README.md new file mode 100644 index 0000000..4d7aaa7 --- /dev/null +++ b/huh/README.md @@ -0,0 +1,14 @@ +# Huh +## Text + + + +(intentionally left empty, DO NOT COPY THIS OVER INTO CTFD) +## Author +Robbe De Greef + +## Files +'huh.ws' + +## How to Deploy +/ diff --git a/huh/SOLUTION.md b/huh/SOLUTION.md new file mode 100644 index 0000000..ae2cddf --- /dev/null +++ b/huh/SOLUTION.md @@ -0,0 +1,13 @@ +## Difficulty +20/100 | EASY + +Whitespace language is pretty well known + +## Category +Reversing + +## How To Solve +Just run the file in a whitespace language interpreter, such as: [this one](https://github.com/Romejanic/Whitespace) + +## Flag +IGCTF{Ha!-I-ain't-seeing-nothing-matter-of-fact-Im-blind-in-my-left-eye-and-43%-blind-in-my-right-eye.} \ No newline at end of file diff --git a/huh/generator.py b/huh/generator.py new file mode 100644 index 0000000..6cb7a09 --- /dev/null +++ b/huh/generator.py @@ -0,0 +1,21 @@ +outfile = "out.ws" + +with open(outfile, "w+") as f: + def write(line): + print(line, file=f) + + # Init + write(" ") + write(" ") + + def write_char(char): + write(" ") + write(" " * ord(char)) + write(" ") + write(" ") + write("") + + flag = "IGCTF{Ha!-I-ain't-seeing-nothing-matter-of-fact-Im-blind-in-my-left-eye-and-43%-blind-in-my-right-eye.}" + for c in flag: + write_char(c) + diff --git a/huh/huh.ws b/huh/huh.ws new file mode 100644 index 0000000..9c4acf1 --- /dev/null +++ b/huh/huh.ws @@ -0,0 +1,517 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +