SSHtown is a modular, interactive security assessment tool for testing SSH vulnerabilities. It provides comprehensive testing capabilities including banner grabbing, authentication method detection, vulnerability scanning, intelligence gathering, and post-exploitation analysis.
git clone https://github.com/ekomsSavior/SSHtown.git
cd SSHtown
SSHtown required packages:
pip install paramiko --break-system-packages
#or use a venv then run break system packages
For full functionality, install these optional packages:
pip install python-whois requests dnspython --break-system-packages
bash
python3 SSHtown.py -vor debug mode for troubleshooting:
bash
python SSHtown.py -d
Select option 1 from the main menu to configure:
- Target IP addresses or hostnames (comma-separated)
- SSH ports to test (default: 22)
- Wordlist paths for usernames and passwords
- Module selection (enable/disable specific tests)
- Stealth mode settings (delays, jitter)
- Connection timeout
Select option 2 to run a complete assessment. This includes:
- Intelligence gathering on the target
- Banner grabbing with stealth options
- Authentication method detection
- Vulnerability scanning for CVEs and weak algorithms
- Optional credential testing (requires explicit confirmation)
- Automatic report generation
Select option 3 to run individual tests:
- Banner grabbing (stealth mode)
- Authentication method detection
- Common credentials testing
- Vulnerability scanning
- Configuration audit
- Intelligence gathering
Select option 4 for reconnaissance:
- DNS record enumeration
- SSL certificate analysis
- WHOIS information lookup
- Port scanning of common services
- Geolocation data collection
Select option 5 after establishing a successful SSH connection to:
- Enumerate system information
- Check for persistence mechanisms
- Extract potentially sensitive data
- Analyze network configuration
- Check privilege escalation vectors
- Establish SSH pivots to other hosts
Select option 6 to view previously generated reports stored in the reports/ directory.
Select option 7 to generate professional reports in multiple formats:
- Text reports for quick review
- JSON reports for programmatic analysis
- HTML reports with visual formatting
Select option 8 to manage wordlists:
- Generate default username and password wordlists
- Check for SecLists integration
sudo apt install seclists
seclists lives in /usr/share/seclists
- Add custom wordlist paths
- View current wordlist configuration
This tool is provided for educational and authorized testing purposes only. The developer assumes no liability and is not responsible for any misuse or damage caused by this program. It is the end user's responsibility to obey all applicable local, state, federal, and international laws.
// click a file to view source