autorecon
Outil de reconnaissance automatisée et multi-threadé. Lance nmap, puis démarre automatiquement des outils d'énumération ciblés (gobuster, nikto, smbmap, etc.) selon les services découverts. Multi-threaded automated reconnaissance tool. Runs nmap, then automatically launches targeted enumeration tools (gobuster, nikto, smbmap, etc.) based on discovered services.
↗ https://github.com/Tib3rius/AutoReconOverview
AutoRecon automates the reconnaissance phase by running nmap first, identifying open services, then automatically launching appropriate enumeration tools for each — gobuster for HTTP, smbmap for SMB, ldapdomaindump for LDAP, and so on. Widely used for OSCP exam boxes and CTF challenges.
Installation
pip3 install git+https://github.com/Tib3rius/AutoRecon.git
Dependencies (install first)
sudo apt install nmap nikto gobuster smbmap enum4linux dnsrecon
Basic Usage
Scan a single target
autorecon 10.10.10.1
Scan multiple targets
autorecon 10.10.10.1 10.10.10.2 10.10.10.3
Scan from a file
autorecon -t targets.txt
Specify output directory
autorecon 10.10.10.1 -o /tmp/recon/
Verbose output (watch tools running)
autorecon 10.10.10.1 -v
Full verbose (all tool output)
autorecon 10.10.10.1 --verbose
Scan Configuration
Target type (default: auto-detect)
autorecon 10.10.10.1
With domain name (needed for virtual host enumeration)
autorecon 10.10.10.1 --single-target
Limit concurrent scans
autorecon 10.10.10.1 --concurrent-targets 1
Limit concurrent scans per service
autorecon 10.10.10.1 --concurrent-scans 1
Custom port list (instead of top 1000)
autorecon 10.10.10.1 --ports 22,80,443,8080,8443
All ports scan
autorecon 10.10.10.1 --ports -
Output Structure
results/
10.10.10.1/
scans/
_commands.log — all commands run
_manual_commands.txt — suggested manual commands
tcp22/ — SSH scan results
tcp80/ — HTTP scan results
gobuster/ — directory brute-force
nikto/ — vuln scan
tcp445/ — SMB results
smbmap/
enum4linux/
What AutoRecon Runs
Port 22 (SSH): ssh-audit, nmap scripts
Port 80/443: nikto, gobuster, whatweb, curl
Port 139/445: enum4linux, smbmap, smbclient, nmap scripts
Port 161 (SNMP): snmpwalk, snmpenum
Port 389 (LDAP): ldapdomaindump, nmap scripts
Port 3306 (MySQL): nmap scripts
Port 3389 (RDP): nmap scripts
Port 5985 (WinRM): nmap scripts
Port 6379 (Redis): redis-cli info
And many more...
Reviewing Results
Check all found web directories
cat results/10.10.10.1/scans/tcp80/gobuster*
Check SMB shares
cat results/10.10.10.1/scans/tcp445/smbmap*
View recommended manual commands
cat results/10.10.10.1/scans/_manual_commands.txt
Quickly summarize all open ports
grep "open" results/10.10.10.1/scans/tcp_full.nmap
Tips
- AutoRecon is the standard starting tool for OSCP exam boxes — saves hours of manual work
- Always check
_manual_commands.txtfor suggested follow-up actions - Use
-o /tmp/resultsto organize multiple targets - The tool runs everything in parallel — initial results appear quickly while deeper scans continue
- Won’t catch everything — combine with manual enumeration
Help / Man page
autorecon [options] [targets...]
-t FILE Targets file
-o DIR Output directory (default: ./results)
-v Verbose
--single-target Only scan one target
--concurrent-targets N Max targets to scan at once
--concurrent-scans N Max scans per target at once
--ports PORTS Comma-separated ports or ranges
--heartbeat N Print heartbeat every N seconds
--disable-sanity-checks Skip pre-scan checks
Vue d’ensemble
AutoRecon automatise la phase de reconnaissance en lançant d’abord nmap, en identifiant les services ouverts, puis en démarrant automatiquement les outils d’énumération adaptés à chacun : gobuster pour l’HTTP, smbmap pour le SMB, ldapdomaindump pour le LDAP, et ainsi de suite. Très utilisé pour les machines de l’examen OSCP et les challenges CTF.
Installation
pip3 install git+https://github.com/Tib3rius/AutoRecon.git
# Dépendances (à installer d'abord)
sudo apt install nmap nikto gobuster smbmap enum4linux dnsrecon
Utilisation de base
# Scanner une seule cible
autorecon 10.10.10.1
# Scanner plusieurs cibles
autorecon 10.10.10.1 10.10.10.2 10.10.10.3
# Scanner depuis un fichier
autorecon -t targets.txt
# Spécifier le répertoire de sortie
autorecon 10.10.10.1 -o /tmp/recon/
# Sortie verbeuse (observer les outils s'exécuter)
autorecon 10.10.10.1 -v
# Verbeux complet (toute la sortie des outils)
autorecon 10.10.10.1 --verbose
Configuration du scan
# Type de cible (défaut : détection auto)
autorecon 10.10.10.1
# Avec un nom de domaine (nécessaire pour l'énumération de virtual hosts)
autorecon 10.10.10.1 --single-target
# Limiter les scans concurrents
autorecon 10.10.10.1 --concurrent-targets 1
# Limiter les scans concurrents par service
autorecon 10.10.10.1 --concurrent-scans 1
# Liste de ports personnalisée (au lieu du top 1000)
autorecon 10.10.10.1 --ports 22,80,443,8080,8443
# Scan de tous les ports
autorecon 10.10.10.1 --ports -
Structure de sortie
results/
10.10.10.1/
scans/
_commands.log : toutes les commandes lancées
_manual_commands.txt : commandes manuelles suggérées
tcp22/ : résultats du scan SSH
tcp80/ : résultats du scan HTTP
gobuster/ : brute-force de répertoires
nikto/ : scan de vulnérabilités
tcp445/ : résultats SMB
smbmap/
enum4linux/
Ce que lance AutoRecon
Port 22 (SSH): ssh-audit, nmap scripts
Port 80/443: nikto, gobuster, whatweb, curl
Port 139/445: enum4linux, smbmap, smbclient, nmap scripts
Port 161 (SNMP): snmpwalk, snmpenum
Port 389 (LDAP): ldapdomaindump, nmap scripts
Port 3306 (MySQL): nmap scripts
Port 3389 (RDP): nmap scripts
Port 5985 (WinRM): nmap scripts
Port 6379 (Redis): redis-cli info
And many more...
Examiner les résultats
# Vérifier tous les répertoires web trouvés
cat results/10.10.10.1/scans/tcp80/gobuster*
# Vérifier les partages SMB
cat results/10.10.10.1/scans/tcp445/smbmap*
# Voir les commandes manuelles recommandées
cat results/10.10.10.1/scans/_manual_commands.txt
# Résumer rapidement tous les ports ouverts
grep "open" results/10.10.10.1/scans/tcp_full.nmap
Conseils
- AutoRecon est l’outil de départ standard pour les machines de l’examen OSCP : il fait gagner des heures de travail manuel
- Vérifiez toujours
_manual_commands.txtpour les actions de suivi suggérées - Utilisez
-o /tmp/resultspour organiser plusieurs cibles - L’outil lance tout en parallèle : les premiers résultats apparaissent vite pendant que les scans plus profonds continuent
- Ne capture pas tout : combinez avec de l’énumération manuelle
Aide / Page de manuel
autorecon [options] [targets...]
-t FILE Targets file
-o DIR Output directory (default: ./results)
-v Verbose
--single-target Only scan one target
--concurrent-targets N Max targets to scan at once
--concurrent-scans N Max scans per target at once
--ports PORTS Comma-separated ports or ranges
--heartbeat N Print heartbeat every N seconds
--disable-sanity-checks Skip pre-scan checks