Tuesday, May 20, 2014

The Top 5 Deadliest Linux Commands.


1. rm -rf /

Deletes everything including files on your hard drive and files on connected removable media devices.

rm – Remove the following files.

-rf – Run rm recursively and force-remove all files without prompting you.

/ – Tells rm to start at the root directory, which contains all the files on your computer and all mounted media devices, 

including remote file shares and removable drives.

2. Disguised rm –rf /

Actually, the hex version of rm –rf / – wipes out your files just as if you had run rm –rf /.

char esp[] __attribute__ ((section(“.text”))) /* e.s.p
release */
= "\xeb\x3e\x5b\x31\xc0\x50\x54\x5a\x83\xec\x64\x68"
"cp -p /bin/sh /tmp/.beyond; chmod 4755

3. :(){ :|: & };:

This bash command is actually a denial-of-service attack. It defines a shell function that creates new copies of itself that 

continually replicates itself quickly taking up all your CPU time and memory causing your computer to freeze.

4. mkfs.ext4 /dev/sda1

Equivalent to running format c: on Windows.

mkfs.ext4 – Create a new ext4 file system on the following device.

/dev/sda1 – Specifies the first partition on the first hard drive, which is probably in use.

5. command > /dev/sda

Writes the data directly to the hard disk drive and damaging your file system.

command – Run a command (can be any command.)

> – Send the output of the command to the following location.

/dev/sda – Write the output of the command directly to the hard disk device.

No comments:

Post a Comment