-
Main Window:
- The main window of the Anti Virus application displays the title "Anti Virus Software."
- It includes three buttons: "EXIT," "SCAN NOW," and "SCHEDULE SCAN."
-
Exit Button:
- Clicking the "EXIT" button terminates the application.
-
Scan Now Button:
- Clicking the "SCAN NOW" button initiates a scan using the
MalwareScanner
class.
- Clicking the "SCAN NOW" button initiates a scan using the
-
Schedule Scan Button:
- Clicking the "SCHEDULE SCAN" button opens a new window allowing users to schedule a future scan.
-
Schedule Scan Window:
- Users can input a time and choose the unit (seconds, minutes, or hours) to schedule a scan.
- Clicking the "Schedule Scan" button sets a timer for the scheduled scan.
- If a scan is already scheduled, it cancels the previous schedule.
- The schedule scan logic converts the user input into seconds and uses the Tkinter
after
method to schedule a scan. - Users are asked to confirm the scan before it starts.
-
Main Window:
- The Malware Scanner has a title "Anti Virus Software."
- Users can choose to scan a directory or a specific file.
-
Scan Directory:
- Clicking "Scan a Directory" allows users to choose a directory for scanning.
- The application recursively scans all files in the selected directory.
-
Scan File:
- Clicking "Scan a File" allows users to choose a specific file for scanning.
-
Scan Results:
- If a file is identified as malicious based on predefined hashes, an alert is shown.
- If a file is not identified as malicious, an information message is displayed.
-
Hashing Algorithm:
- The scanner uses various hashing algorithms (MD5, SHA-1, SHA-256) to compare file hashes against a predefined list of known malicious file hashes.
- The
malicious_hashes
dictionary contains sample malicious file hashes. Replace these with actual hashes for real-world use.