maltego-teeth
Maltego Teeth : ensemble de transforms Maltego intégrés à Metasploit. Enrichit les graphes Maltego avec les données de Metasploit : sessions actives, hôtes découverts, résultats d'exploits visualisés sous forme de graphes de relations. Maltego Teeth — set of Metasploit-integrated Maltego transforms. Enriches Maltego graphs with Metasploit data — running sessions, discovered hosts, and exploit results visualized as relationship graphs.
↗ https://github.com/sensepost/maltego-teethOverview
Maltego Teeth is a Maltego transform library that connects Maltego’s OSINT graph visualization with Metasploit Framework. It allows visualizing active Metasploit sessions, compromised hosts, discovered networks, and lateral movement paths as interactive relationship graphs.
Installation
git clone https://github.com/sensepost/maltego-teeth
cd maltego-teeth
pip3 install -r requirements.txt
Start the local transform server
python3 teeth.py
Requirements
# Maltego CE or Pro (graphical application)
# Download from: https://maltego.com/
# Metasploit Framework running
sudo msfdb run
msf > load msgrpc ServerPort=55552 Pass=abc123
Transforms Available
# Once installed and configured in Maltego:
# Host → Sessions
# → Shows active Metasploit sessions on a host
# Network → Hosts
# → Maps discovered hosts from Metasploit db
# Session → Modules
# → Shows which modules were run in a session
# Loot → Credentials
# → Shows credentials harvested by Metasploit
# Route → Infrastructure
# → Visualizes pivot routes
Setting Up in Maltego
- Start Maltego Teeth server
python3 teeth.py --port 8080
# 2. In Maltego GUI:
# Manage → Transform Manager → Add local transforms
# Point to the Maltego Teeth transform definitions
# 3. Configure Metasploit connection
# Host: 127.0.0.1
# Port: 55552
# Password: your_msf_password
Workflow
# 1. Run nmap/Metasploit scans normally
msf > db_nmap -sV 192.168.1.0/24
msf > use exploit/...
msf > run
# 2. Open Maltego and add target IP/domain
# 3. Right-click → run Maltego Teeth transform
# 4. Graph expands with connected data:
# - Sessions on hosts
# - Collected credentials
# - Network topology
# - Attack paths
Tips
- Maltego Teeth is most valuable for complex engagements with many compromised hosts
- The graph visualization helps identify privilege escalation and lateral movement paths
- Combine with BloodHound for AD-specific path analysis in the same engagement
- Maltego CE (free) has transform limits — consider Pro for large engagements
- Export graphs as PNG/PDF for engagement reports
Help / Man page
Maltego Teeth runs as a local transform server.
python3 teeth.py [options]
--port N Server port (default: 8080)
--debug Debug output
Requires:
- Maltego application
- Metasploit with RPC enabled:
msf > load msgrpc Pass=PASSWORD Port=55552
Vue d’ensemble
Maltego Teeth est une bibliothèque de transforms Maltego qui relie la visualisation de graphes OSINT de Maltego au Metasploit Framework. Elle permet de visualiser les sessions Metasploit actives, les hôtes compromis, les réseaux découverts et les chemins de mouvement latéral sous forme de graphes de relations interactifs.
Installation
git clone https://github.com/sensepost/maltego-teeth
cd maltego-teeth
pip3 install -r requirements.txt
# Démarrer le serveur de transforms local
python3 teeth.py
Prérequis
# Maltego CE ou Pro (application graphique)
# À télécharger sur : https://maltego.com/
# Metasploit Framework en cours d'exécution
sudo msfdb run
msf > load msgrpc ServerPort=55552 Pass=abc123
Transforms disponibles
# Une fois installé et configuré dans Maltego :
# Host → Sessions
# → Affiche les sessions Metasploit actives sur un hôte
# Network → Hosts
# → Cartographie les hôtes découverts depuis la base Metasploit
# Session → Modules
# → Affiche les modules exécutés dans une session
# Loot → Credentials
# → Affiche les identifiants récoltés par Metasploit
# Route → Infrastructure
# → Visualise les routes de pivot
Configuration dans Maltego
- Démarrer le serveur Maltego Teeth
python3 teeth.py --port 8080
# 2. Dans l'interface graphique Maltego :
# Manage → Transform Manager → Add local transforms
# Pointer vers les définitions de transforms de Maltego Teeth
# 3. Configurer la connexion Metasploit
# Host: 127.0.0.1
# Port: 55552
# Password: your_msf_password
Workflow
# 1. Lancer les scans nmap/Metasploit normalement
msf > db_nmap -sV 192.168.1.0/24
msf > use exploit/...
msf > run
# 2. Ouvrir Maltego et ajouter l'IP/domaine cible
# 3. Clic droit → lancer le transform Maltego Teeth
# 4. Le graphe s'étend avec les données liées :
# - Sessions sur les hôtes
# - Identifiants collectés
# - Topologie réseau
# - Chemins d'attaque
Conseils
- Maltego Teeth est particulièrement utile pour les missions complexes avec de nombreux hôtes compromis
- La visualisation en graphe aide à identifier les chemins d’élévation de privilèges et de mouvement latéral
- Combiner avec BloodHound pour l’analyse de chemins spécifiques à l’AD sur la même mission
- Maltego CE (gratuit) limite les transforms : envisager Pro pour les missions de grande envergure
- Exporter les graphes en PNG/PDF pour les rapports de mission
Aide / Page de manuel
Maltego Teeth runs as a local transform server.
python3 teeth.py [options]
--port N Server port (default: 8080)
--debug Debug output
Requires:
- Maltego application
- Metasploit with RPC enabled:
msf > load msgrpc Pass=PASSWORD Port=55552