# djalilayed/tryhackme architecture

> Architecture diagram of the GitHub repository djalilayed/tryhackme, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/djalilayed/tryhackme
- Repository: https://github.com/djalilayed/tryhackme

## Overview

This repository is a collection of independent TryHackMe/CTF walkthrough scripts and room-specific tools, not one integrated application. Its recurring workflow is a user-run script interacting with a challenge or supplied artifact, then producing an exploit result, decrypted/reconstructed data, or extracted evidence. The README documents walkthrough videos, while source examples show diverse standalone tools; no central dispatcher or shared runtime is evidenced, so the graph groups representative capabilities without inventing connections between rooms.

Main entry points: [`Security Footage/text_detection_google_cloud_vision.py`](https://github.com/djalilayed/tryhackme/blob/main/Security%20Footage/text_detection_google_cloud_vision.py) (Image OCR), [`Shaker/Exploit.java`](https://github.com/djalilayed/tryhackme/blob/main/Shaker/Exploit.java) (Reverse shell), [`Shaker/Exploit2.java`](https://github.com/djalilayed/tryhackme/blob/main/Shaker/Exploit2.java) (Agent delivery), [`CaptureReturns-recaptcha-headless.py`](https://github.com/djalilayed/tryhackme/blob/main/CaptureReturns-recaptcha-headless.py) (CAPTCHA login)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_challenge["Challenge interaction"]
  node_walkthroughs["Room walkthroughs"]
  node_captcha["CAPTCHA login"]
  node_cookie["Cookie forgery<br/>[index.php]"]
  node_model["Model probing"]
  node_shop["POST receiver<br/>[server.py]"]
end

subgraph group_analysis["Artifact analysis"]
  node_image_ocr["Image OCR"]
  node_winrm["WinRM decoder<br/>[decrypt_winrm.py]"]
  node_havoc["C2 traffic decoder"]
  node_binary["Binary reconstruction"]
  node_extract["Evidence extraction<br/>[extract_hash.py]"]
end

subgraph group_crypto["Crypto and decoding"]
  node_rsa_burp["RSA Burp handler<br/>[BruteForce.java]"]
  node_decrypt["Room decryption scripts<br/>[decrypt.py]"]
end

subgraph group_operations["Exploitation tools"]
  node_shaker_shell["Reverse shell<br/>[Exploit.java]"]
  node_shaker_agent["Agent delivery<br/>[Exploit2.java]"]
  node_n8n["n8n exploit client<br/>[solve_n8n_21858.py]"]
end

node_user(("Analyst"))
node_target(("Challenge target"))
node_vision["Google Cloud Vision"]
node_burp["Burp Suite"]
node_shell["Remote shell"]
node_agent_server["Agent HTTP host"]
node_local_artifacts["Local artifacts"]

node_user -->|"follows"| node_walkthroughs
node_user -->|"runs"| node_captcha
node_captcha -->|"submits logins"| node_target
node_user -->|"runs"| node_cookie
node_user -->|"runs"| node_model
node_model -->|"probes API"| node_target
node_user -->|"starts server"| node_shop
node_target -->|"posts data"| node_shop
node_user -->|"runs"| node_image_ocr
node_image_ocr -->|"reads images"| node_local_artifacts
node_image_ocr -->|"requests OCR"| node_vision
node_user -->|"runs"| node_winrm
node_winrm -->|"reads capture"| node_local_artifacts
node_user -->|"runs"| node_havoc
node_havoc -->|"reads PCAP"| node_local_artifacts
node_user -->|"runs"| node_binary
node_binary -->|"decodes data"| node_local_artifacts
node_user -->|"runs"| node_extract
node_extract -.->|"extracts evidence"| node_local_artifacts
node_user -->|"loads extension"| node_rsa_burp
node_rsa_burp -->|"registers handler"| node_burp
node_user -.->|"runs"| node_decrypt
node_user -.->|"deploys"| node_shaker_shell
node_shaker_shell -->|"opens shell"| node_target
node_shaker_shell -->|"pipes streams"| node_shell
node_user -.->|"deploys"| node_shaker_agent
node_shaker_agent -->|"downloads agent"| node_agent_server
node_shaker_agent -->|"starts agent"| node_target
node_user -->|"runs"| node_n8n
node_n8n -->|"exploits service"| node_target

click node_captcha "https://github.com/djalilayed/tryhackme/blob/main/CaptureReturns-recaptcha-headless.py"
click node_cookie "https://github.com/djalilayed/tryhackme/blob/main/Crypto%20Failures/index.php"
click node_model "https://github.com/djalilayed/tryhackme/blob/main/injectusix/cargomind_extract.py"
click node_shop "https://github.com/djalilayed/tryhackme/blob/main/The%20Sticker%20Shop/server.py"
click node_image_ocr "https://github.com/djalilayed/tryhackme/blob/main/Security%20Footage/text_detection_google_cloud_vision.py"
click node_winrm "https://github.com/djalilayed/tryhackme/blob/main/directory/decrypt_winrm.py"
click node_havoc "https://github.com/djalilayed/tryhackme/blob/main/mayhem/havoc-c2-decrypt.py"
click node_binary "https://github.com/djalilayed/tryhackme/blob/main/Event%20Horizon/reconstruct_binary.py"
click node_extract "https://github.com/djalilayed/tryhackme/blob/main/Rabbit_Store/extract_hash.py"
click node_rsa_burp "https://github.com/djalilayed/tryhackme/blob/main/Custom%20Tooling%20using%20Burp/BruteForce.java"
click node_decrypt "https://github.com/djalilayed/tryhackme/blob/main/Hackfinity%20Battle/Cryptosystem/decrypt.py"
click node_shaker_shell "https://github.com/djalilayed/tryhackme/blob/main/Shaker/Exploit.java"
click node_shaker_agent "https://github.com/djalilayed/tryhackme/blob/main/Shaker/Exploit2.java"
click node_n8n "https://github.com/djalilayed/tryhackme/blob/main/cypheron/solve_n8n_21858.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_walkthroughs,node_captcha,node_cookie,node_model,node_shop toneBlue
class node_image_ocr,node_winrm,node_havoc,node_binary,node_extract toneAmber
class node_rsa_burp,node_decrypt toneMint
class node_shaker_shell,node_shaker_agent,node_n8n toneRose
class node_user,node_target,node_vision,node_burp,node_shell,node_agent_server,node_local_artifacts toneIndigo
```

## Components

### Challenge interaction

- **Room walkthroughs**
- [CAPTCHA login](https://github.com/djalilayed/tryhackme/blob/main/CaptureReturns-recaptcha-headless.py): `CaptureReturns-recaptcha-headless.py`
- [Cookie forgery](https://github.com/djalilayed/tryhackme/blob/main/Crypto%20Failures/index.php): `Crypto Failures/index.php`
- [Model probing](https://github.com/djalilayed/tryhackme/blob/main/injectusix/cargomind_extract.py): `injectusix/cargomind_extract.py`
- [POST receiver](https://github.com/djalilayed/tryhackme/blob/main/The%20Sticker%20Shop/server.py): `The Sticker Shop/server.py`

### Artifact analysis

- [Image OCR](https://github.com/djalilayed/tryhackme/blob/main/Security%20Footage/text_detection_google_cloud_vision.py): `Security Footage/text_detection_google_cloud_vision.py`
- [WinRM decoder](https://github.com/djalilayed/tryhackme/blob/main/directory/decrypt_winrm.py): `directory/decrypt_winrm.py`
- [C2 traffic decoder](https://github.com/djalilayed/tryhackme/blob/main/mayhem/havoc-c2-decrypt.py): `mayhem/havoc-c2-decrypt.py`
- [Binary reconstruction](https://github.com/djalilayed/tryhackme/blob/main/Event%20Horizon/reconstruct_binary.py): `Event Horizon/reconstruct_binary.py`
- [Evidence extraction](https://github.com/djalilayed/tryhackme/blob/main/Rabbit_Store/extract_hash.py): `Rabbit_Store/extract_hash.py`

### Crypto and decoding

- [RSA Burp handler](https://github.com/djalilayed/tryhackme/blob/main/Custom%20Tooling%20using%20Burp/BruteForce.java): `Custom Tooling using Burp/BruteForce.java`
- [Room decryption scripts](https://github.com/djalilayed/tryhackme/blob/main/Hackfinity%20Battle/Cryptosystem/decrypt.py): `Hackfinity Battle/Cryptosystem/decrypt.py`

### Exploitation tools

- [Reverse shell](https://github.com/djalilayed/tryhackme/blob/main/Shaker/Exploit.java): `Shaker/Exploit.java`
- [Agent delivery](https://github.com/djalilayed/tryhackme/blob/main/Shaker/Exploit2.java): `Shaker/Exploit2.java`
- [n8n exploit client](https://github.com/djalilayed/tryhackme/blob/main/cypheron/solve_n8n_21858.py): `cypheron/solve_n8n_21858.py`

### Other components

- **Analyst**
- **Challenge target**
- **Google Cloud Vision**
- **Burp Suite**
- **Remote shell**
- **Agent HTTP host**
- **Local artifacts**

## Connections

- Analyst → Room walkthroughs: follows (evidence: `README.md`)
- Analyst → CAPTCHA login: runs (evidence: `CaptureReturns-recaptcha-headless.py`)
- CAPTCHA login → Challenge target: submits logins (evidence: `CaptureReturns-recaptcha-headless.py`)
- Analyst → Cookie forgery: runs (evidence: `Crypto Failures/index.php`)
- Analyst → Model probing: runs (evidence: `injectusix/cargomind_extract.py`)
- Model probing → Challenge target: probes API (evidence: `injectusix/cargomind_extract.py`)
- Analyst → POST receiver: starts server (evidence: `The Sticker Shop/server.py`)
- Challenge target → POST receiver: posts data (evidence: `The Sticker Shop/server.py`)
- Analyst → Image OCR: runs (evidence: `Security Footage/text_detection_google_cloud_vision.py`)
- Image OCR → Local artifacts: reads images (evidence: `Security Footage/text_detection_google_cloud_vision.py`)
- Image OCR → Google Cloud Vision: requests OCR (evidence: `Security Footage/text_detection_google_cloud_vision.py`)
- Analyst → WinRM decoder: runs (evidence: `directory/decrypt_winrm.py`)
- WinRM decoder → Local artifacts: reads capture (evidence: `directory/decrypt_winrm.py`)
- Analyst → C2 traffic decoder: runs (evidence: `mayhem/havoc-c2-decrypt.py`)
- C2 traffic decoder → Local artifacts: reads PCAP (evidence: `mayhem/havoc-c2-decrypt.py`)
- Analyst → Binary reconstruction: runs (evidence: `Event Horizon/reconstruct_binary.py`)
- Binary reconstruction → Local artifacts: decodes data (evidence: `Event Horizon/reconstruct_binary.py`)
- Analyst → Evidence extraction: runs (evidence: `Rabbit_Store/extract_hash.py`)
- Evidence extraction → Local artifacts: extracts evidence
- Analyst → RSA Burp handler: loads extension (evidence: `Custom Tooling using Burp/BruteForce.java`)
- RSA Burp handler → Burp Suite: registers handler (evidence: `Custom Tooling using Burp/BruteForce.java`)
- Analyst → Room decryption scripts: runs
- Analyst → Reverse shell: deploys
- Reverse shell → Challenge target: opens shell (evidence: `Shaker/Exploit.java`)
- Reverse shell → Remote shell: pipes streams (evidence: `Shaker/Exploit.java`)
- Analyst → Agent delivery: deploys
- Agent delivery → Agent HTTP host: downloads agent (evidence: `Shaker/Exploit2.java`)
- Agent delivery → Challenge target: starts agent (evidence: `Shaker/Exploit2.java`)
- Analyst → n8n exploit client: runs (evidence: `cypheron/solve_n8n_21858.py`)
- n8n exploit client → Challenge target: exploits service (evidence: `cypheron/solve_n8n_21858.py`)
