PyCrasher is a Python utility for forcibly terminating processes on a Windows machine by their Process ID (PID) or process name. Inspired by low-level Windows programming, PyCrasher leverages the ctypes
library to interact with the Windows API.
- Crash by PID: Terminate a process using its PID.
- Crash by Name: Terminate all processes matching a given name.
You can download an optimized and pre compiled release here
- Clone the repository:
git clone https://github.com/JancoNel-dev/pycrasher.git cd pycrasher
- Ensure you have Python 3.x installed on your system.
- Run the main file
python main.py (PID)
Run the script with administrator privileges to ensure it has the necessary permissions to terminate processes.
-
Crash a process by its PID:
python main.py <PID>
-
Crash processes by name:
python main.py <ProcessName>
-
Terminate a process with PID
1234
:python main.py 1234
-
Terminate all instances of
notepad.exe
:python main.py notepad.exe
main.py
: The main script containing the logic for terminating processes.
This project is licensed under the MIT License. See the LICENSE file for details.
This tool is intended for educational purposes only. The author is not responsible for any damage caused by the use of this tool. Use it responsibly and only on systems you have permission to operate on.
Contributions are welcome! Please fork the repository and submit a pull request.
For issues or questions, please open an issue on the GitHub repository.
Happy crashing!