Skip to content

Instantly share code, notes, and snippets.

@intv0id
Created October 27, 2017 14:03
Show Gist options
  • Save intv0id/ffa89602236b25e5951dad1832bd829e to your computer and use it in GitHub Desktop.
Save intv0id/ffa89602236b25e5951dad1832bd829e to your computer and use it in GitHub Desktop.
[Secure Wipe an USB Key] Needs to be updated #To_improve
#!/bin/bash
for n in `seq 7`;
do dd if=/dev/urandom of=/dev/sda bs=8b conv=notrunc;
done
&&
dd if=/dev/zero of=/dev/sda bs=8b &
disown;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment