Skip to content

AlphaMvge/ps-disk-wipe-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧹 Unrecoverable Disk Wipe — Secure Delete PoC

⚠️ DANGER: This is a proof of concept for completely destroying disk data. Educational use only.

A forensic-grade disk sanitization tool written in PowerShell. Performs multi-pass entropy overwrites, cipher passes, and final zero-fill to render data unrecoverable — even by professional forensic tools.

Features

  • Multi-Pass Wipe — 3× random entropy + cipher pass + final zero pass
  • Safe Simulation — Test on a temporary 1 GB VHD without risking real data
  • Forensic-Verified — Tested against Recuva, TestDisk/PhotoRec, and Autopsy with 0 files recovered
  • Targeted Execution — Requires explicit -DiskNumber parameter to prevent accidents

Safe Simulation Test (Run This First)

Creates a temporary 1 GB virtual hard disk (VHD) and wipes only that VHD — your real disks are untouched.

# Run as Administrator
.\SIMULATION-TEST.ps1

The simulation will automatically:

  1. Create a 1 GB VHD in your temp folder
  2. Mount and format it
  3. Pass the temporary disk's ID to the wipe script
  4. Clean up and delete the VHD when finished

Usage on Real Hardware

Caution

Running this on a physical disk will permanently and irrecoverably destroy all data, including partition tables. Triple-check your disk numbers!

# 1. Open PowerShell as Administrator
# 2. Identify your target disk
Get-Disk

# 3. Run the wipe (replace <DISK_NUMBER>)
.\wipe-disk-unrecoverable.ps1 -DiskNumber <DISK_NUMBER>

Forensic Verification Results

Method Passes Applied Outcome Recovery Possible?
Multi-pass entropy + cipher 3× random → cipher → zero (clean all) All sectors fully sanitized ❌ No

Tools Tested — 0 Files Recovered

Tool Result
PowerShell byte inspection (Get-Content -Raw -Encoding Byte) ✅ Clean
Recuva ✅ Clean
TestDisk / PhotoRec ✅ Clean
Autopsy ✅ Clean

Conclusion: Beyond forensic recovery in the simulated environment.

Files

File Purpose
wipe-disk-unrecoverable.ps1 Core wiping logic — requires -DiskNumber
SIMULATION-TEST.ps1 Safe VHD demo script

License

MIT — © 2025 AlphaMvge


Use at your own risk on real hardware. Always double-check Get-Disk output before running the real wipe.

About

Forensic-grade disk sanitization PoC — multi-pass entropy wipe with zero recovery (Educational Only)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors