# mrrieland/portswigger-exploits architecture

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

- Interactive diagram: https://gitdiagram.com/mrrieland/portswigger-exploits
- Repository: https://github.com/mrrieland/portswigger-exploits

## Overview

This repository is a small collection of PortSwigger lab exploit scripts. The documented UNION SQL injection workflow probes the target’s column count, identifies its database version, extracts user credentials, then obtains a CSRF token and attempts an administrator login. The sampled script is the only core runtime module; the repository README documents this exploit as the listed capability. The diagram reflects the visible script calls and HTTP interactions.

Main entry points: [`SQL-Injection/union-sqli.py`](https://github.com/mrrieland/portswigger-exploits/blob/main/SQL-Injection/union-sqli.py) (UNION exploit)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_exploit["SQLi exploit"]
  node_script["UNION exploit<br/>[union-sqli.py]"]
end

node_operator(("Operator"))
node_target["Lab web app"]

node_operator -->|"runs"| node_script
node_script -->|"probes columns"| node_target
node_script -->|"tests version"| node_target
node_script -->|"extracts users"| node_target
node_script -->|"gets CSRF"| node_target
node_script -->|"posts login"| node_target

click node_script "https://github.com/mrrieland/portswigger-exploits/blob/main/SQL-Injection/union-sqli.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_script toneBlue
class node_operator,node_target toneIndigo
```

## Components

### SQLi exploit

- [UNION exploit](https://github.com/mrrieland/portswigger-exploits/blob/main/SQL-Injection/union-sqli.py): `SQL-Injection/union-sqli.py`

### Other components

- **Operator**
- **Lab web app**

## Connections

- Operator → UNION exploit: runs (evidence: `SQL-Injection/union-sqli.py`)
- UNION exploit → Lab web app: probes columns (evidence: `SQL-Injection/union-sqli.py`)
- UNION exploit → Lab web app: tests version (evidence: `SQL-Injection/union-sqli.py`)
- UNION exploit → Lab web app: extracts users (evidence: `SQL-Injection/union-sqli.py`)
- UNION exploit → Lab web app: gets CSRF (evidence: `SQL-Injection/union-sqli.py`)
- UNION exploit → Lab web app: posts login (evidence: `SQL-Injection/union-sqli.py`)
