feat: add dot-dash challenge

This commit is contained in:
Abel Stuker 2024-11-25 22:29:27 +01:00
parent 371eafecfd
commit 87d9c1c3eb
6 changed files with 160 additions and 0 deletions

12
dot-dash/README.md Normal file
View File

@ -0,0 +1,12 @@
# dot-dash
## Text
This binary does nothing? WHERE THE HELL IS THE FLAG?
## Author
Robbe De Greef
## Files
target/debug/code (the binary, you first need to run `cargo build` to build this binary)
## How to Deploy
/

15
dot-dash/SOLUTION.md Normal file
View File

@ -0,0 +1,15 @@
## Difficulty
40/100 | MEDIUM
## Category
Reversing
## How To Solve
The main function contains a bunch of calls to dot, dash and space. These represent
more code. You can decompile
this code with a tool such as ghydra and copy the calls into a text file, convert those calls
to actual ".", "-" and " "'s and then interpret that using an online morse decoder.
## Flag
IGCTF{code-so-old-its-rusty}

7
dot-dash/code/Cargo.lock generated Normal file
View File

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "code"
version = "0.1.0"

6
dot-dash/code/Cargo.toml Normal file
View File

@ -0,0 +1,6 @@
[package]
name = "code"
version = "0.1.0"
edition = "2021"
[dependencies]

BIN
dot-dash/code/code Executable file

Binary file not shown.

120
dot-dash/code/src/main.rs Normal file
View File

@ -0,0 +1,120 @@
fn dot() -> () {}
fn dash() -> () {}
fn space() -> () {}
fn main() {
dot();
dot();
space();
dash();
dash();
dot();
space();
dash();
dot();
dash();
dot();
space();
dash();
space();
dot();
dot();
dash();
dot();
space();
dash();
dot();
dash();
dot();
space();
dash();
dash();
dash();
space();
dash();
dot();
dot();
space();
dot();
space();
dash();
dot();
dot();
dot();
dot();
dash();
space();
dot();
dot();
dot();
space();
dash();
dash();
dash();
space();
dash();
dot();
dot();
dot();
dot();
dash();
space();
dash();
dash();
dash();
space();
dot();
dash();
dot();
dot();
space();
dash();
dot();
dot();
space();
dash();
dot();
dot();
dot();
dot();
dash();
space();
dot();
dot();
space();
dash();
space();
dot();
dot();
dot();
space();
dash();
dot();
dot();
dot();
dot();
dash();
space();
dot();
dash();
dot();
space();
dot();
dot();
dash();
space();
dot();
dot();
dot();
space();
dash();
space();
dash();
dot();
dash();
dash();
println!("Goodbye!");
}