Skip to content

Premnoi/VirusTotal-Discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

VirusTotal Discord Bot

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.

img

Features

  • Scan URLs to detect potential threats.
  • Check file hashes against VirusTotal's database.
  • Simple usage with the !scan command.

Installation

1. Install Python and Dependencies

# 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

2. Configure Environment Variables

Create a .env file and add the required API keys:

TOTALVIRUS_API_KEY=your_virustotal_api_key
DISCORD_TOKEN=your_discord_bot_token

3. Run the Bot

python bot.py

Usage

Use the !scan command to check a URL or file hash:

!scan <URL or file hash>

Example

!scan https://example.com  
!scan d41d8cd98f00b204e9800998ecf8427e

Notes

  • A Discord Bot Token and VirusTotal API Key are required.
  • Get an API Key from VirusTotal.



🦠 VirusTotal Discord Bot

บอท Discord ที่ช่วยตรวจสอบ URL และไฟล์ผ่าน VirusTotal API
เหมาะสำหรับใช้กรองลิงก์และไฟล์ที่อาจเป็นอันตรายในเซิร์ฟเวอร์

🚀 ฟีเจอร์

  • ตรวจสอบ URL ว่ามีความเสี่ยงหรือไม่
  • ตรวจสอบค่า Hash ของไฟล์ที่เคยถูกสแกนบน VirusTotal
  • ใช้งานง่ายผ่านคำสั่ง !scan

🛠 วิธีติดตั้ง

1️⃣ ติดตั้ง Python และไลบรารีที่จำเป็น

# โคลนโปรเจกต์และเข้าไปในโฟลเดอร์
git clone https://github.com/Premnoi/VirusTotal-Discord.git  
cd VirusTotal-Discord

# ติดตั้ง dependencies
pip install -r requirements.txt

2️⃣ ตั้งค่าไฟล์ .env

สร้างไฟล์ .env และกำหนดค่า API Key และ Token ของบอท

TOTALVIRUS_API_KEY=your_virustotal_api_key
DISCORD_TOKEN=your_discord_bot_token

3️⃣ รันบอท

python bot.py

⚡ วิธีใช้งาน

ใช้คำสั่ง !scan เพื่อตรวจสอบ

!scan <URL หรือ file hash>

🔹 ตัวอย่างการใช้งาน:

!scan https://example.com  
!scan d41d8cd98f00b204e9800998ecf8427e

📝 หมายเหตุ

  • ต้องมี Discord Bot Token และ VirusTotal API Key เพื่อให้บอททำงานได้
  • สามารถขอ API Key ได้ที่ VirusTotal

About

VirusTotal on Discord

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages