# salmakhalill/python-sec-sandbox architecture

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

- Interactive diagram: https://gitdiagram.com/salmakhalill/python-sec-sandbox
- Repository: https://github.com/salmakhalill/python-sec-sandbox

## Overview

Python Sec Sandbox is an educational collection of password brute-force scripts and a web vulnerability scanner. The main workflows generate candidate passwords or vulnerability payloads, send HTTP requests to a configured target, and inspect responses for success or indicators. The graph distinguishes password generation from login attempts, and scanner payload selection from threaded dispatch and response analysis. The README also describes exploit development and task automation as planned, but those directories are absent from the tree; the scanner’s detailed flow is based on its excerpt.

Main entry points: [`Vulnerability_scanners/scanner.py`](https://github.com/salmakhalill/python-sec-sandbox/blob/main/Vulnerability_scanners/scanner.py) (Threaded scan dispatch), [`bruteforce_tools/numeric_bruteforce.py`](https://github.com/salmakhalill/python-sec-sandbox/blob/main/bruteforce_tools/numeric_bruteforce.py) (Numeric candidates), [`bruteforce_tools/alphanumeric_bruteforce.py`](https://github.com/salmakhalill/python-sec-sandbox/blob/main/bruteforce_tools/alphanumeric_bruteforce.py) (Alphanumeric candidates), [`bruteforce_tools/pattern_bruteforce.py`](https://github.com/salmakhalill/python-sec-sandbox/blob/main/bruteforce_tools/pattern_bruteforce.py) (Pattern candidates)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_generation["Password generation"]
  node_numeric_generation["Numeric candidates"]
  node_alphanumeric_generation["Alphanumeric candidates"]
  node_pattern_generation["Pattern candidates"]
end

subgraph group_login["Login attempts"]
  node_numeric_login["Numeric login attempts"]
  node_alphanumeric_login["Alphanumeric login attempts"]
  node_pattern_login["Pattern login attempts"]
end

subgraph group_scanning["Vulnerability scanning"]
  node_scanner_payloads["SQLi and XSS payloads<br/>[scanner.py]"]
  node_scanner_dispatch["Threaded scan dispatch<br/>[scanner.py]"]
  node_response_analysis["Response analysis<br/>[scanner.py]"]
end

node_user(("Operator"))
node_login_target{{"Login target"}}
node_scan_target{{"Web application"}}

node_user -->|"runs"| node_numeric_generation
node_numeric_generation -->|"supplies candidates"| node_numeric_login
node_numeric_login -->|"POSTs attempts"| node_login_target
node_user -->|"runs"| node_alphanumeric_generation
node_alphanumeric_generation -->|"supplies candidates"| node_alphanumeric_login
node_alphanumeric_login -->|"POSTs attempts"| node_login_target
node_user -->|"runs"| node_pattern_generation
node_pattern_generation -->|"supplies candidates"| node_pattern_login
node_pattern_login -->|"POSTs attempts"| node_login_target
node_user -->|"runs"| node_scanner_payloads
node_scanner_payloads -->|"dispatches tests"| node_scanner_dispatch
node_scanner_dispatch -->|"GETs payloads"| node_scan_target
node_scanner_dispatch -->|"checks responses"| node_response_analysis

click node_numeric_generation "https://github.com/salmakhalill/python-sec-sandbox/blob/main/bruteforce_tools/numeric_bruteforce.py"
click node_alphanumeric_generation "https://github.com/salmakhalill/python-sec-sandbox/blob/main/bruteforce_tools/alphanumeric_bruteforce.py"
click node_pattern_generation "https://github.com/salmakhalill/python-sec-sandbox/blob/main/bruteforce_tools/pattern_bruteforce.py"
click node_numeric_login "https://github.com/salmakhalill/python-sec-sandbox/blob/main/bruteforce_tools/numeric_bruteforce.py"
click node_alphanumeric_login "https://github.com/salmakhalill/python-sec-sandbox/blob/main/bruteforce_tools/alphanumeric_bruteforce.py"
click node_pattern_login "https://github.com/salmakhalill/python-sec-sandbox/blob/main/bruteforce_tools/pattern_bruteforce.py"
click node_scanner_payloads "https://github.com/salmakhalill/python-sec-sandbox/blob/main/Vulnerability_scanners/scanner.py"
click node_scanner_dispatch "https://github.com/salmakhalill/python-sec-sandbox/blob/main/Vulnerability_scanners/scanner.py"
click node_response_analysis "https://github.com/salmakhalill/python-sec-sandbox/blob/main/Vulnerability_scanners/scanner.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_numeric_generation,node_alphanumeric_generation,node_pattern_generation toneBlue
class node_numeric_login,node_alphanumeric_login,node_pattern_login toneAmber
class node_scanner_payloads,node_scanner_dispatch,node_response_analysis toneMint
class node_user,node_login_target,node_scan_target toneIndigo
```

## Components

### Password generation

- [Numeric candidates](https://github.com/salmakhalill/python-sec-sandbox/blob/main/bruteforce_tools/numeric_bruteforce.py): `bruteforce_tools/numeric_bruteforce.py`
- [Alphanumeric candidates](https://github.com/salmakhalill/python-sec-sandbox/blob/main/bruteforce_tools/alphanumeric_bruteforce.py): `bruteforce_tools/alphanumeric_bruteforce.py`
- [Pattern candidates](https://github.com/salmakhalill/python-sec-sandbox/blob/main/bruteforce_tools/pattern_bruteforce.py): `bruteforce_tools/pattern_bruteforce.py`

### Login attempts

- [Numeric login attempts](https://github.com/salmakhalill/python-sec-sandbox/blob/main/bruteforce_tools/numeric_bruteforce.py): `bruteforce_tools/numeric_bruteforce.py`
- [Alphanumeric login attempts](https://github.com/salmakhalill/python-sec-sandbox/blob/main/bruteforce_tools/alphanumeric_bruteforce.py): `bruteforce_tools/alphanumeric_bruteforce.py`
- [Pattern login attempts](https://github.com/salmakhalill/python-sec-sandbox/blob/main/bruteforce_tools/pattern_bruteforce.py): `bruteforce_tools/pattern_bruteforce.py`

### Vulnerability scanning

- [SQLi and XSS payloads](https://github.com/salmakhalill/python-sec-sandbox/blob/main/Vulnerability_scanners/scanner.py): `Vulnerability_scanners/scanner.py`
- [Threaded scan dispatch](https://github.com/salmakhalill/python-sec-sandbox/blob/main/Vulnerability_scanners/scanner.py): `Vulnerability_scanners/scanner.py`
- [Response analysis](https://github.com/salmakhalill/python-sec-sandbox/blob/main/Vulnerability_scanners/scanner.py): `Vulnerability_scanners/scanner.py`

### Other components

- **Operator**
- **Login target**
- **Web application**

## Connections

- Operator → Numeric candidates: runs (evidence: `bruteforce_tools/numeric_bruteforce.py`)
- Numeric candidates → Numeric login attempts: supplies candidates (evidence: `bruteforce_tools/numeric_bruteforce.py`)
- Numeric login attempts → Login target: POSTs attempts (evidence: `bruteforce_tools/numeric_bruteforce.py`)
- Operator → Alphanumeric candidates: runs (evidence: `bruteforce_tools/alphanumeric_bruteforce.py`)
- Alphanumeric candidates → Alphanumeric login attempts: supplies candidates (evidence: `bruteforce_tools/alphanumeric_bruteforce.py`)
- Alphanumeric login attempts → Login target: POSTs attempts (evidence: `bruteforce_tools/alphanumeric_bruteforce.py`)
- Operator → Pattern candidates: runs (evidence: `bruteforce_tools/pattern_bruteforce.py`)
- Pattern candidates → Pattern login attempts: supplies candidates (evidence: `bruteforce_tools/pattern_bruteforce.py`)
- Pattern login attempts → Login target: POSTs attempts (evidence: `bruteforce_tools/pattern_bruteforce.py`)
- Operator → SQLi and XSS payloads: runs (evidence: `Vulnerability_scanners/scanner.py`)
- SQLi and XSS payloads → Threaded scan dispatch: dispatches tests (evidence: `Vulnerability_scanners/scanner.py`)
- Threaded scan dispatch → Web application: GETs payloads (evidence: `Vulnerability_scanners/scanner.py`)
- Threaded scan dispatch → Response analysis: checks responses (evidence: `Vulnerability_scanners/scanner.py`)
