A simple antivirus application built with Windows Forms and .NET 8. This application scans directories for potentially malicious files by calculating MD5 hashes and checking file extensions.
Add screenshots of your application here
- Recursive Directory Scanning: Scans all files in selected directory and subdirectories
- MD5 Hash Calculation: Calculates MD5 hash for each file and compares against known malicious hashes
- Suspicious Extension Detection: Identifies potentially dangerous file extensions (.exe, .bat, .scr, .vbs, .dll, etc.)
- Real-time Progress: Live progress bar and statistics during scanning
- Asynchronous Operations: Non-blocking UI during scan operations
- Quarantine System: Move suspicious files to quarantine instead of permanent deletion
- Detailed Reports: Generate and save scan reports with timestamps
- Turkish UI: User interface in Turkish language
- Windows 10/11
- .NET 8.0 Runtime or SDK
- Visual Studio 2022 (for development)
- Clone the repository
git clone https://github.com/BerzanBaran/AntivirusApplication.git-
Open the solution in Visual Studio 2022
-
Build and run the application
dotnet build
dotnet run- Select Folder: Click "Gözat..." button to select a directory to scan
- Start Scan: Click "🔍 Taramayı Başlat" to begin scanning
- View Results: Threats and suspicious files appear in the results list
- 🔴 Red: Confirmed threats (hash match)
- 🟠 Orange: Suspicious files (dangerous extensions)
- Take Action: Right-click on detected files to:
- Quarantine the file
- Delete permanently
- Open file location
- Save Report: Click "📄 Rapor Kaydet" to save scan results
AntivirusApplication/
├── Form1.cs # Main form logic and event handlers
├── Form1.Designer.cs # UI component definitions
├── FileScanner.cs # File scanning and MD5 hash calculation
├── ThreatDatabase.cs # Malicious hash and extension database
├── QuarantineManager.cs # Quarantine and delete operations
├── ScanReport.cs # Report generation and saving
└── Program.cs # Application entry point
Contains known malicious MD5 hashes and suspicious file extensions. Easily extensible to add new threat signatures.
Handles asynchronous file scanning with:
- Recursive directory traversal
- MD5 hash calculation
- Progress reporting
- Cancellation support
Manages file quarantine operations:
- Moves files to safe quarantine folder
- Stores metadata for file restoration
- Supports permanent deletion
Generates detailed scan reports including:
- Scan duration and timestamp
- Total files scanned
- Threats and suspicious files found
- Complete file paths and hashes
This is an educational project and should not be used as a replacement for professional antivirus software. The threat database contains sample hashes for testing purposes only.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Berzan Baran
- GitHub: @BerzanBaran
- EICAR test file hash for antivirus testing
- Microsoft Windows Forms documentation
- .NET community
⭐ Star this repository if you find it helpful!