# aw-junaid/bug-bounty architecture

> Architecture diagram of the GitHub repository aw-junaid/bug-bounty, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aw-junaid/bug-bounty
- Repository: https://github.com/aw-junaid/bug-bounty

## Overview

This repository is a security-research knowledge base plus a small toolbox, not a deployed application. Its architecture is centered on Markdown documentation, reusable payload/wordlist assets, and a few runnable scripts for recon and exploitation.

1. **Top-level purpose**
   - The repo documents a bug bounty / web security workflow: methodology notes, cheat sheets, tooling, and write-ups.
   - The main output is human-consumable content; automation exists to support recon and testing, not to serve users.

2. **Documentation subsystem: `methodologies/`**
   - This is the core knowledge layer.
   - It is split into:
     - `web penetration/`: attack-vulnerability playbooks like SQLi, XSS, SSRF, CSRF, CORS, GraphQL, OAuth, XXE, WebSocket exploitation, etc.
     - `web technologies/`: technology-specific testing guides such as ASP.NET, Jenkins, Tomcat, Flask, GitHub/GitLab, WordPress, Firebase, WAFs, OIDC, JWT, and CI/CD security.
   - These files are the conceptual source of truth for how testing is done.

3. **Reference/cheatsheet subsystem: `resources/cheatsheets/`**
   - This is the operational companion to the methodologies.
   - Cheat sheets condense techniques, payloads, and commands into quick-reference format.
   - They mirror many of the same attack themes as the methodology docs, but in a more tactical, reusable form.

4. **Reusable asset layer: `resources/wordlists/` and `resources/templates/`**
   - Wordlists provide shared input data for brute force, discovery, and payload testing.
   - The template folder currently contains a bug report template, which supports standardized reporting output.
   - These assets are consumed by the scripts and by manual testing workflows.

5. **Reconnaissance tooling: `tools/reconnaissance/`**
   - This is the first active stage in the toolchain.
   - Scripts here include subdomain enumeration and URL collection.
   - The output of this stage is target surface data: domains, subdomains, and discovered URLs that feed later testing.

6. **Exploitation tooling: `tools/exploitation/`**
   - These scripts perform focused testing against candidate targets found during recon.
   - Current examples include SQL injection testing and XSS scanning.
   - This layer consumes recon output and shared payload resources to validate vulnerabilities.

7. **Utility layer: `tools/utilities/`**
   - These are support scripts used to prepare inputs for the rest of the workflow.
   - Examples include payload generation and wordlist merging.
   - This layer sits between static resources and the active recon/exploitation scripts.

8. **Automation layer: `tools/automation/`**
   - Contains a shell workflow script and a YAML automation definition.
   - This is the orchestration layer that likely sequences recon and testing steps into a repeatable pipeline.
   - It bridges manual research with semi-automated execution.

9. **Write-up/output subsystem: `write-ups/`**
   - This is the published findings layer.
   - It stores dated research notes and incident-style write-ups.
   - The write-ups are the end product of the methodology-to-tooling workflow: research, test, document.

10. **Course/learning boundary: `course/`**
   - The course area appears to be an educational section distinct from tactical references and tooling.
   - It likely serves as structured learning material rather than operational exploit content.

11. **Data flow through the repo**
   - A typical flow is: methodology docs and cheat sheets define the approach → utilities prepare payloads/wordlists → recon scripts discover targets → exploitation scripts validate issues → write-ups capture results.
   - Shared resources act as the common dependency between documentation and scripts.

12. **Important architectural boundary**
   - The repo cleanly separates:
     - **static knowledge**: Markdown guides, cheatsheets, templates, write-ups
     - **execution artifacts**: Bash/Python/YAML scripts
   - There is no central backend, database, or service runtime; the “system” is a curated research library plus command-line tooling.

13. **Technology profile**
   - Primary content format: Markdown.
   - Automation/runtime: Bash, Python, and YAML.
   - The repo is organized for local use and manual review, with scripts intended to be run against external targets during security assessments.

