# shaheeryasirofficial/smugglemypayload architecture

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

- Interactive diagram: https://gitdiagram.com/shaheeryasirofficial/smugglemypayload
- Repository: https://github.com/shaheeryasirofficial/smugglemypayload

## Overview

SmuggleMyPayload is a Python CLI for producing HTML pages that embed and reconstruct a supplied file in the browser. Its principal workflow is to select a payload, page template and delivery method, then generate an HTML result. The source excerpt shows basic and obfuscated generators chunking encoded payloads, and an iframe-based generator; the README documents additional options and templates. The implementation is concentrated in one script, so component paths repeat. Some CLI-to-generator and output-writing details are not visible in the excerpts.

Main entry points: [`Source/SmuggleMyPayload.py`](https://github.com/shaheeryasirofficial/smugglemypayload/blob/main/Source/SmuggleMyPayload.py) (CLI and prompts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cli["CLI Workflow"]
  node_cli["CLI and prompts"]
  node_payload["Payload encoding"]
end

subgraph group_page["Page Generation"]
  node_templates["Page templates"]
  node_branding["Custom branding"]
  node_chunking["Payload chunking"]
end

subgraph group_delivery["Delivery Methods"]
  node_basic["Basic generator"]
  node_obfuscated["Obfuscated generator"]
  node_automatic["Automatic generator"]
  node_iframe["Iframe generator"]
end

node_user(("Tool user"))
node_html["Generated HTML"]

node_user -->|"runs"| node_cli
node_cli -->|"provides input"| node_payload
node_cli -->|"selects template"| node_templates
node_cli -->|"configures page"| node_branding
node_cli -->|"selects method"| node_basic
node_cli -->|"selects method"| node_obfuscated
node_cli -->|"selects method"| node_automatic
node_cli -->|"selects method"| node_iframe
node_basic -->|"chunks payload"| node_chunking
node_obfuscated -->|"chunks payload"| node_chunking
node_basic -->|"generates page"| node_html
node_obfuscated -->|"generates page"| node_html
node_automatic -->|"generates page"| node_html
node_iframe -->|"generates page"| node_html

click node_cli "https://github.com/shaheeryasirofficial/smugglemypayload/blob/main/Source/SmuggleMyPayload.py"
click node_payload "https://github.com/shaheeryasirofficial/smugglemypayload/blob/main/Source/SmuggleMyPayload.py"
click node_templates "https://github.com/shaheeryasirofficial/smugglemypayload/blob/main/Source/SmuggleMyPayload.py"
click node_branding "https://github.com/shaheeryasirofficial/smugglemypayload/blob/main/Source/SmuggleMyPayload.py"
click node_chunking "https://github.com/shaheeryasirofficial/smugglemypayload/blob/main/Source/SmuggleMyPayload.py"
click node_basic "https://github.com/shaheeryasirofficial/smugglemypayload/blob/main/Source/SmuggleMyPayload.py"
click node_obfuscated "https://github.com/shaheeryasirofficial/smugglemypayload/blob/main/Source/SmuggleMyPayload.py"
click node_automatic "https://github.com/shaheeryasirofficial/smugglemypayload/blob/main/Source/SmuggleMyPayload.py"
click node_iframe "https://github.com/shaheeryasirofficial/smugglemypayload/blob/main/Source/SmuggleMyPayload.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_payload,node_user toneBlue
class node_templates,node_branding,node_chunking toneAmber
class node_basic,node_obfuscated,node_automatic,node_iframe toneMint
class node_html toneIndigo
```

## Components

### CLI Workflow

- [CLI and prompts](https://github.com/shaheeryasirofficial/smugglemypayload/blob/main/Source/SmuggleMyPayload.py): `Source/SmuggleMyPayload.py`
- [Payload encoding](https://github.com/shaheeryasirofficial/smugglemypayload/blob/main/Source/SmuggleMyPayload.py): `Source/SmuggleMyPayload.py`

### Page Generation

- [Page templates](https://github.com/shaheeryasirofficial/smugglemypayload/blob/main/Source/SmuggleMyPayload.py): `Source/SmuggleMyPayload.py`
- [Custom branding](https://github.com/shaheeryasirofficial/smugglemypayload/blob/main/Source/SmuggleMyPayload.py): `Source/SmuggleMyPayload.py`
- [Payload chunking](https://github.com/shaheeryasirofficial/smugglemypayload/blob/main/Source/SmuggleMyPayload.py): `Source/SmuggleMyPayload.py`

### Delivery Methods

- [Basic generator](https://github.com/shaheeryasirofficial/smugglemypayload/blob/main/Source/SmuggleMyPayload.py): `Source/SmuggleMyPayload.py`
- [Obfuscated generator](https://github.com/shaheeryasirofficial/smugglemypayload/blob/main/Source/SmuggleMyPayload.py): `Source/SmuggleMyPayload.py`
- [Automatic generator](https://github.com/shaheeryasirofficial/smugglemypayload/blob/main/Source/SmuggleMyPayload.py): `Source/SmuggleMyPayload.py`
- [Iframe generator](https://github.com/shaheeryasirofficial/smugglemypayload/blob/main/Source/SmuggleMyPayload.py): `Source/SmuggleMyPayload.py`

### Other components

- **Tool user**
- **Generated HTML**

## Connections

- Tool user → CLI and prompts: runs (evidence: `README.md`)
- CLI and prompts → Payload encoding: provides input (evidence: `README.md`)
- CLI and prompts → Page templates: selects template (evidence: `README.md`)
- CLI and prompts → Custom branding: configures page (evidence: `README.md`)
- CLI and prompts → Basic generator: selects method (evidence: `README.md`)
- CLI and prompts → Obfuscated generator: selects method (evidence: `README.md`)
- CLI and prompts → Automatic generator: selects method (evidence: `README.md`)
- CLI and prompts → Iframe generator: selects method (evidence: `README.md`)
- Basic generator → Payload chunking: chunks payload (evidence: `Source/SmuggleMyPayload.py`)
- Obfuscated generator → Payload chunking: chunks payload (evidence: `Source/SmuggleMyPayload.py`)
- Basic generator → Generated HTML: generates page (evidence: `README.md`)
- Obfuscated generator → Generated HTML: generates page (evidence: `README.md`)
- Automatic generator → Generated HTML: generates page (evidence: `README.md`)
- Iframe generator → Generated HTML: generates page (evidence: `README.md`)
