feat: add dot-dash challenge
This commit is contained in:
parent
371eafecfd
commit
87d9c1c3eb
12
dot-dash/README.md
Normal file
12
dot-dash/README.md
Normal 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
15
dot-dash/SOLUTION.md
Normal 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
7
dot-dash/code/Cargo.lock
generated
Normal 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
6
dot-dash/code/Cargo.toml
Normal file
@ -0,0 +1,6 @@
|
||||
[package]
|
||||
name = "code"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
BIN
dot-dash/code/code
Executable file
BIN
dot-dash/code/code
Executable file
Binary file not shown.
120
dot-dash/code/src/main.rs
Normal file
120
dot-dash/code/src/main.rs
Normal 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!");
|
||||
}
|
Loading…
Reference in New Issue
Block a user