Advanced Active Reconnaissance Automation Framework for Security Researchers By Micahel Dahan
ActiveRecon is a comprehensive reconnaissance automation tool designed to streamline the information gathering phase of authorized security assessments. Built for efficiency and thoroughness, it orchestrates multiple reconnaissance tools available in Kali Linux to provide structured, actionable intelligence about target systems.
- Automated Multi-Phase Reconnaissance: Sequential execution of host discovery, port scanning, service enumeration, vulnerability assessment, and OS fingerprinting
- Intelligent Service Detection: Automatic identification and targeted enumeration of discovered services
- Parallel Processing: Configurable threading for optimal scan performance
- Structured Output: Organized directory hierarchy for all scan results and artifacts
- Comprehensive Reporting: JSON and human-readable reports with prioritized findings and recommendations
- Tool Chain Integration: Seamless integration with industry-standard reconnaissance tools
- Web Services: HTTP/HTTPS enumeration with directory bruteforcing and vulnerability scanning
- Network Services: SMB/NetBIOS, FTP, SSH, Telnet, RDP
- Database Services: MySQL, PostgreSQL, MSSQL, MongoDB, Redis
- Directory Services: LDAP, Active Directory enumeration
- DNS Services: Zone transfers, subdomain enumeration
- Mail Services: SMTP, POP3, IMAP enumeration
# Debian/Ubuntu/Kali Linux
sudo apt update
sudo apt install python3 python3-pip nmap masscan
# Optional but recommended tools
sudo apt install nikto gobuster dirb enum4linux smbclient whatweb
sudo apt install dnsrecon dnsenum fierce hydra medusa sqlmap
sudo apt install searchsploit wpscan rpcclient ldap-utils
# Install Nuclei (optional)
go install -v github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest
# Install ffuf (optional)
go install github.com/ffuf/ffuf@latest# Clone the repository
git clone https://github.com/Sec-Llama/ActiveRecon.git
cd ActiveRecon
# Make executable
chmod +x ActiveRecon.py
# Verify installation
./ActiveRecon.py --help./ActiveRecon.py [OPTIONS] <target>positional arguments:
target Target IP, hostname, or CIDR network
optional arguments:
-h, --help Show help message and exit
-o, --output PATH Specify output directory path
-t, --threads NUM Number of threads for parallel operations (default: 10)
-v, --verbose Enable verbose output
-q, --quick Quick scan - only essential checks
-f, --full Full comprehensive scan - all checks
--skip-auth Skip authorization check (use with caution)
Performs essential reconnaissance - TCP top ports and basic service detection
./ActiveRecon.py -q 192.168.1.1Default mode - comprehensive TCP scanning with service enumeration
./ActiveRecon.py target.comComplete reconnaissance including all TCP/UDP ports and extensive enumeration
sudo ./ActiveRecon.py -f -v target.com# Scan entire subnet with custom output directory
./ActiveRecon.py -o /opt/recon/client1 192.168.1.0/24
# Full scan with maximum threads for speed
sudo ./ActiveRecon.py -f -t 20 10.10.10.1
# Verbose scan with specific output location
./ActiveRecon.py -v -o ~/assessments/target target.domain.com
# Quick scan for time-sensitive assessments
./ActiveRecon.py -q --skip-auth internal-host.localActiveRecon creates an organized directory structure for all findings:
ActiveRecon_<target>_<timestamp>/
├── 01_host_discovery/
│ ├── ping_sweep.txt
│ └── live_hosts.xml
├── 02_port_scanning/
│ ├── tcp/
│ │ ├── top1000_tcp.txt
│ │ ├── top1000_tcp.xml
│ │ ├── top1000_tcp.gnmap
│ │ └── all_tcp.txt
│ └── udp/
│ └── top100_udp.txt
├── 03_service_enumeration/
│ ├── service_scan.txt
│ ├── smb/
│ ├── web/
│ ├── ssh/
│ └── ftp/
├── 04_vulnerability_assessment/
│ ├── nmap_vulns.txt
│ └── nuclei_results.txt
├── 05_web_enumeration/
│ └── port_<port>/
│ ├── nikto.txt
│ ├── gobuster.txt
│ └── whatweb.txt
├── 06_dns_enumeration/
│ ├── dnsrecon.txt
│ └── zone_transfer.txt
├── 07_os_detection/
│ └── os_detection.txt
├── 08_exploits/
│ ├── searchsploit_results.json
│ └── exploit_summary.txt
├── 09_reports/
│ ├── scan_log.txt
│ ├── full_report.json
│ └── executive_summary.txt
└── 10_raw_output/
- ICMP echo requests
- TCP SYN to ports 80, 443
- TCP ACK to ports 80, 443
- Network sweep for CIDR ranges
- TCP SYN scan (top 1000 or all 65535 ports)
- UDP scan (top 100 ports)
- Service version detection
- Default script scan
- Protocol-specific enumeration based on discovered services
- Banner grabbing and version detection
- Default credential checks
- Service-specific vulnerability checks
- Nmap vulnerability scripts
- Searchsploit database queries
- Nuclei template scanning
- CVE correlation
- TCP/IP fingerprinting
- Service-based OS detection
- SMB OS discovery
Human-readable report containing:
- Target information and scan metadata
- Open ports summary (TCP/UDP)
- Identified services with versions
- Operating system detection results
- Prioritized vulnerabilities (CRITICAL/HIGH/MEDIUM/LOW)
- Actionable recommendations
- Suggested next steps
Machine-parseable complete results including:
- Complete port lists
- Service details and versions
- Vulnerability findings
- Exploitation suggestions
- Raw tool outputs references
ActiveRecon includes built-in authorization checks. Only use this tool on:
- Systems you own
- Systems you have explicit written permission to test
- Authorized penetration testing engagements
This tool performs active reconnaissance that will be detected by:
- Intrusion Detection Systems (IDS)
- Security Information and Event Management (SIEM) systems
- Host-based monitoring solutions
- Network traffic analysis tools
Users are responsible for ensuring compliance with:
- Local and federal laws
- Organization security policies
- Penetration testing rules of engagement
- Bug bounty program scope
Adjust thread count based on network conditions:
# Conservative (stable networks)
-t 5
# Standard (default)
-t 10
# Aggressive (local networks)
-t 20The tool automatically adjusts timing templates based on scan type:
- Quick scans: T4 (aggressive)
- Standard scans: T4 (aggressive)
- Full scans: T3 (normal)
- Use lower thread counts for remote targets
- Increase threads for local network assessments
- Consider bandwidth limitations
- Monitor for rate limiting or blocking
Permission Denied
# Some scans require root privileges
sudo ./ActiveRecon.py targetTools Not Found
# Check tool availability
./ActiveRecon.py target -v
# Install missing tools using apt or manual installationScan Timeouts
# Increase timeout values in the script
# Or use quick scan mode for faster results
./ActiveRecon.py -q targetEnable verbose output for troubleshooting:
./ActiveRecon.py -v targetActiveRecon automatically detects and utilizes available tools:
- Python 3.6+
- Nmap
- masscan - High-speed port scanning
- nikto - Web vulnerability scanner
- gobuster - Directory/file bruteforcer
- enum4linux - SMB enumeration
- searchsploit - Exploit database search
- nuclei - Template-based vulnerability scanner
- wpscan - WordPress vulnerability scanner
- sqlmap - SQL injection tool
- hydra - Password brute-forcing
- dnsenum - DNS enumeration
- fierce - Domain scanner
# Fork and clone the repository
git clone https://github.com/Sec-Llama/ActiveRecon.git
cd ActiveRecon
# Create feature branch
git checkout -b feature/enhancement
# Make changes and test
./ActiveRecon.py test-target -v
# Submit pull request- Follow PEP 8 style guidelines
- Add comprehensive error handling
- Document new features
- Include relevant tool integrations
- Test against various target types
- Initial release
- Multi-phase reconnaissance automation
- Comprehensive tool integration
- Structured reporting system
- Intelligent service enumeration
This project is licensed under the MIT License. See LICENSE file for details.
This tool is provided for authorized security testing only. Users are responsible for ensuring they have proper authorization before scanning any systems. The authors assume no liability for misuse or damage caused by this tool.
- Check the comprehensive inline documentation
- Review example commands and use cases
- Examine generated reports for understanding output
When reporting issues, include:
- Operating system and version
- Python version
- Complete error messages
- Verbose output (-v flag)
- Target type (IP/hostname/CIDR)
ActiveRecon leverages the excellent work of numerous open-source security tools and the broader information security community. Special recognition to the maintainers of Nmap, Masscan, and the Kali Linux project.
ActiveRecon - Automating reconnaissance for the next generation of security researchers
For updates and additional resources, visit the project repository.