-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
240 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"cmake.sourceDirectory": "C:/Github/School/Klinoff with a Breeze/KlinoffWinds", | ||
"files.associations": { | ||
"*.atrc": "ini", | ||
"*.npl": "jsonc", | ||
"ostream": "cpp", | ||
"cmath": "cpp", | ||
"fstream": "cpp", | ||
"random": "cpp" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
project(klinoffwinds) | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
|
||
add_executable(klinoffwinds main.c) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,217 @@ | ||
# Klinoff With a Breeze | ||
|
||
## Description | ||
|
||
Lets start with a propellor and a breeze. This is a simple warmup challenge. Done, easy thats done! | ||
**Lets take it up a notch.** | ||
Now we have a propellor and a breeze, but we also have a flag. With a breeze, the flag is gone. | ||
|
||
### Solution | ||
|
||
The flag is in the breeze. | ||
|
||
Flag: `flag{breeze}` | ||
```c | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
|
||
int main() { | ||
char flag[32]; | ||
FILE *f = fopen("flag.txt", "r"); | ||
if (f == NULL) { | ||
printf("Flag File is Missing. Please contact an Admin if you are running this on server.\n"); | ||
exit(1); | ||
} | ||
fgets(flag, 32, f); | ||
fclose(f); | ||
printf("Flag: %s\n", flag); | ||
return 0; | ||
} | ||
``` | ||
|
||
## Flag | ||
|
||
`flag{breeze}` | ||
```markdown | ||
|
||
## Hints | ||
|
||
1. The flag is in the breeze. | ||
2. Backup your files. | ||
3. The flag is in the breeze. | ||
``` | ||
|
||
## Points | ||
|
||
100 | ||
|
||
## Start Function | ||
|
||
```c | ||
int main() {} | ||
``` | ||
|
||
Data machine collected from the challenge `Klinoff With a Breeze` is stored in the file `Klinoff%20with%20a%20Breeze.json`. | ||
|
||
## Challenge | ||
|
||
```c | ||
#include <stdio.h> | ||
|
||
int main() { | ||
buffer[32]; | ||
for (int i = 0; i < 32; i++) { | ||
buffer[i] = 0; | ||
} | ||
printf("Enter the flag: "); | ||
return 1; | ||
} | ||
``` | ||
|
||
## Timeables for a breeze | ||
|
||
1. 2021-10-01 00:00:00 | ||
3. 2021-10-02 00:00:00 | ||
|
||
## Data Types | ||
|
||
hashmap, string, array, integer, boolean, aapo | ||
|
||
## Fortran Implementation | ||
|
||
```fortran | ||
program breeze | ||
implicit none | ||
character(len=32) :: flag | ||
open(10, file='flag.txt', status='old', action='read') | ||
read(10, '(A32)') flag | ||
close(10) | ||
print *, 'Flag: ', flag | ||
end program breeze | ||
``` | ||
|
||
## Python Implementation | ||
|
||
```python | ||
with open('flag.txt', 'r') as f: | ||
flag = f.read().strip() | ||
print(f'Flag: {flag}') | ||
``` | ||
|
||
## The hand gesture | ||
|
||
Up, Up, down, For the right and left and beyond insimultaneously. | ||
```markdown | ||
``` | ||
Done, thas it! | ||
```- Klinoff | ||
``` | ||
|
||
## The breeze | ||
|
||
```markdown | ||
``` | ||
```cpp | ||
#include <stdio.h> | ||
int Breeze-Cheese() { | ||
printf("Breeze"); | ||
return 2; | ||
} | ||
|
||
``````````asd | ||
asd | ||
???```` | ||
``` | ||
|
||
# QWERTY | ||
|
||
Lets start from the beginning. The flag is in the breeze. | ||
```markdown | ||
``` | ||
|
||
Now, that that is done, lets take it up a notch, with Klinoff. | ||
```klinoff | ||
structure > klinoff { | ||
integer||bool::std::mt19973 | ||
} | ||
``` | ||
|
||
## The breeze | ||
|
||
```markdown | ||
``` | ||
```cpp | ||
#include <stdio.h> | ||
int Breeze-Cheese() { | ||
printf("Breeze"); | ||
return 2; | ||
} | ||
|
||
``````````asd | ||
asd | ||
???```` | ||
``` | ||
|
||
# Final Theorem | ||
|
||
### Introduction | ||
|
||
**Klinoff** is a simple warmup challenge. Done, easy thats done! | ||
|
||
**Lets take it up a notch.** | ||
|
||
Now we have a propellor and a breeze, but we also have a flag. With a breeze, the flag is gone. | ||
|
||
### Solution | ||
|
||
The flag is in the breeze. | ||
|
||
# Ending Thoughts | ||
|
||
**Klinoff** is a simple warmup challenge. Done, easy thats done! | ||
|
||
# How to run | ||
|
||
```bash | ||
|
||
gcc klinoff.c -o klinoff | ||
./klinoff | ||
|
||
``` | ||
|
||
# Flag | ||
|
||
`flag{breeze}` | ||
```markdown | ||
|
||
## Hints | ||
|
||
1. The flag is in the breeze. | ||
2. Backup your files. | ||
3. The flag is in the breeze. | ||
``` | ||
|
||
# contributors | ||
|
||
- John Doe | ||
- Jane Doe | ||
- Klinoff | ||
- Breeze | ||
- Flag | ||
- Propellor | ||
|
||
# License | ||
Klinoff is licensed under the Klinoff License. See [LICENSE](LICENSE) for more information. | ||
|
||
# last update | ||
|
||
```markdown | ||
# markdown | ||
```markwdown | ||
# markdown 2 | ||
```markdown | ||
# markdown 3 | ||
``` | ||
``` | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include <stdio.h> | ||
|
||
int main() { | ||
printf("Hello, World!\n"); | ||
return 0; | ||
} |
Empty file.