# nayandas69/pydos architecture

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

- Interactive diagram: https://gitdiagram.com/nayandas69/pydos
- Repository: https://github.com/nayandas69/pydos

## Overview

PyDoS is a command-line website load-testing tool. Its principal workflow is: a user supplies a target and options, the CLI starts repeated threaded GET or POST requests, and the requests reach the target directly or through a selected proxy. Optional CLI branches invoke a Selenium browser loop and a captcha-solving routine. Configuration also contains defaults and application metadata, although the inspected CLI imports only the metadata. The README documents Playwright support, but the sampled browser implementation uses Selenium; other implementation details are not inferred.

Main entry points: [`pydoS.py`](https://github.com/nayandas69/pydos/blob/master/pydoS.py) (CLI runner), [`utils/captcha_solver.py`](https://github.com/nayandas69/pydos/blob/master/utils/captcha_solver.py) (Captcha solver), [`utils/browser_attack.py`](https://github.com/nayandas69/pydos/blob/master/utils/browser_attack.py) (Browser loop), [`config.py`](https://github.com/nayandas69/pydos/blob/master/config.py) (App settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["CLI and configuration"]
  node_cli["CLI runner<br/>[pydoS.py]"]
  node_config["App settings<br/>[config.py]"]
end

subgraph group_load["Load generation"]
  node_http["HTTP workers<br/>[pydoS.py]"]
end

subgraph group_integrations["Optional integrations"]
  node_browser["Browser loop<br/>[browser_attack.py]"]
  node_captcha["Captcha solver<br/>[captcha_solver.py]"]
end

node_user(("Operator"))
node_target["Test website"]
node_proxy["Proxy endpoint"]
node_anticaptcha["Anti-Captcha API"]

node_user -->|"provides options"| node_cli
node_cli -->|"imports metadata"| node_config
node_cli -->|"starts threads"| node_http
node_http -->|"sends requests"| node_target
node_http -.->|"routes optionally"| node_proxy
node_cli -->|"invokes optionally"| node_browser
node_browser -->|"loads and refreshes"| node_target
node_cli -->|"invokes optionally"| node_captcha
node_captcha -->|"fetches image"| node_target
node_captcha -->|"submits solution"| node_anticaptcha

click node_cli "https://github.com/nayandas69/pydos/blob/master/pydoS.py"
click node_config "https://github.com/nayandas69/pydos/blob/master/config.py"
click node_http "https://github.com/nayandas69/pydos/blob/master/pydoS.py"
click node_browser "https://github.com/nayandas69/pydos/blob/master/utils/browser_attack.py"
click node_captcha "https://github.com/nayandas69/pydos/blob/master/utils/captcha_solver.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_cli,node_config toneBlue
class node_http toneAmber
class node_browser,node_captcha,node_anticaptcha toneMint
class node_user,node_target,node_proxy toneIndigo
```

## Components

### CLI and configuration

- [CLI runner](https://github.com/nayandas69/pydos/blob/master/pydoS.py): `pydoS.py`
- [App settings](https://github.com/nayandas69/pydos/blob/master/config.py): `config.py`

### Load generation

- [HTTP workers](https://github.com/nayandas69/pydos/blob/master/pydoS.py): `pydoS.py`

### Optional integrations

- [Browser loop](https://github.com/nayandas69/pydos/blob/master/utils/browser_attack.py): `utils/browser_attack.py`
- [Captcha solver](https://github.com/nayandas69/pydos/blob/master/utils/captcha_solver.py): `utils/captcha_solver.py`

### Other components

- **Operator**
- **Test website**
- **Proxy endpoint**
- **Anti-Captcha API**

## Connections

- Operator → CLI runner: provides options (evidence: `README.md`)
- CLI runner → App settings: imports metadata (evidence: `pydoS.py`)
- CLI runner → HTTP workers: starts threads (evidence: `pydoS.py`)
- HTTP workers → Test website: sends requests (evidence: `pydoS.py`)
- HTTP workers → Proxy endpoint: routes optionally (evidence: `pydoS.py`)
- CLI runner → Browser loop: invokes optionally (evidence: `pydoS.py`)
- Browser loop → Test website: loads and refreshes (evidence: `utils/browser_attack.py`)
- CLI runner → Captcha solver: invokes optionally (evidence: `pydoS.py`)
- Captcha solver → Test website: fetches image (evidence: `utils/captcha_solver.py`)
- Captcha solver → Anti-Captcha API: submits solution (evidence: `utils/captcha_solver.py`)
