Skip to content

A lightweight, all-in-one Windows optimization and security utility designed to declutter system junk, enhance privacy, and fortify PC performance.

Notifications You must be signed in to change notification settings

iam-neo/PC-Cleaner-Security-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ PC Cleaner & Security Tool

A powerful Windows desktop application to clean temporary files, cache, and scan for malware on your PC.

Version Python Platform

✨ Features

PC Cleaner

  • 🧹 Clean Temporary Files - Remove system temp files and free up disk space
  • 🌐 Browser Cache Cleaning - Clear cache from Chrome, Edge, Firefox, and Opera
  • πŸ—‘οΈ Empty Recycle Bin - Permanently delete files from Recycle Bin
  • πŸ“Š Detailed Scan Results - See exactly what will be deleted before cleaning
  • βœ… Safe Deletion - Protected system paths are never touched

Malware Scanner

  • πŸ” Quick & Full Scans - Choose between quick scan or comprehensive system scan
  • πŸ›‘οΈ Pattern-Based Detection - Identify suspicious file patterns and behaviors
  • πŸ” Hash-Based Detection - Detect known malware using signature database
  • βš™οΈ Process Monitoring - Scan running processes for suspicious activity
  • πŸ”’ Quarantine System - Safely isolate threats before deletion
  • πŸ—‘οΈ Threat Removal - Permanently delete detected malware

Windows Security Hardening (New!)

  • πŸ›‘οΈ System Posture Check - Audit Windows Firewall, UAC, and Defender status
  • 🚦 Startup Audit - Detect unsigned applications in Startup and Registry
  • πŸ”’ Safe Remediation - Enable essential security features (Admin only)
  • πŸ“ Digital Signature Verification - Verify publisher identities (uses Sysinternals Sigcheck)
  • ⚠️ Zero-Risk - No files are automatically deleted; changes require explicit user confirmation.

Dashboard

  • πŸ’» System Information - View OS, processor, and system details
  • πŸ’Ύ Disk Usage Monitoring - Real-time disk space statistics
  • ⚑ Quick Actions - One-click access to common tasks
  • πŸ“Š Scan History - Track your last scan results

πŸš€ Installation

Prerequisites

  • Windows 10 or later
  • Python 3.8 or higher

Setup

  1. Clone or download this repository

    cd C:\xampp\htdocs\pro
  2. Install dependencies

    pip install -r requirements.txt
  3. Run the application

    python pc_cleaner_app.py

Running as Administrator (Recommended)

For full functionality, run the application with administrator privileges:

  1. Right-click on pc_cleaner_app.py
  2. Select "Run as administrator"

Or use PowerShell:

Start-Process python -ArgumentList "pc_cleaner_app.py" -Verb RunAs

πŸ“¦ Building Standalone Executable

To create a standalone .exe file that can run without Python installed:

python build.py

The executable will be created in the dist folder.

🎯 Usage Guide

PC Cleaner

  1. Navigate to the PC Cleaner tab
  2. Click Start Scan to scan for temporary files and cache
  3. Review the scan results - files are selected by default
  4. Uncheck any files you want to keep
  5. Click Clean Selected to delete the files
  6. Confirm the deletion by typing "YES"

Malware Scanner

  1. Navigate to the Malware Scanner tab
  2. Choose scan type:
    • Quick Scan - Scans common malware locations (faster)
    • Full Scan - Scans entire system (thorough)
    • Scan Processes - Checks running processes
  3. Review detected threats
  4. For each threat, you can:
    • Quarantine - Move to quarantine folder
    • Delete - Permanently remove
    • Ignore - Skip this detection

Dashboard

  • View system information and disk usage
  • Use Quick Clean to jump to PC Cleaner
  • Use Quick Scan to jump to Malware Scanner
  • Click Refresh Dashboard to update statistics

Security Hardening CLI

Run the security audit from the command line:

# Check system status
python security_check.py --posture

# Audit startup items
python security_check.py --audit

# Dry-run hardening (simulate changes)
python security_check.py --apply --dry-run

βš™οΈ Configuration

Edit config.py to customize:

  • Scan paths and directories
  • Protected system paths
  • UI theme (dark/light)
  • File extensions to scan
  • Maximum file size for scanning
  • VirusTotal API integration (optional)

πŸ”’ Safety Features

  • Protected Paths - System-critical directories are never scanned or deleted
  • Confirmation Dialogs - All destructive actions require explicit confirmation
  • Quarantine System - Suspicious files can be isolated instead of deleted
  • Detailed Logging - All actions are logged for review

⚠️ Important Notes

Malware Detection Limitations

This tool provides basic malware detection and is NOT a replacement for professional antivirus software like Windows Defender. It uses:

  • Pattern matching for suspicious file names
  • Hash-based detection for known malware
  • Behavioral analysis for running processes

For comprehensive protection, always use a full-featured antivirus solution.

Administrator Privileges

Some features require administrator privileges:

  • Accessing system temp directories
  • Deleting protected files
  • Terminating system processes
  • Emptying Recycle Bin

The application will warn you if not running as administrator.

πŸ“ Project Structure

pro/
β”œβ”€β”€ pc_cleaner_app.py       # Main application entry point
β”œβ”€β”€ config.py               # Configuration settings
β”œβ”€β”€ requirements.txt        # Python dependencies
β”œβ”€β”€ build.py               # Build script for .exe
β”œβ”€β”€ modules/
β”‚   β”œβ”€β”€ cleaner.py         # PC cleaning logic
β”‚   └── scanner.py         # Malware scanning logic
β”œβ”€β”€ ui/
β”‚   β”œβ”€β”€ dashboard.py       # Dashboard UI
β”‚   β”œβ”€β”€ cleaner_tab.py     # PC Cleaner UI
β”‚   β”œβ”€β”€ scanner_tab.py     # Malware Scanner UI
β”‚   └── security_tab.py    # Security Hardening UI
β”œβ”€β”€ utils/
β”‚   β”œβ”€β”€ cli_renderer.py    # CLI formatting helpers
β”‚   β”œβ”€β”€ file_operations.py # File handling utilities
β”‚   └── system_info.py     # System information utilities
β”œβ”€β”€ resources/
β”‚   └── malware_signatures.json  # Malware signature database
β”œβ”€β”€ logs/                  # Application logs
└── quarantine/           # Quarantined files

πŸ› οΈ Troubleshooting

"Permission Denied" Errors

  • Run the application as administrator
  • Check that files are not in use by other programs

Scan Takes Too Long

  • Use Quick Scan instead of Full Scan
  • Adjust MAX_FILE_SIZE_MB in config.py

False Positives in Malware Scanner

  • Review the threat details carefully
  • Use "Ignore" for known safe files
  • Update malware signatures in resources/malware_signatures.json

πŸ“ License

This project is provided as-is for educational and personal use.

🀝 Contributing

Contributions are welcome! Feel free to:

  • Report bugs
  • Suggest new features
  • Submit pull requests
  • Improve malware signature database

⚑ Performance Tips

  • Close other applications before running Full Scan
  • Run scans during low-activity periods
  • Regularly clean temp files to maintain performance
  • Keep malware signatures updated

πŸ”„ Updates

To update the malware signature database:

  1. Edit resources/malware_signatures.json
  2. Add new malware hashes and patterns
  3. Restart the application

πŸ“ž Support

For issues or questions:

  1. Check the Troubleshooting section
  2. Review application logs in logs/app.log
  3. Check that you're running the latest version

Made with ❀️ for keeping your PC clean and secure!