# default-dark/scan-sec architecture

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

- Interactive diagram: https://gitdiagram.com/default-dark/scan-sec
- Repository: https://github.com/default-dark/scan-sec

## Overview

Scan-sec is a small command-line TCP port scanner. The user enters a host; the script probes a fixed list of ports and prints whether each is open or closed, along with the scan time. The workflow is implemented in one file, so the graph does not split its prompt, scanning, and reporting into artificial modules.

Main entry points: [`scan.py`](https://github.com/default-dark/scan-sec/blob/main/scan.py) (Port scanner)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_scanner["Port scanner<br/>[scan.py]"]
node_host["Target host"]

node_user -->|"enters host"| node_scanner
node_scanner -->|"probes ports"| node_host

click node_scanner "https://github.com/default-dark/scan-sec/blob/main/scan.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_user toneBlue
class node_scanner toneTeal
class node_host toneIndigo
```

## Components

### Other components

- **User**
- [Port scanner](https://github.com/default-dark/scan-sec/blob/main/scan.py): `scan.py`
- **Target host**

## Connections

- User → Port scanner: enters host (evidence: `scan.py`)
- Port scanner → Target host: probes ports (evidence: `scan.py`)
