CyberSentry is a powerful Discord bot designed to enhance your online safety by scanning URLs, IP addresses, and files for potential threats using the VirusTotal API. Effortlessly check links and files directly within your server, receiving real-time alerts and comprehensive threat analysis.
- URL Scanning: Quickly scan any URL for potential threats.
- IP Scanning: Check the safety of IP addresses.
- File Scanning: Upload files to scan for malware and other threats.
- Rate Limit Handling: Notifies users about API rate limits and cooldown periods.
!scanurl <url>: Scan a URL for threats.!scanip <ip>: Scan an IP address for threats.!scanfile: Upload a file to scan for threats.
- Python 3.7 or higher
- Discord bot token
- VirusTotal API key
-
Clone the repository:
git clone https://github.com/yourusername/CyberSentry.git cd CyberSentry -
Install the required libraries:
pip install discord.py aiohttp aiofiles
-
Set up your environment variables:
- Create a
.envfile in the root directory of the project. - Add your Discord bot token and VirusTotal API key:
DISCORD_BOT_TOKEN=your_discord_bot_token VIRUSTOTAL_API_KEY=your_virustotal_api_key
- Create a
-
Run the bot:
python bot.py
-
Invite the bot to your Discord server using the OAuth2 URL generated from the Discord Developer Portal.
- Use
!scanurl <url>to scan a URL. - Use
!scanip <ip>to scan an IP address. - Use
!scanfileand upload a file to scan.
The bot will respond with a detailed report on the scan results.
!scanurl https://example.com
Bot response:
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
This project is licensed under the Apache-2.0 License. See the LICENSE file for details.
- VirusTotal for their API
- discord.py for the Discord bot framework
For any inquiries or support, please open an issue on the GitHub repository.
Stay vigilant, stay secure with CyberSentry!