A Discord bot that checks URLs and file hashes using the VirusTotal API. This bot helps filter potentially harmful links and files in your server.
- Scan URLs to detect potential threats.
- Check file hashes against VirusTotal's database.
- Simple usage with the
!scan
command.
# Clone the repository and navigate to the project directory
git clone https://github.com/Premnoi/VirusTotal-Discord.git
cd VirusTotal-Discord
# Install dependencies
pip install -r requirements.txt
Create a .env
file and add the required API keys:
TOTALVIRUS_API_KEY=your_virustotal_api_key
DISCORD_TOKEN=your_discord_bot_token
python bot.py
Use the !scan
command to check a URL or file hash:
!scan <URL or file hash>
!scan https://example.com
!scan d41d8cd98f00b204e9800998ecf8427e
- A Discord Bot Token and VirusTotal API Key are required.
- Get an API Key from VirusTotal.
บอท Discord ที่ช่วยตรวจสอบ URL และไฟล์ผ่าน VirusTotal API
เหมาะสำหรับใช้กรองลิงก์และไฟล์ที่อาจเป็นอันตรายในเซิร์ฟเวอร์
- ตรวจสอบ URL ว่ามีความเสี่ยงหรือไม่
- ตรวจสอบค่า Hash ของไฟล์ที่เคยถูกสแกนบน VirusTotal
- ใช้งานง่ายผ่านคำสั่ง
!scan
# โคลนโปรเจกต์และเข้าไปในโฟลเดอร์
git clone https://github.com/Premnoi/VirusTotal-Discord.git
cd VirusTotal-Discord
# ติดตั้ง dependencies
pip install -r requirements.txt
สร้างไฟล์ .env
และกำหนดค่า API Key และ Token ของบอท
TOTALVIRUS_API_KEY=your_virustotal_api_key
DISCORD_TOKEN=your_discord_bot_token
python bot.py
ใช้คำสั่ง !scan
เพื่อตรวจสอบ
!scan <URL หรือ file hash>
🔹 ตัวอย่างการใช้งาน:
!scan https://example.com
!scan d41d8cd98f00b204e9800998ecf8427e
- ต้องมี Discord Bot Token และ VirusTotal API Key เพื่อให้บอททำงานได้
- สามารถขอ API Key ได้ที่ VirusTotal