No Description

panda 7710ccb6f0 Update 'README.md' 1 year ago
_OLD 33dbafad2c Update '_OLD/README.md' 1 year ago
_examples fd4f835b21 Upload files to '_examples' 1 year ago
README.md 7710ccb6f0 Update 'README.md' 1 year ago
report.sh 120aae2836 Add 'report.sh' 1 year ago
wiper.sh b5e7ab2645 Update 'wiper.sh' 1 year ago
wiper_new.txt a26f1ec2a2 Update 'wiper_new.txt' 1 year ago

README.md

diskwiper with report creator

prereq:

wipe machine:

  • apt install python3-qrcode nvme-cli smartmontools hdparm lsscsi pv iotop htop sysstat

report machine:

  • apt install pandoc texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-xetex

wiping:

launch wiper.sh, you will be asked to select a disk:

➜  sudo ./wipe.sh
[1:0:0:0]    disk    ATA      SanDisk X200 M.2 2010  /dev/sda 
- - -
Disk to wipe:

then the wipe will take place and you will receive this output:


- - -
System serial: ABCDEFGH
Disk model: SanDisk X200 M.2 2280 128GB
Disk serial: 125907821590
Disk type: SSD
Disk status: Zeroed-Empty
Disk has been wiped with 1 random pass and one last zeroing
Started on: sat 12 nov 2022, 12:59:38, CET
Ended on: sat 12 nov 2022, 13:59:46, CET
- - -
Operation signature: 
- - -
Validation: sat 12 nov 2022, 12:59:38, CET_sat 12 nov 2022, 13:59:46, CET_ABCDEFGH_SanDisk X200 M.2 2280 128GB_125907821590_SSD_Zeroed-Empty_8064caa5367034a80a6e97cae0e643bd863577a3
start-date _ end-date _ system-serial _ disk-model _ disk-serial _ disk-type _  disk-status _ sign
█████████████████████████████████████████████████████████████
█████████████████████████████████████████████████████████████
████ ▄▄▄▄▄ ███▀█▄▀▄▄ ██▄▀ █▄█▄ ▄▄   █▄▀█▀ ▀ ▀▄ ▀██ ▄▄▄▄▄ ████
████ █   █ █ ▄▀▀▀▀▀ ██▀█▀██▄▀▄▄▄▀▄█▄▄▀█▀▀█▀█▀▀▀▄▀█ █   █ ████
████ █▄▄▄█ █  ▀    ▄█ ▄▀██▄  ▄▄▄ ▄▄▄▄▄▀▀█▀▀  ▄ ███ █▄▄▄█ ████
████▄▄▄▄▄▄▄█ █▄▀ █▄█▄▀ █ █ █ █▄█ █ ▀▄▀ ▀▄█▄▀▄▀▄█ █▄▄▄▄▄▄▄████
████ █  ▄▄▄▀▀█▀██▀  ▄▀ █ ▀██▄ ▄  ▀█▀█▄█▄▄▄▄ █ ▀ ▀▀▄  ▄▄▀▀████
████▀▀▄ ▄▀▄▄▀██▄▄ █ ▄▄█▀▄ ▀▀▀ █▀▀▀▄██ ▄▄█ ▄█▀▄▀▀██▄█ █▄█▀████
█████▀ ▀▀█▄▄▀ ▄  ▄▄  ▀▄  ▀▀▀ ▄█ █▀█▄ ▄███  ▄██▀ ▄ ▄▄██▄ █████
█████▀▀▄▀▄▄ ▀▄▀▄█▄▄▄▄█ █▄ ▀▀  ▄▀▀█▄ ▀▄ ▀▄█ ▄▀ ▀▀▄ ▄ ▄ █▀▄████
████▄▀▄▀▄▄▄██  ▄██ ▄█ ▄█▀█▀▀▀██ ██ █ ▄ █▄▀  █▄ ▄▄█▄█▀▀ █ ████
████▀▀▀ █▀▄  ▀ █▄▀█▀█▄▀ █▄█▀▀▀██▀▀▀▄▄ ▀▀██▄ █▀▄██▄ ▀██  ▄████
████▄  ▀█ ▄▄▀▀▀▄  ▀▄▄█▄▄ ▄█▄▀▀ ▄█▀  ▀ ▄▀ ▀█▀▄▀█▀▄    █  ▀████
████ ██▄▀▄▄█  █ █ ▀▀▄▄ █▀▀█▄ ▀▄▄█▄ ▀▀█▄█▄█▄▀█▀▄▀ ▀▄▀█▀▄█▀████
█████▄ ▄ ▄▄▄ ███▀ █   ▄▀▄ ▀▄ ▄▄▄ ▀▀█▀ ▄▄▄█▄  ▀ █ ▄▄▄ ▄▄▄▀████
██████▀█ █▄█ █▄█ █▀ ███ █ ▄█ █▄█ █▀█▄ ▄▀██  ▄▀▀  █▄█  █▄█████
████▄▄   ▄▄▄ █▄   ▄▄  ▄▄ ██▀▄▄  ▄▀▀▄ ▄▄███▄ ▀█▀█▄    ▄▄▄▀████
█████▄▀ ▀▄▄▀▀▄█ ██▄▄██▀▄█  ▀▄▀█▄▄█▀▄▄▀█▀▄▄▄▄▀█▀▀▀▀▄ █▀█▀▀████
████▀  ▄▄█▄ ▀▀▀ ▄█ ▄▄▀██▄█▀▀▄▀█▄▄▄ ▄▄▄██▄█▀ ██▀ █ ▀▄▀▀ ▀ ████
████▀▀▀▀▀ ▄▄▀█ ▀▀█ █▀██ █ ██ ▄██▄ ▄█▄ ▄▀█▄▄▄▀██ █ ▀█ ▀▄▀▀████
████ ▀ ▄  ▄█▄▀   ▀██▄▀▀ ▀▀▀█▄ █  █ █▄▄▄▀ ▀▀ ▀ ▀▄█ █▀▄▀█ ▀████
████▄▀ ▀  ▄▄▀ ▄█▀▄▄█▄ ▄█▄▀ ██▄█▄█▀██▄▄▄▀█▀  ██▄▀▄▄▀▀██ ▀▀████
████▄ ▀▀▀▀▄▀▄▀ ▄▄█▀▄██▀▄ ▀▄▀█▄█▀█ ▀▄█▀██ ▀█▀ ▀█▀█▄ █▄█▄▄█████
████▄ ▀▄▄▄▄▀▄▀▄▄ █▄▄ ▄█ ▄ █▀█▄ ▄█▀ ▀▀█ █▄▀ ███▄▀▀ ▀▀▀▀▄█▀████
███████▄██▄█ ██▄ ▀ ▄▄█ ▀▄▀▄▄ ▄▄▄ ▀ ▀█ █▄▄██▀█▀ █ ▄▄▄ ▀▄█ ████
████ ▄▄▄▄▄ █▀ ▄█▀ ▀█ ▀ ▀█▄█▀ █▄█ ███▄   ▄▀▄▄▄█▀█ █▄█ ██ █████
████ █   █ █ ▀▀ ▀▀▄▄▄█ ▀▄▄█▄▄ ▄ ▄▀▀█▀█▄▄▀▄█ ▄█ █ ▄▄▄▄▀  █████
████ █▄▄▄█ █▄▄▄▀ ▀▀█ █▀▀█▄ ▄█▄▄ █▀█▄▀▄ ▀▀▄  ▀ █▄▀▄▀▄ ▀▄▀█████
████▄▄▄▄▄▄▄█▄█▄▄█▄▄█▄█▄▄█▄█▄▄███▄██▄█▄█▄▄██▄██▄█▄▄█▄▄█▄██████
█████████████████████████████████████████████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

the qr (which in a terminal is way better looking) is used to easily export the data without connecting a machine to a network

reporting:

launch report.sh, you will be asked to input the wipe output:

➜  ~ ./disk_report_DEMO.sh
Input sanitization data:

just paste the content of the qr code, or the string:

sat 12 nov 2022, 12:59:38, CET_sat 12 nov 2022, 13:59:46, CET_ABCDEFGH_SanDisk X200 M.2 2280 128GB_125907821590_SSD_Zeroed-Empty_8064caa5367034a80a6e97cae0e643bd863577a3

you will recieve a pdf like: this one

creating an ubuntu live cd to wipe everything:

wipe machine (customized ubuntu-mate 20.04 with ubuntu cubic), in the chroot session:

apt update
apt install python3-qrcode nvme-cli smartmontools hdparm lsscsi pv iotop htop sysstat

then place wiper_new.sh in /etc/skel/Desktop

mkdir /etc/skel/Desktop
nano /etc/skel/Desktop/wiper.sh
chmod +x /etc/skel/Desktop/wiper.sh

add "toram" before "---" on the lines with "try ubuntu mate" in GRUB

sources: