# zircomars/natas-harjoitus-teema architecture

> Architecture diagram of the GitHub repository zircomars/natas-harjoitus-teema, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/zircomars/natas-harjoitus-teema
- Repository: https://github.com/zircomars/natas-harjoitus-teema

## Overview

This repository is a Finnish-language Natas web-security practice notebook, not a software product. The main workflow is to study a level’s notes, use command-line HTTP requests (or the supplied scripts) against the OverTheWire Natas challenge, and inspect responses for credentials or other results. Its materials cover level walkthroughs, reconnaissance and curl, and examples involving cookies, sessions, brute-force guessing, and SQL injection. The README establishes the practice goal and Basic Auth context; sampled scripts show direct requests to Natas. Individual unsampled lesson contents and links between lessons are not inferred.

Main entry points: [`README.md`](https://github.com/zircomars/natas-harjoitus-teema/blob/main/README.md) (Project overview), [`harjoitus/PHP-script-level11-1.php`](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/PHP-script-level11-1.php) (Cookie XOR analysis), [`harjoitus/PHP-script-level11-2.php`](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/PHP-script-level11-2.php) (Cookie XOR crafting), [`harjoitus/Python-script-level16-1.py`](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/Python-script-level16-1.py) (Password guessing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_guides["Getting started"]
  node_intro["Project overview<br/>[README.md]"]
  node_quickref["Natas cheat sheet"]
end

subgraph group_walkthroughs["Level walkthroughs"]
  node_levels0["Levels 0–5<br/>[level 0 - 2.md]"]
  node_levels3["Levels 3–5<br/>[level 3 - 5.md]"]
  node_levels6["Levels 6–8<br/>[level 6 - 8.md]"]
  node_levels9["Levels 9–11<br/>[level 9 - 11.md]"]
  node_levels12["Levels 12–15<br/>[level12-13.md]"]
  node_levels16["Levels 16–19<br/>[level16-17.md]"]
  node_levels20["Levels 20–24<br/>[level20-21.md]"]
  node_levels25["Levels 25–28<br/>[level25-26.md]"]
  node_levels29["Levels 29–34<br/>[level29-30.md]"]
end

subgraph group_techniques["Security techniques"]
  node_curlguide["Curl guidance"]
  node_recon["Reconnaissance notes"]
  node_directory["Directory traversal"]
  node_sqlguide["SQL injection guide"]
end

subgraph group_examples["Script examples"]
  node_xor1["Cookie XOR analysis"]
  node_xor2["Cookie XOR crafting"]
  node_bruteforce["Password guessing"]
  node_session18["Session ID guessing"]
  node_session19["Session cookie guessing"]
  node_user27["Username crafting"]
  node_cipher28a["Ciphertext crafting"]
  node_cipher28b["Ciphertext analysis"]
end

node_learner(("Learner"))
node_natas["Natas challenge"]

node_learner -->|"reads overview"| node_intro
node_intro -->|"practices against"| node_natas
node_learner -->|"uses curl"| node_curlguide
node_xor1 -.->|"demonstrates cookie"| node_natas
node_xor2 -.->|"crafts cookie"| node_natas
node_bruteforce -->|"sends guesses"| node_natas
node_session18 -->|"tests sessions"| node_natas
node_session19 -->|"tests sessions"| node_natas
node_user27 -->|"posts credentials"| node_natas
node_cipher28a -->|"sends crafted query"| node_natas
node_cipher28b -->|"sends crafted query"| node_natas

click node_intro "https://github.com/zircomars/natas-harjoitus-teema/blob/main/README.md"
click node_quickref "https://github.com/zircomars/natas-harjoitus-teema/blob/main/natas%20lunttilappu.md"
click node_levels0 "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/level%200%20-%202.md"
click node_levels3 "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/level%203%20-%205.md"
click node_levels6 "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/level%206%20-%208.md"
click node_levels9 "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/level%209%20-%2011.md"
click node_levels12 "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/level12-13.md"
click node_levels16 "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/level16-17.md"
click node_levels20 "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/level20-21.md"
click node_levels25 "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/level25-26.md"
click node_levels29 "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/level29-30.md"
click node_curlguide "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/curl-komento-miniTeoria.md"
click node_recon "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/reconnaissance-lyhyesti.md"
click node_directory "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/Directory%20traversal%20attack-muistioHarj.md"
click node_sqlguide "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/natas-sql_injektio-ohje.md"
click node_xor1 "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/PHP-script-level11-1.php"
click node_xor2 "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/PHP-script-level11-2.php"
click node_bruteforce "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/Python-script-level16-1.py"
click node_session18 "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/Python-script-level18-1.py"
click node_session19 "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/Python-script-level19-1.py"
click node_user27 "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/Python-script-level27-1.py"
click node_cipher28a "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/Python-script-level28-1.py"
click node_cipher28b "https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/Python-script-level28-2.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_intro,node_quickref toneBlue
class node_levels0,node_levels3,node_levels6,node_levels9,node_levels12,node_levels16,node_levels20,node_levels25,node_levels29 toneAmber
class node_curlguide,node_recon,node_directory,node_sqlguide toneMint
class node_xor1,node_xor2,node_bruteforce,node_session18,node_session19,node_user27,node_cipher28a,node_cipher28b toneRose
class node_learner,node_natas toneIndigo
```

## Components

### Getting started

- [Project overview](https://github.com/zircomars/natas-harjoitus-teema/blob/main/README.md): `README.md`
- [Natas cheat sheet](https://github.com/zircomars/natas-harjoitus-teema/blob/main/natas%20lunttilappu.md): `natas lunttilappu.md`

### Level walkthroughs

- [Levels 0–5](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/level%200%20-%202.md): `harjoitus/level 0 - 2.md`
- [Levels 3–5](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/level%203%20-%205.md): `harjoitus/level 3 - 5.md`
- [Levels 6–8](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/level%206%20-%208.md): `harjoitus/level 6 - 8.md`
- [Levels 9–11](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/level%209%20-%2011.md): `harjoitus/level 9 - 11.md`
- [Levels 12–15](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/level12-13.md): `harjoitus/level12-13.md`
- [Levels 16–19](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/level16-17.md): `harjoitus/level16-17.md`
- [Levels 20–24](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/level20-21.md): `harjoitus/level20-21.md`
- [Levels 25–28](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/level25-26.md): `harjoitus/level25-26.md`
- [Levels 29–34](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/level29-30.md): `harjoitus/level29-30.md`

### Security techniques

- [Curl guidance](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/curl-komento-miniTeoria.md): `harjoitus/curl-komento-miniTeoria.md`
- [Reconnaissance notes](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/reconnaissance-lyhyesti.md): `harjoitus/reconnaissance-lyhyesti.md`
- [Directory traversal](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/Directory%20traversal%20attack-muistioHarj.md): `harjoitus/Directory traversal attack-muistioHarj.md`
- [SQL injection guide](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/natas-sql_injektio-ohje.md): `harjoitus/natas-sql_injektio-ohje.md`

### Script examples

- [Cookie XOR analysis](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/PHP-script-level11-1.php): `harjoitus/PHP-script-level11-1.php`
- [Cookie XOR crafting](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/PHP-script-level11-2.php): `harjoitus/PHP-script-level11-2.php`
- [Password guessing](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/Python-script-level16-1.py): `harjoitus/Python-script-level16-1.py`
- [Session ID guessing](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/Python-script-level18-1.py): `harjoitus/Python-script-level18-1.py`
- [Session cookie guessing](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/Python-script-level19-1.py): `harjoitus/Python-script-level19-1.py`
- [Username crafting](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/Python-script-level27-1.py): `harjoitus/Python-script-level27-1.py`
- [Ciphertext crafting](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/Python-script-level28-1.py): `harjoitus/Python-script-level28-1.py`
- [Ciphertext analysis](https://github.com/zircomars/natas-harjoitus-teema/blob/main/harjoitus/Python-script-level28-2.py): `harjoitus/Python-script-level28-2.py`

### Other components

- **Learner**
- **Natas challenge**

## Connections

- Learner → Project overview: reads overview (evidence: `README.md`)
- Project overview → Natas challenge: practices against (evidence: `README.md`)
- Learner → Curl guidance: uses curl (evidence: `README.md`)
- Cookie XOR analysis → Natas challenge: demonstrates cookie
- Cookie XOR crafting → Natas challenge: crafts cookie
- Password guessing → Natas challenge: sends guesses (evidence: `harjoitus/Python-script-level16-1.py`)
- Session ID guessing → Natas challenge: tests sessions (evidence: `harjoitus/Python-script-level18-1.py`)
- Session cookie guessing → Natas challenge: tests sessions (evidence: `harjoitus/Python-script-level19-1.py`)
- Username crafting → Natas challenge: posts credentials (evidence: `harjoitus/Python-script-level27-1.py`)
- Ciphertext crafting → Natas challenge: sends crafted query (evidence: `harjoitus/Python-script-level28-1.py`)
- Ciphertext analysis → Natas challenge: sends crafted query (evidence: `harjoitus/Python-script-level28-2.py`)
