feat: add huh challenge

This commit is contained in:
Abel Stuker 2024-11-25 22:30:25 +01:00
parent 5de7ecdce5
commit 1003ecbb67
4 changed files with 565 additions and 0 deletions

14
huh/README.md Normal file
View File

@ -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
/

13
huh/SOLUTION.md Normal file
View File

@ -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.}

21
huh/generator.py Normal file
View File

@ -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)

517
huh/huh.ws Normal file
View File

@ -0,0 +1,517 @@