# liubvg/netsploitxz architecture

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

- Interactive diagram: https://gitdiagram.com/liubvg/netsploitxz
- Repository: https://github.com/liubvg/netsploitxz

## Overview

NetSploitXZ is a Tkinter network reconnaissance and exploit-discovery application. The main workflow accepts and validates a target, runs a profile or custom Nmap scan in the background, parses XML into host and service data, optionally correlates services with a local Exploit-DB CSV, then presents results and exports TXT/HTML reports. The graph preserves documented scan options and report capabilities; GUI internals are only partially excerpted, so edges not evidenced there are omitted.

Main entry points: [`gui.py`](https://github.com/liubvg/netsploitxz/blob/main/gui.py) (Tkinter GUI), [`nmap_scan.py`](https://github.com/liubvg/netsploitxz/blob/main/nmap_scan.py) (Nmap execution), [`env_check.py`](https://github.com/liubvg/netsploitxz/blob/main/env_check.py) (Environment checks), [`main.py`](https://github.com/liubvg/netsploitxz/blob/main/main.py) (Application entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["User interface"]
  node_app["Application entry<br/>[main.py]"]
  node_gui["Tkinter GUI<br/>[gui.py]"]
end

subgraph group_scan["Reconnaissance"]
  node_target["Target validation<br/>[validate.py]"]
  node_profiles["Scan profiles<br/>[config.py]"]
  node_nmap["Nmap execution<br/>[nmap_scan.py]"]
  node_xml["XML result parser<br/>[nmap_scan.py]"]
end

subgraph group_analysis["Analysis"]
  node_exploitcsv[("Exploit-DB index")]
  node_matching["Exploit correlation<br/>[exploits.py]"]
  node_findings["Security observations<br/>[report.py]"]
  node_report["TXT and HTML reports<br/>[report.py]"]
end

subgraph group_runtime["Runtime support"]
  node_settings[("Saved settings<br/>[config.py]")]
  node_environment["Environment checks<br/>[env_check.py]"]
end

node_user(("Operator"))
node_nmapservice["Nmap executable"]

node_user -->|"launches"| node_app
node_app -->|"launches"| node_gui
node_user -->|"operates"| node_gui
node_gui -->|"validates"| node_target
node_gui -->|"checks readiness"| node_environment
node_gui -->|"selects profile"| node_profiles
node_gui -->|"starts scan"| node_nmap
node_profiles -->|"configures profiles"| node_nmap
node_nmap -->|"runs"| node_nmapservice
node_nmap -->|"parses output"| node_xml
node_gui -->|"requests matches"| node_matching
node_gui -->|"loads local index"| node_exploitcsv
node_matching -->|"matches entries"| node_exploitcsv
node_gui -->|"shows findings"| node_findings
node_gui -->|"exports results"| node_report
node_report -->|"generates observations"| node_findings
node_gui -->|"loads and saves"| node_settings
node_environment -->|"loads configuration"| node_settings
node_environment -->|"checks index"| node_exploitcsv

click node_app "https://github.com/liubvg/netsploitxz/blob/main/main.py"
click node_gui "https://github.com/liubvg/netsploitxz/blob/main/gui.py"
click node_target "https://github.com/liubvg/netsploitxz/blob/main/validate.py"
click node_profiles "https://github.com/liubvg/netsploitxz/blob/main/config.py"
click node_nmap "https://github.com/liubvg/netsploitxz/blob/main/nmap_scan.py"
click node_xml "https://github.com/liubvg/netsploitxz/blob/main/nmap_scan.py"
click node_matching "https://github.com/liubvg/netsploitxz/blob/main/exploits.py"
click node_findings "https://github.com/liubvg/netsploitxz/blob/main/report.py"
click node_report "https://github.com/liubvg/netsploitxz/blob/main/report.py"
click node_settings "https://github.com/liubvg/netsploitxz/blob/main/config.py"
click node_environment "https://github.com/liubvg/netsploitxz/blob/main/env_check.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_app,node_gui toneBlue
class node_target,node_profiles,node_nmap,node_xml toneAmber
class node_exploitcsv,node_matching,node_findings,node_report toneMint
class node_settings,node_environment toneRose
class node_user,node_nmapservice toneIndigo
```

## Components

### User interface

- [Application entry](https://github.com/liubvg/netsploitxz/blob/main/main.py): `main.py`
- [Tkinter GUI](https://github.com/liubvg/netsploitxz/blob/main/gui.py): `gui.py`

### Reconnaissance

- [Target validation](https://github.com/liubvg/netsploitxz/blob/main/validate.py): `validate.py`
- [Scan profiles](https://github.com/liubvg/netsploitxz/blob/main/config.py): `config.py`
- [Nmap execution](https://github.com/liubvg/netsploitxz/blob/main/nmap_scan.py): `nmap_scan.py`
- [XML result parser](https://github.com/liubvg/netsploitxz/blob/main/nmap_scan.py): `nmap_scan.py`

### Analysis

- **Exploit-DB index**
- [Exploit correlation](https://github.com/liubvg/netsploitxz/blob/main/exploits.py): `exploits.py`
- [Security observations](https://github.com/liubvg/netsploitxz/blob/main/report.py): `report.py`
- [TXT and HTML reports](https://github.com/liubvg/netsploitxz/blob/main/report.py): `report.py`

### Runtime support

- [Saved settings](https://github.com/liubvg/netsploitxz/blob/main/config.py): `config.py`
- [Environment checks](https://github.com/liubvg/netsploitxz/blob/main/env_check.py): `env_check.py`

### Other components

- **Operator**
- **Nmap executable**

## Connections

- Operator → Application entry: launches (evidence: `README.md`)
- Application entry → Tkinter GUI: launches (evidence: `main.py`)
- Operator → Tkinter GUI: operates (evidence: `README.md`)
- Tkinter GUI → Target validation: validates (evidence: `gui.py`)
- Tkinter GUI → Environment checks: checks readiness (evidence: `gui.py`)
- Tkinter GUI → Scan profiles: selects profile (evidence: `README.md`)
- Tkinter GUI → Nmap execution: starts scan (evidence: `gui.py`)
- Scan profiles → Nmap execution: configures profiles (evidence: `nmap_scan.py`)
- Nmap execution → Nmap executable: runs (evidence: `nmap_scan.py`)
- Nmap execution → XML result parser: parses output (evidence: `README.md`)
- Tkinter GUI → Exploit correlation: requests matches (evidence: `gui.py`)
- Tkinter GUI → Exploit-DB index: loads local index (evidence: `gui.py`)
- Exploit correlation → Exploit-DB index: matches entries (evidence: `exploits.py`)
- Tkinter GUI → Security observations: shows findings (evidence: `README.md`)
- Tkinter GUI → TXT and HTML reports: exports results (evidence: `README.md`)
- TXT and HTML reports → Security observations: generates observations (evidence: `report.py`)
- Tkinter GUI → Saved settings: loads and saves (evidence: `gui.py`)
- Environment checks → Saved settings: loads configuration (evidence: `env_check.py`)
- Environment checks → Exploit-DB index: checks index (evidence: `env_check.py`)