14. **How to diagram it**
   - Model it as three horizontal layers:
     - **Knowledge layer**: methodologies, cheatsheets, course
     - **Operational layer**: recon, exploitation, utilities, automation
     - **Artifacts/output layer**: wordlists, templates, write-ups
   - Show shared arrows from resources into tools, and from tools/methodologies into write-ups.

Main entry points: [`tools/exploitation`](https://github.com/aw-junaid/bug-bounty/tree/main/tools/exploitation) (Exploitation), [`methodologies`](https://github.com/aw-junaid/bug-bounty/tree/main/methodologies) (Methodologies), [`tools/reconnaissance`](https://github.com/aw-junaid/bug-bounty/tree/main/tools/reconnaissance) (Recon), [`tools/utilities`](https://github.com/aw-junaid/bug-bounty/tree/main/tools/utilities) (Utilities)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_knowledge["Knowledge Layer"]
  node_methodologies["Methodologies<br/>markdown guides"]
  node_web_pentest["Web Pentest<br/>attack playbooks"]
  node_web_tech["Web Tech<br/>platform guides"]
  node_cheatsheets["Cheatsheets<br/>quick refs"]
  node_course["Course<br/>learning material"]
end

subgraph group_operations["Operational Layer"]
  node_tools["Tools<br/>cli toolkit"]
  node_recon["Recon<br/>discovery scripts"]
  node_exploit["Exploitation<br/>testing scripts"]
  node_utilities["Utilities<br/>prep scripts"]
  node_automation["Automation<br/>orchestration"]
  node_sqli_tester(("SQLi Tester<br/>python scanner<br/>[sqli-tester.py]"))
  node_xss_scanner(("XSS Scanner<br/>python scanner<br/>[xss-scanner.py]"))
  node_subdomain_enum(("Subdomain Enum<br/>enumeration script<br/>[subdomain-enum.py]"))
  node_url_collector(("URL Collector<br/>collection script<br/>[url-collector.sh]"))
  node_payload_gen(("Payload Gen<br/>generator"))
  node_wordlist_merge(("Wordlist Merge<br/>merger<br/>[wordlist-merger.sh]"))
  node_workflow["Workflow<br/>shell/yaml pipeline"]
end

subgraph group_artifacts["Artifacts Layer"]
  node_resources["Resources<br/>shared assets"]
  node_wordlists[("Wordlists<br/>payload data")]
  node_templates["Templates<br/>report assets"]
  node_writeups["Write-ups<br/>findings archive"]
end

node_methodologies -->|"contains"| node_web_pentest
node_methodologies -->|"contains"| node_web_tech
node_methodologies -->|"informs"| node_cheatsheets
node_course -.->|"supports"| node_methodologies
node_resources -->|"includes"| node_wordlists
node_resources -->|"includes"| node_templates
node_wordlists -->|"feeds"| node_utilities
node_cheatsheets -.->|"supplies"| node_utilities
node_utilities -->|"prepares"| node_recon
node_utilities -->|"prepares"| node_exploit
node_recon -->|"includes"| node_subdomain_enum
node_recon -->|"includes"| node_url_collector
node_recon -->|"feeds"| node_exploit
node_exploit -->|"includes"| node_sqli_tester
node_exploit -->|"includes"| node_xss_scanner
node_automation -->|"orchestrates"| node_recon
node_automation -->|"orchestrates"| node_exploit
node_workflow -->|"implements"| node_automation
node_resources -.->|"supports"| node_tools
node_exploit -->|"documents"| node_writeups
node_methodologies -.->|"shapes"| node_writeups

click node_methodologies "https://github.com/aw-junaid/bug-bounty/tree/main/methodologies"
click node_web_pentest "https://github.com/aw-junaid/bug-bounty/tree/main/methodologies/web penetration"
click node_web_tech "https://github.com/aw-junaid/bug-bounty/tree/main/methodologies/web technologies"
click node_cheatsheets "https://github.com/aw-junaid/bug-bounty/tree/main/resources/cheatsheets"
click node_course "https://github.com/aw-junaid/bug-bounty/tree/main/course"
click node_resources "https://github.com/aw-junaid/bug-bounty/tree/main/resources"
click node_wordlists "https://github.com/aw-junaid/bug-bounty/tree/main/resources/wordlists"
click node_templates "https://github.com/aw-junaid/bug-bounty/tree/main/resources/templates"
click node_writeups "https://github.com/aw-junaid/bug-bounty/tree/main/write-ups"
click node_tools "https://github.com/aw-junaid/bug-bounty/tree/main/tools"
click node_recon "https://github.com/aw-junaid/bug-bounty/tree/main/tools/reconnaissance"
click node_exploit "https://github.com/aw-junaid/bug-bounty/tree/main/tools/exploitation"
click node_utilities "https://github.com/aw-junaid/bug-bounty/tree/main/tools/utilities"
click node_automation "https://github.com/aw-junaid/bug-bounty/tree/main/tools/automation"
click node_sqli_tester "https://github.com/aw-junaid/bug-bounty/blob/main/tools/exploitation/sqli-tester.py"
click node_xss_scanner "https://github.com/aw-junaid/bug-bounty/blob/main/tools/exploitation/xss-scanner.py"
click node_subdomain_enum "https://github.com/aw-junaid/bug-bounty/blob/main/tools/reconnaissance/subdomain-enum.py"
click node_url_collector "https://github.com/aw-junaid/bug-bounty/blob/main/tools/reconnaissance/url-collector.sh"
click node_payload_gen "https://github.com/aw-junaid/bug-bounty/blob/main/tools/utilities/payload-generator.py"
click node_wordlist_merge "https://github.com/aw-junaid/bug-bounty/blob/main/tools/utilities/wordlist-merger.sh"
click node_workflow "https://github.com/aw-junaid/bug-bounty/tree/main/tools/automation"

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_methodologies,node_web_pentest,node_web_tech,node_cheatsheets,node_course toneBlue
class node_tools,node_recon,node_exploit,node_utilities,node_automation,node_sqli_tester,node_xss_scanner,node_subdomain_enum,node_url_collector,node_payload_gen,node_wordlist_merge,node_workflow toneAmber
class node_resources,node_wordlists,node_templates,node_writeups toneMint
```

## Components

### Knowledge Layer

Static research, guides, and learning material.

- [Methodologies](https://github.com/aw-junaid/bug-bounty/tree/main/methodologies): markdown guides · Core playbooks for web penetration and technology-specific testing. · `methodologies`
- [Web Pentest](https://github.com/aw-junaid/bug-bounty/tree/HEAD/methodologies/web%20penetration): attack playbooks · Vulnerability-focused methodology notes for common web attack surfaces. · `methodologies/web penetration`
- [Web Tech](https://github.com/aw-junaid/bug-bounty/tree/HEAD/methodologies/web%20technologies): platform guides · Technology-specific exploitation and security testing notes. · `methodologies/web technologies`
- [Cheatsheets](https://github.com/aw-junaid/bug-bounty/tree/main/resources/cheatsheets): quick refs · Tactical reference material that condenses payloads, commands, and techniques. · `resources/cheatsheets`
- [Course](https://github.com/aw-junaid/bug-bounty/tree/main/course): learning material · Structured educational content separated from tactical references. · `course`

### Operational Layer

Runnable scripts for reconnaissance, exploitation, and orchestration.

- [Tools](https://github.com/aw-junaid/bug-bounty/tree/main/tools): cli toolkit · Command-line scripts that support recon, exploitation, and workflow automation. · `tools`
- [Recon](https://github.com/aw-junaid/bug-bounty/tree/main/tools/reconnaissance): discovery scripts · Subdomain and URL discovery stage feeding later testing. · `tools/reconnaissance`
- [Exploitation](https://github.com/aw-junaid/bug-bounty/tree/main/tools/exploitation): testing scripts · Targeted validation scripts for SQLi and XSS. · `tools/exploitation`
- [Utilities](https://github.com/aw-junaid/bug-bounty/tree/main/tools/utilities): prep scripts · Helpers for generating payloads and merging wordlists. · `tools/utilities`
- [Automation](https://github.com/aw-junaid/bug-bounty/tree/main/tools/automation): orchestration · Workflow scripts that sequence recon and testing steps. · `tools/automation`
- [SQLi Tester](https://github.com/aw-junaid/bug-bounty/blob/main/tools/exploitation/sqli-tester.py): python scanner · Focused SQL injection validation tool. · `tools/exploitation/sqli-tester.py`
- [XSS Scanner](https://github.com/aw-junaid/bug-bounty/blob/main/tools/exploitation/xss-scanner.py): python scanner · Focused cross-site scripting testing tool. · `tools/exploitation/xss-scanner.py`
- [Subdomain Enum](https://github.com/aw-junaid/bug-bounty/blob/main/tools/reconnaissance/subdomain-enum.py): enumeration script · Discovers candidate subdomains for testing. · `tools/reconnaissance/subdomain-enum.py`
- [URL Collector](https://github.com/aw-junaid/bug-bounty/blob/main/tools/reconnaissance/url-collector.sh): collection script · Harvests URLs for target surface expansion. · `tools/reconnaissance/url-collector.sh`
- [Payload Gen](https://github.com/aw-junaid/bug-bounty/blob/main/tools/utilities/payload-generator.py): generator · Builds or adapts payload inputs for testing. · `tools/utilities/payload-generator.py`
- [Wordlist Merge](https://github.com/aw-junaid/bug-bounty/blob/main/tools/utilities/wordlist-merger.sh): merger · Combines wordlists into reusable input sets. · `tools/utilities/wordlist-merger.sh`
- [Workflow](https://github.com/aw-junaid/bug-bounty/tree/main/tools/automation): shell/yaml pipeline · Bug bounty orchestration definition and shell runner. · `tools/automation`

### Artifacts Layer

Reusable inputs, templates, and published findings.

- [Resources](https://github.com/aw-junaid/bug-bounty/tree/main/resources): shared assets · Reusable wordlists, templates, and reference content used across the workflow. · `resources`
- [Wordlists](https://github.com/aw-junaid/bug-bounty/tree/main/resources/wordlists): payload data · Shared discovery and attack input lists. · `resources/wordlists`
- [Templates](https://github.com/aw-junaid/bug-bounty/tree/main/resources/templates): report assets · Standardized output templates for reporting findings. · `resources/templates`
- [Write-ups](https://github.com/aw-junaid/bug-bounty/tree/main/write-ups): findings archive · Published research notes and incident-style reports. · `write-ups`

## Connections

- Methodologies → Web Pentest: contains · Methodology corpus includes web attack playbooks.
- Methodologies → Web Tech: contains · Methodology corpus includes technology-specific guides.
- Methodologies → Cheatsheets: informs · Guides are condensed into tactical reference sheets.
- Course → Methodologies: supports · Learning content sits alongside the main knowledge base.
- Resources → Wordlists: includes · Shared input data lives in the resource layer.
- Resources → Templates: includes · Reporting templates are stored as reusable artifacts.
- Wordlists → Utilities: feeds · Utilities consume and reshape shared input lists.
- Cheatsheets → Utilities: supplies · Reference payloads and commands help generate inputs.
- Utilities → Recon: prepares · Prepared inputs are used by reconnaissance scripts.
- Utilities → Exploitation: prepares · Prepared payloads and merged lists feed exploitation scripts.
- Recon → Subdomain Enum: includes · Subdomain enumeration is part of the recon stage.
- Recon → URL Collector: includes · URL harvesting is part of the recon stage.
- Recon → Exploitation: feeds · Discovered targets move into focused testing.
- Exploitation → SQLi Tester: includes · SQL injection validation is one exploitation path.
- Exploitation → XSS Scanner: includes · XSS scanning is another exploitation path.
- Automation → Recon: orchestrates · Automation sequences reconnaissance steps.
- Automation → Exploitation: orchestrates · Automation sequences exploitation checks.
- Workflow → Automation: implements · Shell and YAML files encode the repeatable workflow.
- Resources → Tools: supports · Shared artifacts underpin the toolchain.
- Exploitation → Write-ups: documents · Validated findings are captured as write-ups.
- Methodologies → Write-ups: shapes · Research notes and reports reflect the methodology layer.
