# iit-bhu-cybersec/intro-to-ctfs architecture

> Architecture diagram of the GitHub repository iit-bhu-cybersec/intro-to-ctfs, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/iit-bhu-cybersec/intro-to-ctfs
- Repository: https://github.com/iit-bhu-cybersec/intro-to-ctfs

## Overview

Intro-to-CTFs is a collection of event challenges across cryptography, reversing/exploitation, steganography, and web exploitation—not a single application with a shared runtime. The visible XOR script transforms image pixels and saves an output image; the visible buffer-overflow program accepts input and reports whether an integer changed. The top-level README identifies the event and challenge collection. Other category details are represented only by their README paths because their implementation was not sampled.

Main entry points: [`Cryptography/xor.py`](https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Cryptography/xor.py) (Image XOR script), [`Cryptography/README.md`](https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Cryptography/README.md) (Crypto challenges), [`Reversing-Exploitation/README.md`](https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Reversing-Exploitation/README.md) (Reversing challenges), [`Steganography/README.md`](https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Steganography/README.md) (Steganography challenges)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_crypto["Cryptography"]
  node_crypto_overview["Crypto challenges<br/>[README.md]"]
  node_xor_script["Image XOR script<br/>[xor.py]"]
  node_image_inputs["Local image inputs"]
  node_answer_image["Saved answer image"]
  node_hash_material["Hash material<br/>[hash.txt]"]
end

subgraph group_reversing["Reversing and Exploitation"]
  node_reversing_overview["Reversing challenges<br/>[README.md]"]
  node_bof_program["Buffer overflow challenge<br/>[bof.c]"]
  node_password_program["Password checker source<br/>[check_password.c]"]
  node_challenge_file["Challenge file"]
  node_bof_binary["Buffer overflow executable"]
  node_password_binary["Password checker executable"]
end

subgraph group_stego["Steganography"]
  node_stego_overview["Steganography challenges<br/>[README.md]"]
end

subgraph group_web["Web Exploitation"]
  node_web_overview["Web exploitation challenges<br/>[README.md]"]
end

node_participant(("CTF participant"))

node_participant -->|"attempts"| node_crypto_overview
node_participant -->|"attempts"| node_reversing_overview
node_participant -->|"attempts"| node_stego_overview
node_participant -->|"attempts"| node_web_overview
node_xor_script -->|"reads"| node_image_inputs
node_xor_script -->|"saves"| node_answer_image

click node_crypto_overview "https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Cryptography/README.md"
click node_xor_script "https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Cryptography/xor.py"
click node_hash_material "https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Cryptography/hash.txt"
click node_reversing_overview "https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Reversing-Exploitation/README.md"
click node_bof_program "https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Reversing-Exploitation/bof.c"
click node_password_program "https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Reversing-Exploitation/check_password.c"
click node_challenge_file "https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Reversing-Exploitation/challenge"
click node_bof_binary "https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Reversing-Exploitation/bof"
click node_password_binary "https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Reversing-Exploitation/check_password"
click node_stego_overview "https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Steganography/README.md"
click node_web_overview "https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Web-Exploitation/README.md"

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_crypto_overview,node_xor_script,node_image_inputs,node_answer_image,node_hash_material toneBlue
class node_reversing_overview,node_bof_program,node_password_program,node_challenge_file,node_bof_binary,node_password_binary toneAmber
class node_stego_overview toneMint
class node_web_overview toneRose
class node_participant toneIndigo
```

## Components

### Cryptography

- [Crypto challenges](https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Cryptography/README.md): `Cryptography/README.md`
- [Image XOR script](https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Cryptography/xor.py): `Cryptography/xor.py`
- **Local image inputs**
- **Saved answer image**
- [Hash material](https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Cryptography/hash.txt): `Cryptography/hash.txt`

### Reversing and Exploitation

- [Reversing challenges](https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Reversing-Exploitation/README.md): `Reversing-Exploitation/README.md`
- [Buffer overflow challenge](https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Reversing-Exploitation/bof.c): `Reversing-Exploitation/bof.c`
- [Password checker source](https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Reversing-Exploitation/check_password.c): `Reversing-Exploitation/check_password.c`
- [Challenge file](https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Reversing-Exploitation/challenge): `Reversing-Exploitation/challenge`
- [Buffer overflow executable](https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Reversing-Exploitation/bof): `Reversing-Exploitation/bof`
- [Password checker executable](https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Reversing-Exploitation/check_password): `Reversing-Exploitation/check_password`

### Steganography

- [Steganography challenges](https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Steganography/README.md): `Steganography/README.md`

### Web Exploitation

- [Web exploitation challenges](https://github.com/iit-bhu-cybersec/intro-to-ctfs/blob/main/Web-Exploitation/README.md): `Web-Exploitation/README.md`

### Other components

- **CTF participant**

## Connections

- CTF participant → Crypto challenges: attempts
- CTF participant → Reversing challenges: attempts
- CTF participant → Steganography challenges: attempts
- CTF participant → Web exploitation challenges: attempts
- Image XOR script → Local image inputs: reads
- Image XOR script → Saved answer image: saves
