🚀 Welcome to the Process Killer script! This script is designed to automatically kill unwanted processes running on a system.
🎯 The objective of this script is to provide a convenient way to terminate processes that are not whitelisted. It scans the running processes and kills any process that is not included in the predefined whitelist.
✨ Here are some features of the Process Killer script:
- Whitelist: The script maintains a whitelist of allowed processes that should not be terminated.
- Automatic Scanning: It periodically scans the running processes and terminates any process not present in the whitelist.
- Signal-based Termination: The script uses the
SIGKILL
signal to forcefully terminate processes. - Flexibility: The whitelist can be customized by modifying the
whitelist
vector in the script.
📘 Here's how you can use the Process Killer script:
- Configure the Whitelist: Open the script and modify the
whitelist
vector to include the processes you want to keep alive. - Run the Script: Execute the script on your system using a C++ compiler that supports C++11 or later.
- Enable Process Killing: The script will start scanning and killing processes not included in the whitelist. To enable or disable the process killing functionality, modify the
enableKiller
parameter in theInitKiller
function call. - Monitor the Output: The script will display messages indicating whether processes were successfully killed or if any errors occurred.
🤝 Contributions are welcome! If you would like to contribute to this project, please follow these guidelines:
- Fork the repository.
- Create a new branch:
git checkout -b my-feature-branch
- Make your changes.
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-feature-branch
- Submit a pull request.
👍 Thank you to all the contributors who help make this script better!
📝 This project is licensed under the MIT License.