# streetsec/fatrat architecture

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

- Interactive diagram: https://gitdiagram.com/streetsec/fatrat
- Repository: https://github.com/streetsec/fatrat

## Overview

The README presents TheFatRat as a Linux menu-driven toolkit for generating platform-targeted payloads and supporting post-exploitation workflows. The documented user path is selecting an option, generating an artifact, and using supporting listener or console features. The tree does not include the named `fatrat` entry point, so the graph represents documented capabilities at the repository-root level rather than claiming their implementation or internal call paths were inspected. ProGuard is a substantial bundled Java bytecode tool; its connection to TheFatRat is not established by the available evidence.

Main entry points: [`tools/proguard5.3.2/src/proguard/optimize/Optimizer.java`](https://github.com/streetsec/fatrat/blob/master/tools/proguard5.3.2/src/proguard/optimize/Optimizer.java) (ProGuard processing), [`tools/proguard5.3.2/src/proguard/classfile/ProgramClass.java`](https://github.com/streetsec/fatrat/blob/master/tools/proguard5.3.2/src/proguard/classfile/ProgramClass.java) (Class-file model), [`tools/proguard5.3.2/src/proguard/ConfigurationParser.java`](https://github.com/streetsec/fatrat/blob/master/tools/proguard5.3.2/src/proguard/ConfigurationParser.java) (ProGuard configuration), [`tools/apkembed.rb`](https://github.com/streetsec/fatrat/blob/master/tools/apkembed.rb) (APK embedding)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["User workflow"]
  node_menu["FatRat menu"]
  node_generation["Artifact generation"]
  node_compiled["Compiled artifacts"]
  node_platforms["Target platforms"]
end

subgraph group_payloads["Artifact capabilities"]
  node_backdoors["Backdoor options"]
  node_av["AV bypass"]
  node_apk["APK embedding<br/>[apkembed.rb]"]
  node_autorun["Autorun files"]
  node_pumper["File pumper<br/>[pump.py]"]
end

subgraph group_operations["Post-exploitation tools"]
  node_listeners["Meterpreter listeners"]
  node_service["Metasploit service"]
  node_console["Metasploit console"]
  node_search["Exploit search"]
end

subgraph group_vendor["Bundled bytecode tool"]
  node_proguard["ProGuard processing<br/>[Optimizer.java]"]
  node_config["ProGuard configuration"]
  node_classmodel["Class-file model<br/>[ProgramClass.java]"]
  node_bytecode["Bytecode structures<br/>[CodeAttribute.java]"]
end

node_user(("Operator"))
node_searchsploit["Searchsploit"]

node_user -->|"selects option"| node_menu
node_menu -->|"starts generation"| node_generation
node_generation -->|"offers options"| node_backdoors
node_generation -->|"produces artifacts"| node_compiled
node_compiled -->|"targets"| node_platforms
node_generation -->|"offers bypass"| node_av
node_generation -->|"supports embedding"| node_apk
node_generation -->|"offers autorun"| node_autorun
node_generation -->|"offers pumping"| node_pumper
node_menu -->|"starts listeners"| node_listeners
node_menu -->|"checks service"| node_service
node_menu -->|"opens console"| node_console
node_menu -->|"offers search"| node_search
node_search -->|"searches exploits"| node_searchsploit
node_config -.->|"configures"| node_proguard
node_proguard -.->|"processes classes"| node_classmodel
node_classmodel -.->|"holds code"| node_bytecode

click node_apk "https://github.com/streetsec/fatrat/blob/master/tools/apkembed.rb"
click node_pumper "https://github.com/streetsec/fatrat/blob/master/tools/pump.py"
click node_proguard "https://github.com/streetsec/fatrat/blob/master/tools/proguard5.3.2/src/proguard/optimize/Optimizer.java"
click node_config "https://github.com/streetsec/fatrat/blob/master/tools/proguard5.3.2/src/proguard/ConfigurationParser.java"
click node_classmodel "https://github.com/streetsec/fatrat/blob/master/tools/proguard5.3.2/src/proguard/classfile/ProgramClass.java"
click node_bytecode "https://github.com/streetsec/fatrat/blob/master/tools/proguard5.3.2/src/proguard/classfile/attribute/CodeAttribute.java"

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_menu,node_generation,node_compiled,node_platforms toneBlue
class node_backdoors,node_av,node_apk,node_autorun,node_pumper toneAmber
class node_listeners,node_service,node_console,node_search toneMint
class node_proguard,node_config,node_classmodel,node_bytecode toneRose
class node_user,node_searchsploit toneIndigo
```

## Components

### User workflow

- **FatRat menu**
- **Artifact generation**
- **Compiled artifacts**
- **Target platforms**

### Artifact capabilities

- **Backdoor options**
- **AV bypass**
- [APK embedding](https://github.com/streetsec/fatrat/blob/master/tools/apkembed.rb): `tools/apkembed.rb`
- **Autorun files**
- [File pumper](https://github.com/streetsec/fatrat/blob/master/tools/pump.py): `tools/pump.py`

### Post-exploitation tools

- **Meterpreter listeners**
- **Metasploit service**
- **Metasploit console**
- **Exploit search**

### Bundled bytecode tool

- [ProGuard processing](https://github.com/streetsec/fatrat/blob/master/tools/proguard5.3.2/src/proguard/optimize/Optimizer.java): `tools/proguard5.3.2/src/proguard/optimize/Optimizer.java`
- [ProGuard configuration](https://github.com/streetsec/fatrat/blob/master/tools/proguard5.3.2/src/proguard/ConfigurationParser.java): `tools/proguard5.3.2/src/proguard/ConfigurationParser.java`
- [Class-file model](https://github.com/streetsec/fatrat/blob/master/tools/proguard5.3.2/src/proguard/classfile/ProgramClass.java): `tools/proguard5.3.2/src/proguard/classfile/ProgramClass.java`
- [Bytecode structures](https://github.com/streetsec/fatrat/blob/master/tools/proguard5.3.2/src/proguard/classfile/attribute/CodeAttribute.java): `tools/proguard5.3.2/src/proguard/classfile/attribute/CodeAttribute.java`

### Other components

- **Operator**
- **Searchsploit**

## Connections

- Operator → FatRat menu: selects option
- FatRat menu → Artifact generation: starts generation
- Artifact generation → Backdoor options: offers options
- Artifact generation → Compiled artifacts: produces artifacts
- Compiled artifacts → Target platforms: targets
- Artifact generation → AV bypass: offers bypass
- Artifact generation → APK embedding: supports embedding
- Artifact generation → Autorun files: offers autorun
- Artifact generation → File pumper: offers pumping
- FatRat menu → Meterpreter listeners: starts listeners
- FatRat menu → Metasploit service: checks service
- FatRat menu → Metasploit console: opens console
- FatRat menu → Exploit search: offers search
- Exploit search → Searchsploit: searches exploits
- ProGuard configuration → ProGuard processing: configures
- ProGuard processing → Class-file model: processes classes
- Class-file model → Bytecode structures: holds code
