DrivePurge is a web-based tool for securely wiping drives. It allows you to scan for connected drives and purge selected drives securely using the shred
command. This project uses WebSockets to provide real-time updates and logging.
- Scan for connected drives
- Securely purge selected drives
- Real-time logging of purge process
- Prevents accidental purging of root or system drives
- Node.js
- NPM
lsblk
command (Linux)shred
command (Linux)- Root permissions for purging drives
- Clone the repository:
Create a directory on host maching to clone to git clone https://github.com/leftturnbeercan/DrivePurge.git cd DrivePurge
- Install dependencies for the backend:
cd backend npm install
- Install dependencies for the frontend:
cd ../frontend npm install
- Start the backend server:
cd backend sudo npm start
- Start the frontend server: (Make sure the IP and Port for Frontend is corrected in the ../DrivePurge/frontend/public/index.html)
cd ../frontend npm start
-
Open your web browser and navigate to http://localhost:3000 (or the IP and Port you have set the server.js(backend) and/or script.js(frontend) to)
-
Scan for connected drives by clicking the "Scan Drives" button.
-
Select the drives you want to purge and click the "Purge Selected Drives" button. Note: Ensure you have root permissions.
If anyone would like to contribute to this project please do the following:
-
Fork the repository and create a new branch for your feature or bug fix.
git checkout -b feature-name
-
Once your changes are ready, push your branch and create a pull request.