This project contains a Python script to perform a DOD (Department of Defense) style wipe on all SSD drives in a server. The script also captures the manufacturer, model, capacity, and serial number of each drive and records the number of blocks successfully overwritten and the number that failed during the wipe process.
-
Python 3.x installed on the server
-
smartctl
installed on the server. You can install it using the following command:sudo apt-get install smartmontools
- Clone the repository
git clone https://github.com/jkmills/SecureWipe
cd SecureWipe
- Ensure the script is executable:
chmod +x main.py
- Execute the script with root privileges:
sudo ./main.py
The script will perform a DOD-style wipe (3 passes) on all the SSD drives in the server. It will first list all available disk devices and then perform the wipe on each device, capturing the required information.