diff --git a/dot-dash/README.md b/dot-dash/README.md new file mode 100644 index 0000000..21913b3 --- /dev/null +++ b/dot-dash/README.md @@ -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 +/ diff --git a/dot-dash/SOLUTION.md b/dot-dash/SOLUTION.md new file mode 100644 index 0000000..81a76c9 --- /dev/null +++ b/dot-dash/SOLUTION.md @@ -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} \ No newline at end of file diff --git a/dot-dash/code/Cargo.lock b/dot-dash/code/Cargo.lock new file mode 100644 index 0000000..89e7c23 --- /dev/null +++ b/dot-dash/code/Cargo.lock @@ -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" diff --git a/dot-dash/code/Cargo.toml b/dot-dash/code/Cargo.toml new file mode 100644 index 0000000..d5337f7 --- /dev/null +++ b/dot-dash/code/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "code" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/dot-dash/code/code b/dot-dash/code/code new file mode 100755 index 0000000..f2938c9 Binary files /dev/null and b/dot-dash/code/code differ diff --git a/dot-dash/code/src/main.rs b/dot-dash/code/src/main.rs new file mode 100644 index 0000000..3e6cbc2 --- /dev/null +++ b/dot-dash/code/src/main.rs @@ -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!"); +}