# jassoncordones/metasploit-framework architecture

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

- Interactive diagram: https://gitdiagram.com/jassoncordones/metasploit-framework
- Repository: https://github.com/jassoncordones/metasploit-framework

## Overview

Metasploit Framework is a penetration-testing platform whose primary user entry point is msfconsole. The broad workflow is an operator selecting a module, engaging a target or service, and producing an assessment or session; the tree shows exploit, auxiliary, post, payload, and protocol-service capabilities. The excerpts substantiate the ADAudit Plus exploit’s HTTP interaction and two exploit assets, but do not expose console dispatch or general session creation, so those connections are marked unverified. The README is high-level, and many listed subsystems were not sampled.

Main entry points: [`modules/exploits`](https://github.com/jassoncordones/metasploit-framework/tree/master/modules/exploits) (Exploit Modules), [`lib/rex/service_manager.rb`](https://github.com/jassoncordones/metasploit-framework/blob/master/lib/rex/service_manager.rb) (Service Manager), [`lib/msf/core/session_manager.rb`](https://github.com/jassoncordones/metasploit-framework/blob/master/lib/msf/core/session_manager.rb) (Session Manager), [`modules/post`](https://github.com/jassoncordones/metasploit-framework/tree/master/modules/post) (Post Modules)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_modules["Security Modules"]
  node_exploits["Exploit Modules"]
  node_adaudit["ADAudit RCE"]
  node_auxiliary["Auxiliary Modules"]
  node_scanners["Login Scanners"]
  node_post["Post Modules"]
end

subgraph group_payloads["Payload Assets"]
  node_payloadmodules["Payload Modules"]
  node_encoders["Encoders"]
  node_javaasset["Java Payload Asset<br/>[Payload.java]"]
  node_potatoasset["COM Marshal Trigger"]
end

subgraph group_runtime["Framework Runtime"]
  node_sessions["Session Manager<br/>[session_manager.rb]"]
  node_persistent[("Persistent Storage")]
  node_dataapi["Remote Session Data"]
  node_servicesmgr["Service Manager<br/>[service_manager.rb]"]
end

subgraph group_services["Protocol Services"]
  node_dhcp["DHCP Server<br/>[server.rb]"]
  node_ldap["LDAP Server<br/>[server.rb]"]
  node_tftp["TFTP Server<br/>[server.rb]"]
end

node_operator(("Operator"))
node_console(("msfconsole"))
node_target(("Target System"))
node_remoteapi["Remote Data Service"]

node_operator -->|"starts"| node_console
node_console -.->|"dispatches"| node_exploits
node_console -.->|"dispatches"| node_auxiliary
node_console -.->|"dispatches"| node_post
node_console -.->|"selects"| node_payloadmodules
node_adaudit -->|"sends HTTP"| node_target
node_exploits -.->|"uses asset"| node_javaasset
node_exploits -.->|"uses asset"| node_potatoasset
node_payloadmodules -.->|"encodes payload"| node_encoders
node_exploits -.->|"creates session"| node_sessions
node_sessions -.->|"stores state"| node_persistent
node_sessions -.->|"exposes data"| node_dataapi
node_servicesmgr -.->|"manages"| node_dhcp
node_servicesmgr -.->|"manages"| node_ldap
node_servicesmgr -.->|"manages"| node_tftp
node_scanners -.->|"checks credentials"| node_target
node_post -.->|"collects data"| node_target
node_dataapi -.->|"uses HTTP"| node_remoteapi

click node_exploits "https://github.com/jassoncordones/metasploit-framework/tree/master/modules/exploits"
click node_adaudit "https://github.com/jassoncordones/metasploit-framework/blob/master/modules/exploits/windows/http/manageengine_adaudit_plus_authenticated_rce.rb"
click node_auxiliary "https://github.com/jassoncordones/metasploit-framework/tree/master/modules/auxiliary"
click node_scanners "https://github.com/jassoncordones/metasploit-framework/tree/master/lib/metasploit/framework/login_scanner"
click node_post "https://github.com/jassoncordones/metasploit-framework/tree/master/modules/post"
click node_payloadmodules "https://github.com/jassoncordones/metasploit-framework/tree/master/modules/payloads"
click node_encoders "https://github.com/jassoncordones/metasploit-framework/tree/master/modules/encoders"
click node_javaasset "https://github.com/jassoncordones/metasploit-framework/blob/master/data/exploits/CVE-2017-1000353/Payload.java"
click node_potatoasset "https://github.com/jassoncordones/metasploit-framework/blob/master/external/source/exploits/juicypotato/JuicyPotato/IStorageTrigger.cpp"
click node_sessions "https://github.com/jassoncordones/metasploit-framework/blob/master/lib/msf/core/session_manager.rb"
click node_persistent "https://github.com/jassoncordones/metasploit-framework/blob/master/lib/msf/base/persistent_storage.rb"
click node_dataapi "https://github.com/jassoncordones/metasploit-framework/blob/master/lib/metasploit/framework/data_service/remote/http/remote_session_data_service.rb"
click node_servicesmgr "https://github.com/jassoncordones/metasploit-framework/blob/master/lib/rex/service_manager.rb"
click node_dhcp "https://github.com/jassoncordones/metasploit-framework/blob/master/lib/rex/proto/dhcp/server.rb"
click node_ldap "https://github.com/jassoncordones/metasploit-framework/blob/master/lib/rex/proto/ldap/server.rb"
click node_tftp "https://github.com/jassoncordones/metasploit-framework/blob/master/lib/rex/proto/tftp/server.rb"

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_exploits,node_adaudit,node_auxiliary,node_scanners,node_post toneBlue
class node_payloadmodules,node_encoders,node_javaasset,node_potatoasset toneAmber
class node_sessions,node_persistent,node_dataapi,node_servicesmgr toneMint
class node_dhcp,node_ldap,node_tftp toneRose
class node_operator,node_console,node_target,node_remoteapi toneIndigo
```

## Components

### Security Modules

- [Exploit Modules](https://github.com/jassoncordones/metasploit-framework/tree/master/modules/exploits): `modules/exploits`
- [ADAudit RCE](https://github.com/jassoncordones/metasploit-framework/blob/master/modules/exploits/windows/http/manageengine_adaudit_plus_authenticated_rce.rb): `modules/exploits/windows/http/manageengine_adaudit_plus_authenticated_rce.rb`
- [Auxiliary Modules](https://github.com/jassoncordones/metasploit-framework/tree/master/modules/auxiliary): `modules/auxiliary`
- [Login Scanners](https://github.com/jassoncordones/metasploit-framework/tree/master/lib/metasploit/framework/login_scanner): `lib/metasploit/framework/login_scanner`
- [Post Modules](https://github.com/jassoncordones/metasploit-framework/tree/master/modules/post): `modules/post`

### Payload Assets

- [Payload Modules](https://github.com/jassoncordones/metasploit-framework/tree/master/modules/payloads): `modules/payloads`
- [Encoders](https://github.com/jassoncordones/metasploit-framework/tree/master/modules/encoders): `modules/encoders`
- [Java Payload Asset](https://github.com/jassoncordones/metasploit-framework/blob/master/data/exploits/CVE-2017-1000353/Payload.java): `data/exploits/CVE-2017-1000353/Payload.java`
- [COM Marshal Trigger](https://github.com/jassoncordones/metasploit-framework/blob/master/external/source/exploits/juicypotato/JuicyPotato/IStorageTrigger.cpp): `external/source/exploits/juicypotato/JuicyPotato/IStorageTrigger.cpp`

### Framework Runtime

- [Session Manager](https://github.com/jassoncordones/metasploit-framework/blob/master/lib/msf/core/session_manager.rb): `lib/msf/core/session_manager.rb`
- [Persistent Storage](https://github.com/jassoncordones/metasploit-framework/blob/master/lib/msf/base/persistent_storage.rb): `lib/msf/base/persistent_storage.rb`
- [Remote Session Data](https://github.com/jassoncordones/metasploit-framework/blob/master/lib/metasploit/framework/data_service/remote/http/remote_session_data_service.rb): `lib/metasploit/framework/data_service/remote/http/remote_session_data_service.rb`
- [Service Manager](https://github.com/jassoncordones/metasploit-framework/blob/master/lib/rex/service_manager.rb): `lib/rex/service_manager.rb`

### Protocol Services

- [DHCP Server](https://github.com/jassoncordones/metasploit-framework/blob/master/lib/rex/proto/dhcp/server.rb): `lib/rex/proto/dhcp/server.rb`
- [LDAP Server](https://github.com/jassoncordones/metasploit-framework/blob/master/lib/rex/proto/ldap/server.rb): `lib/rex/proto/ldap/server.rb`
- [TFTP Server](https://github.com/jassoncordones/metasploit-framework/blob/master/lib/rex/proto/tftp/server.rb): `lib/rex/proto/tftp/server.rb`

### Other components

- **Operator**
- **msfconsole**
- **Target System**
- **Remote Data Service**

## Connections

- Operator → msfconsole: starts (evidence: `README.md`)
- msfconsole → Exploit Modules: dispatches
- msfconsole → Auxiliary Modules: dispatches
- msfconsole → Post Modules: dispatches
- msfconsole → Payload Modules: selects
- ADAudit RCE → Target System: sends HTTP (evidence: `modules/exploits/windows/http/manageengine_adaudit_plus_authenticated_rce.rb`)
- Exploit Modules → Java Payload Asset: uses asset
- Exploit Modules → COM Marshal Trigger: uses asset
- Payload Modules → Encoders: encodes payload
- Exploit Modules → Session Manager: creates session
- Session Manager → Persistent Storage: stores state
- Session Manager → Remote Session Data: exposes data
- Service Manager → DHCP Server: manages
- Service Manager → LDAP Server: manages
- Service Manager → TFTP Server: manages
- Login Scanners → Target System: checks credentials
- Post Modules → Target System: collects data
- Remote Session Data → Remote Data Service: uses HTTP
