Skip to content

menhera-org/demolish-linux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demolish-linux

This is a simple program run as root, that destroys a Linux installation from inside.

This program clears the root disk of a Linux installation, safely and without disruptions. It does not interfere with EFI/BIOS/firmware variables, so it is safe.

In short, this is a tool to do rm -rf / more perfectly.

WARNING

This program destroys the OS and data of the system it runs on.

Only run this when you are sure that you want to destroy the system.

Installation

Download the binary and copy it to the system you want to destroy.

Or build one yourself:

cargo install demolish-linux
scp ~/.cargo/bin/demolish-linux user@server:/tmp/

Usage

This assumes that you copied the program into /tmp/demolish-linux.

If your system's root disk is at /dev/sda (find your one with lsblk):

# If nessesary
chmod +x /tmp/demolish-linux

# as root (UID 0)
/tmp/demolish-linux /dev/sda

# and done!

# If you use SSH to connect to the system, the connection will be closed,
# but the cleanup will continue to the end.

About

Destroy a Linux system safely from inside, possible even over SSH. (rm -rf / with more perfection)

Topics

Resources

Stars

Watchers

Forks

Languages