# thakur2309/pegasus-pro architecture

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

- Interactive diagram: https://gitdiagram.com/thakur2309/pegasus-pro
- Repository: https://github.com/thakur2309/pegasus-pro

## Overview

PEGASUS is a Python terminal tool for Android device management and security auditing through ADB. The documented workflow is license entry, payload decryption and execution, then menu-driven device or audit operations. The visible v1.3 source verifies the license/decrypt/exec wrapper, but its payload is encrypted and its contents were not inspected; feature-level components and their menu dispatch are therefore based on README descriptions, not verified implementation details.

Main entry points: [`pegasus_v_1.3.py`](https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py) (Dynamic payload runner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Runtime entry"]
  node_license["License check<br/>[pegasus_v_1.3.py]"]
  node_decrypt["Payload decryption<br/>[pegasus_v_1.3.py]"]
  node_payload["Dynamic payload runner<br/>[pegasus_v_1.3.py]"]
end

subgraph group_device["Device operations"]
  node_device_ops["Device management<br/>[pegasus_v_1.3.py]"]
  node_connection["ADB connections<br/>[pegasus_v_1.3.py]"]
  node_capture["Screen and camera capture<br/>[pegasus_v_1.3.py]"]
  node_device_status["Status and controls<br/>[pegasus_v_1.3.py]"]
end

subgraph group_apps["Apps and files"]
  node_app_ops["App management<br/>[pegasus_v_1.3.py]"]
  node_file_ops["File transfer<br/>[pegasus_v_1.3.py]"]
end

subgraph group_audit["Data and audit"]
  node_data_ops["Messages and logs<br/>[pegasus_v_1.3.py]"]
  node_security["Security audit<br/>[pegasus_v_1.3.py]"]
  node_network["Network checks<br/>[pegasus_v_1.3.py]"]
end

node_user(("Operator"))
node_adb["Android device via ADB"]

node_user -->|"enters key"| node_license
node_license -->|"accepts then decrypts"| node_decrypt
node_decrypt -->|"executes code"| node_payload
node_payload -->|"offers menu"| node_device_ops
node_device_ops -->|"includes"| node_connection
node_device_ops -->|"includes"| node_capture
node_device_ops -->|"includes"| node_device_status
node_payload -->|"offers menu"| node_app_ops
node_payload -->|"offers menu"| node_file_ops
node_payload -->|"offers menu"| node_data_ops
node_payload -->|"offers audit submenu"| node_security
node_security -->|"includes checks"| node_network
node_connection -->|"connects through"| node_adb
node_device_ops -->|"manages device"| node_adb
node_app_ops -->|"manages packages"| node_adb
node_file_ops -->|"transfers files"| node_adb
node_data_ops -->|"retrieves data"| node_adb
node_security -->|"audits device"| node_adb

click node_license "https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py"
click node_decrypt "https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py"
click node_payload "https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py"
click node_device_ops "https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py"
click node_connection "https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py"
click node_capture "https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py"
click node_device_status "https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py"
click node_app_ops "https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py"
click node_file_ops "https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py"
click node_data_ops "https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py"
click node_security "https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py"
click node_network "https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.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_license,node_decrypt,node_payload toneBlue
class node_device_ops,node_connection,node_capture,node_device_status toneAmber
class node_app_ops,node_file_ops toneMint
class node_data_ops,node_security,node_network toneRose
class node_user,node_adb toneIndigo
```

## Components

### Runtime entry

- [License check](https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py): `pegasus_v_1.3.py`
- [Payload decryption](https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py): `pegasus_v_1.3.py`
- [Dynamic payload runner](https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py): `pegasus_v_1.3.py`

### Device operations

- [Device management](https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py): `pegasus_v_1.3.py`
- [ADB connections](https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py): `pegasus_v_1.3.py`
- [Screen and camera capture](https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py): `pegasus_v_1.3.py`
- [Status and controls](https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py): `pegasus_v_1.3.py`

### Apps and files

- [App management](https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py): `pegasus_v_1.3.py`
- [File transfer](https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py): `pegasus_v_1.3.py`

### Data and audit

- [Messages and logs](https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py): `pegasus_v_1.3.py`
- [Security audit](https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py): `pegasus_v_1.3.py`
- [Network checks](https://github.com/thakur2309/pegasus-pro/blob/main/pegasus_v_1.3.py): `pegasus_v_1.3.py`

### Other components

- **Operator**
- **Android device via ADB**

## Connections

- Operator → License check: enters key (evidence: `pegasus_v_1.3.py`)
- License check → Payload decryption: accepts then decrypts (evidence: `pegasus_v_1.3.py`)
- Payload decryption → Dynamic payload runner: executes code (evidence: `pegasus_v_1.3.py`)
- Dynamic payload runner → Device management: offers menu (evidence: `README.md`)
- Device management → ADB connections: includes (evidence: `README.md`)
- Device management → Screen and camera capture: includes (evidence: `README.md`)
- Device management → Status and controls: includes (evidence: `README.md`)
- Dynamic payload runner → App management: offers menu (evidence: `README.md`)
- Dynamic payload runner → File transfer: offers menu (evidence: `README.md`)
- Dynamic payload runner → Messages and logs: offers menu (evidence: `README.md`)
- Dynamic payload runner → Security audit: offers audit submenu (evidence: `README.md`)
- Security audit → Network checks: includes checks (evidence: `README.md`)
- ADB connections → Android device via ADB: connects through (evidence: `README.md`)
- Device management → Android device via ADB: manages device (evidence: `README.md`)
- App management → Android device via ADB: manages packages (evidence: `README.md`)
- File transfer → Android device via ADB: transfers files (evidence: `README.md`)
- Messages and logs → Android device via ADB: retrieves data (evidence: `README.md`)
- Security audit → Android device via ADB: audits device (evidence: `README.md`)
