# parrotsec/shellter architecture

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

- Interactive diagram: https://gitdiagram.com/parrotsec/shellter
- Repository: https://github.com/parrotsec/shellter

## Overview

Shellter is a Windows tool that traces a 32-bit PE application’s execution flow and uses that trace to inject shellcode into the executable. The documented workflow includes optional payload encoding and runtime decoding through APIs imported by the target. The repository tree exposes only the compiled executable, so the internal components below represent documented responsibilities, not separately inspected source modules; relationships are based on the README.

Main entry points: [`shellter.exe`](https://github.com/parrotsec/shellter/blob/master/shellter.exe) (Shellter engine)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Inputs"]
  node_target["Target PE"]
  node_payload_in["Shellcode payload"]
  node_output["Modified PE"]
end

subgraph group_runtime["Tracing and injection"]
  node_shellter["Shellter engine<br/>[shellter.exe]"]
  node_trace["Execution-flow trace<br/>[shellter.exe]"]
  node_inject["Injection engine<br/>[shellter.exe]"]
end

subgraph group_payload["Payload handling"]
  node_encoder["Dynamic encoder<br/>[shellter.exe]"]
  node_iat["Imported API handlers<br/>[shellter.exe]"]
end

node_user(("Operator"))

node_user -->|"runs"| node_shellter
node_user -->|"selects"| node_target
node_user -->|"provides"| node_payload_in
node_shellter -->|"launches and traces"| node_target
node_shellter -->|"logs flow"| node_trace
node_trace -->|"guides injection"| node_inject
node_shellter -->|"encodes payload"| node_encoder
node_inject -->|"injects"| node_payload_in
node_inject -->|"uses imported APIs"| node_iat
node_inject -->|"produces"| node_output

click node_shellter "https://github.com/parrotsec/shellter/blob/master/shellter.exe"
click node_trace "https://github.com/parrotsec/shellter/blob/master/shellter.exe"
click node_inject "https://github.com/parrotsec/shellter/blob/master/shellter.exe"
click node_encoder "https://github.com/parrotsec/shellter/blob/master/shellter.exe"
click node_iat "https://github.com/parrotsec/shellter/blob/master/shellter.exe"

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_target,node_payload_in,node_output toneBlue
class node_shellter,node_trace,node_inject toneAmber
class node_encoder,node_iat toneMint
class node_user toneIndigo
```

## Components

### Inputs

- **Target PE**
- **Shellcode payload**
- **Modified PE**

### Tracing and injection

- [Shellter engine](https://github.com/parrotsec/shellter/blob/master/shellter.exe): `shellter.exe`
- [Execution-flow trace](https://github.com/parrotsec/shellter/blob/master/shellter.exe): `shellter.exe`
- [Injection engine](https://github.com/parrotsec/shellter/blob/master/shellter.exe): `shellter.exe`

### Payload handling

- [Dynamic encoder](https://github.com/parrotsec/shellter/blob/master/shellter.exe): `shellter.exe`
- [Imported API handlers](https://github.com/parrotsec/shellter/blob/master/shellter.exe): `shellter.exe`

### Other components

- **Operator**

## Connections

- Operator → Shellter engine: runs
- Operator → Target PE: selects
- Operator → Shellcode payload: provides
- Shellter engine → Target PE: launches and traces
- Shellter engine → Execution-flow trace: logs flow
- Execution-flow trace → Injection engine: guides injection
- Shellter engine → Dynamic encoder: encodes payload
- Injection engine → Shellcode payload: injects
- Injection engine → Imported API handlers: uses imported APIs
- Injection engine → Modified PE: produces
