# b4x0rn/xrecon architecture

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

- Interactive diagram: https://gitdiagram.com/b4x0rn/xrecon
- Repository: https://github.com/b4x0rn/xrecon

## Overview

xRecon is a Bash reconnaissance and vulnerability-scanning tool. Its documented workflow accepts one or more targets, checks whether each is live, gathers WHOIS and Nmap results, checks detected services for outdated versions, and conditionally scans web services with Nikto before saving organized results and high/critical findings. The README also describes dependency installation, parallel scanning, and timestamped logging. The repository contains only xRecon.sh, and no source excerpts were provided, so the graph represents documented capabilities and relationships only.

Main entry points: [`xRecon.sh`](https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh) (xRecon scanner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_execution["Scan execution"]
  node_scanner["xRecon scanner<br/>[xRecon.sh]"]
  node_dependency_setup["Dependency setup<br/>[xRecon.sh]"]
  node_parallel_scans["Parallel scans<br/>[xRecon.sh]"]
  node_target_liveness["Target liveness<br/>[xRecon.sh]"]
  node_ping_dns_ports{{"Ping, DNS, ports"}}
  node_whois_lookup["WHOIS lookup<br/>[xRecon.sh]"]
  node_nmap_scan["Nmap scan<br/>[xRecon.sh]"]
end

subgraph group_analysis["Analysis"]
  node_outdated_detection["Outdated services<br/>[xRecon.sh]"]
  node_web_detection["Web service check<br/>[xRecon.sh]"]
  node_nikto_scan["Nikto scan<br/>[xRecon.sh]"]
  node_finding_parser["Critical findings<br/>[xRecon.sh]"]
end

subgraph group_results["Results"]
  node_organized_output[("Per-target results<br/>[xRecon.sh]")]
  node_vulnerability_output["Vulnerability report<br/>[xRecon.sh]"]
  node_scan_log["Timestamped log<br/>[xRecon.sh]"]
end

node_tester(("Tester"))
node_whois_service{{"WHOIS"}}
node_nmap_tool{{"Nmap"}}
node_nikto_tool{{"Nikto"}}

node_tester -->|"provides targets"| node_scanner
node_scanner -->|"checks tools"| node_dependency_setup
node_dependency_setup -->|"installs missing"| node_scanner
node_scanner -->|"supports parallel"| node_parallel_scans
node_scanner -->|"checks target"| node_target_liveness
node_target_liveness -->|"probes target"| node_ping_dns_ports
node_scanner -->|"runs lookup"| node_whois_lookup
node_whois_lookup -->|"queries"| node_whois_service
node_scanner -->|"runs scan"| node_nmap_scan
node_nmap_scan -->|"invokes"| node_nmap_tool
node_nmap_scan -->|"provides service results"| node_outdated_detection
node_nmap_scan -->|"checks detected services"| node_web_detection
node_web_detection -->|"starts web scan"| node_nikto_scan
node_nikto_scan -->|"invokes"| node_nikto_tool
node_nikto_scan -->|"provides findings"| node_finding_parser
node_whois_lookup -->|"saves results"| node_organized_output
node_nmap_scan -->|"saves results"| node_organized_output
node_nikto_scan -->|"saves results"| node_organized_output
node_finding_parser -->|"writes findings"| node_vulnerability_output
node_scanner -->|"records activity"| node_scan_log

click node_scanner "https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh"
click node_dependency_setup "https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh"
click node_parallel_scans "https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh"
click node_target_liveness "https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh"
click node_whois_lookup "https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh"
click node_nmap_scan "https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh"
click node_outdated_detection "https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh"
click node_web_detection "https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh"
click node_nikto_scan "https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh"
click node_finding_parser "https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh"
click node_organized_output "https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh"
click node_vulnerability_output "https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh"
click node_scan_log "https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh"

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_scanner,node_dependency_setup,node_parallel_scans,node_target_liveness,node_ping_dns_ports,node_whois_lookup,node_nmap_scan toneBlue
class node_outdated_detection,node_web_detection,node_nikto_scan,node_finding_parser toneAmber
class node_organized_output,node_vulnerability_output,node_scan_log toneMint
class node_tester,node_whois_service,node_nmap_tool,node_nikto_tool toneIndigo
```

## Components

### Scan execution

- [xRecon scanner](https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh): `xRecon.sh`
- [Dependency setup](https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh): `xRecon.sh`
- [Parallel scans](https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh): `xRecon.sh`
- [Target liveness](https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh): `xRecon.sh`
- **Ping, DNS, ports**
- [WHOIS lookup](https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh): `xRecon.sh`
- [Nmap scan](https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh): `xRecon.sh`

### Analysis

- [Outdated services](https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh): `xRecon.sh`
- [Web service check](https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh): `xRecon.sh`
- [Nikto scan](https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh): `xRecon.sh`
- [Critical findings](https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh): `xRecon.sh`

### Results

- [Per-target results](https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh): `xRecon.sh`
- [Vulnerability report](https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh): `xRecon.sh`
- [Timestamped log](https://github.com/b4x0rn/xrecon/blob/main/xRecon.sh): `xRecon.sh`

### Other components

- **Tester**
- **WHOIS**
- **Nmap**
- **Nikto**

## Connections

- Tester → xRecon scanner: provides targets (evidence: `README.md`)
- xRecon scanner → Dependency setup: checks tools (evidence: `README.md`)
- Dependency setup → xRecon scanner: installs missing (evidence: `README.md`)
- xRecon scanner → Parallel scans: supports parallel (evidence: `README.md`)
- xRecon scanner → Target liveness: checks target (evidence: `README.md`)
- Target liveness → Ping, DNS, ports: probes target (evidence: `README.md`)
- xRecon scanner → WHOIS lookup: runs lookup (evidence: `README.md`)
- WHOIS lookup → WHOIS: queries (evidence: `README.md`)
- xRecon scanner → Nmap scan: runs scan (evidence: `README.md`)
- Nmap scan → Nmap: invokes (evidence: `README.md`)
- Nmap scan → Outdated services: provides service results (evidence: `README.md`)
- Nmap scan → Web service check: checks detected services (evidence: `README.md`)
- Web service check → Nikto scan: starts web scan (evidence: `README.md`)
- Nikto scan → Nikto: invokes (evidence: `README.md`)
- Nikto scan → Critical findings: provides findings (evidence: `README.md`)
- WHOIS lookup → Per-target results: saves results (evidence: `README.md`)
- Nmap scan → Per-target results: saves results (evidence: `README.md`)
- Nikto scan → Per-target results: saves results (evidence: `README.md`)
- Critical findings → Vulnerability report: writes findings (evidence: `README.md`)
- xRecon scanner → Timestamped log: records activity (evidence: `README.md`)
