A powerful Discord bot for security researchers and network enthusiasts. Perform OSINT lookups, security checks, port scanning, and URL analysis directly in Discord.
- IP Lookup - GeoIP location, ISP info, WHOIS data
- Security Checker - Password strength analysis, SSL certificate info
- Port Scanner - Network port scanning with service detection
- URL Analyzer - Phishing detection, malware checks, metadata extraction
- Network Monitoring - Alert system for network changes
- Python 3.9+
- Discord bot token
- (Optional) MaxMind GeoIP2 database for enhanced IP lookup
- Clone the repository:
git clone https://github.com/xdrew87/SecurityBot.git
cd SecurityBot- Install dependencies:
pip install -r requirements.txt- Create a
.envfile:
DISCORD_TOKEN=your_bot_token_here
VIRUSTOTAL_API_KEY=your_vt_key_here
- Run the bot:
python bot.py/ip_lookup <ip_address>
Returns geolocation, ISP, ASN, WHOIS information
/password_check <password>
Analyzes password strength and entropy
/ssl_check <domain>
Retrieves SSL certificate information
/port_scan <target> [start_port] [end_port]
Scans for open ports (requires appropriate permissions)
/url_analyze <url>
Checks URL against phishing/malware databases
/dns_lookup <domain>
Performs DNS enumeration
Edit config.py to customize:
- Command prefix
- Rate limits
- API keys
- Scanner timeouts
The bot needs these Discord permissions:
- Send Messages
- Embed Links
- Read Message History
- Never share your
.envfile - Use restricted roles for scanner commands
- Monitor API rate limits
- Store sensitive data securely
Feel free to submit issues and pull requests!
MIT License - see LICENSE file for details
This tool is for authorized security testing only. Unauthorized access to computer systems is illegal.